Skip to content

Commit

Permalink
upgrade kotlin to 1.9.22
Browse files Browse the repository at this point in the history
  • Loading branch information
0xZhangKe committed Jan 30, 2024
1 parent 4758f22 commit 07ab77f
Show file tree
Hide file tree
Showing 9 changed files with 63 additions and 8 deletions.
4 changes: 2 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
plugins {
kotlin("jvm") version "1.8.0"
id("com.google.devtools.ksp").version("1.8.0-1.0.9")
kotlin("jvm") version "1.9.22"
id("com.google.devtools.ksp").version("1.9.22-1.0.17")
}
10 changes: 8 additions & 2 deletions compiler/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,23 @@ plugins {
}

group = "com.zhangke.krouter"
version = "0.1.3"
version = "0.2.1"

java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}

kotlin{
jvmToolchain {
languageVersion.set(JavaLanguageVersion.of("8"))
}
}

dependencies {
implementation(kotlin("reflect"))
implementation(project(":core"))
implementation("com.google.devtools.ksp:symbol-processing-api:1.8.0-1.0.9")
implementation("com.google.devtools.ksp:symbol-processing-api:1.9.22-1.0.17")
implementation("com.squareup:kotlinpoet:1.12.0")
}

Expand Down
9 changes: 8 additions & 1 deletion core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,20 @@ plugins {
}

group = "com.zhangke.krouter"
version = "0.1.3"
version = "0.2.1"

java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}

kotlin{
jvmToolchain {
languageVersion.set(JavaLanguageVersion.of("8"))
}
}
tasks.withType<Jar> { duplicatesStrategy = DuplicatesStrategy.INHERIT }

dependencies {
testImplementation("junit:junit:4.+")

Expand Down
6 changes: 4 additions & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.2-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
zipStorePath=wrapper/dists
13 changes: 13 additions & 0 deletions sample/app/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

plugins {
id("java")
kotlin("jvm")
Expand All @@ -9,6 +10,14 @@ java {
targetCompatibility = JavaVersion.VERSION_1_8
}

kotlin{
jvmToolchain {
languageVersion.set(JavaLanguageVersion.of("8"))
}
}

tasks.withType<Jar> { duplicatesStrategy = DuplicatesStrategy.INHERIT }

kotlin {
sourceSets.main {
kotlin.srcDir("build/generated/ksp/main/kotlin")
Expand All @@ -24,3 +33,7 @@ dependencies {
implementation(project(":core"))
ksp(project(":compiler"))
}

tasks.withType<ProcessResources>{
duplicatesStrategy = DuplicatesStrategy.INHERIT
}
7 changes: 7 additions & 0 deletions sample/home/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,19 @@ plugins {
id("com.google.devtools.ksp")
}

tasks.withType<ProcessResources>{
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
}

java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}

kotlin {
jvmToolchain {
languageVersion.set(JavaLanguageVersion.of("8"))
}
sourceSets.main {
kotlin.srcDir("build/generated/ksp/main/kotlin")
resources.srcDir("build/generated/ksp/main/resources")
Expand Down
7 changes: 7 additions & 0 deletions sample/profile/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,19 @@ java {
}

kotlin {
jvmToolchain {
languageVersion.set(JavaLanguageVersion.of("8"))
}
sourceSets.main {
kotlin.srcDir("build/generated/ksp/main/kotlin")
resources.srcDir("build/generated/ksp/main/resources")
}
}

tasks.withType<ProcessResources>{
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
}

dependencies {
implementation(project(":sample:sample-core"))
implementation(project(":core"))
Expand Down
6 changes: 6 additions & 0 deletions sample/sample-core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,9 @@ java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}

kotlin{
jvmToolchain {
languageVersion.set(JavaLanguageVersion.of("8"))
}
}
9 changes: 8 additions & 1 deletion sample/setting/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,25 @@ plugins {
id("com.google.devtools.ksp")
}

tasks.withType<ProcessResources>{
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
}


java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}

kotlin {
jvmToolchain {
languageVersion.set(JavaLanguageVersion.of("8"))
}
sourceSets.main {
kotlin.srcDir("build/generated/ksp/main/kotlin")
resources.srcDir("build/generated/ksp/main/resources")
}
}

dependencies {
implementation(project(":sample:sample-core"))
implementation(project(":core"))
Expand Down

0 comments on commit 07ab77f

Please sign in to comment.