Skip to content

Commit 14d90dd

Browse files
committed
JvmTarget 17 for the whole project
1 parent e894cec commit 14d90dd

File tree

13 files changed

+27
-27
lines changed

13 files changed

+27
-27
lines changed

wire-gradle-plugin/build.gradle.kts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,15 +98,15 @@ buildConfig {
9898

9999
tasks.withType<JavaCompile>().configureEach {
100100
sourceCompatibility = JavaVersion.VERSION_11.toString()
101-
targetCompatibility = JavaVersion.VERSION_11.toString()
101+
targetCompatibility = JavaVersion.VERSION_17.toString()
102102
}
103103

104104
tasks.withType<KotlinJvmCompile>().configureEach {
105105
compilerOptions {
106-
jvmTarget.set(JvmTarget.JVM_11)
106+
jvmTarget.set(JvmTarget.JVM_17)
107107
freeCompilerArgs.addAll(
108108
listOf(
109-
"-Xjdk-release=11"
109+
"-Xjdk-release=17"
110110
),
111111
)
112112
}

wire-gradle-plugin/src/test/projects/different-proto-out/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ wire {
2727

2828
tasks.withType(JavaCompile).configureEach {
2929
sourceCompatibility = JavaVersion.VERSION_11.toString()
30-
targetCompatibility = JavaVersion.VERSION_11.toString()
30+
targetCompatibility = JavaVersion.VERSION_17.toString()
3131
}
3232

3333
tasks.withType(KotlinCompile).configureEach {
3434
kotlinOptions {
35-
jvmTarget = "11"
35+
jvmTarget = "17"
3636
}
3737
}

wire-gradle-plugin/src/test/projects/java-project-kotlin-protos/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,11 @@ wire {
4040

4141
tasks.withType(JavaCompile).configureEach {
4242
sourceCompatibility = JavaVersion.VERSION_11.toString()
43-
targetCompatibility = JavaVersion.VERSION_11.toString()
43+
targetCompatibility = JavaVersion.VERSION_17.toString()
4444
}
4545

4646
tasks.withType(KotlinCompile).configureEach {
4747
kotlinOptions {
48-
jvmTarget = "11"
48+
jvmTarget = "17"
4949
}
5050
}

wire-gradle-plugin/src/test/projects/kotlin-enum-mode/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@ wire {
3131

3232
tasks.withType(JavaCompile).configureEach {
3333
sourceCompatibility = JavaVersion.VERSION_11.toString()
34-
targetCompatibility = JavaVersion.VERSION_11.toString()
34+
targetCompatibility = JavaVersion.VERSION_17.toString()
3535
}
3636

3737
tasks.withType(KotlinCompile).configureEach {
3838
kotlinOptions {
39-
jvmTarget = "11"
39+
jvmTarget = "17"
4040
}
4141
}

wire-gradle-plugin/src/test/projects/kotlin-multiplatform/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,11 @@ wire {
4242

4343
tasks.withType(JavaCompile).configureEach {
4444
sourceCompatibility = JavaVersion.VERSION_11.toString()
45-
targetCompatibility = JavaVersion.VERSION_11.toString()
45+
targetCompatibility = JavaVersion.VERSION_17.toString()
4646
}
4747

4848
tasks.withType(KotlinCompile).configureEach {
4949
kotlinOptions {
50-
jvmTarget = "11"
50+
jvmTarget = "17"
5151
}
5252
}

wire-gradle-plugin/src/test/projects/kotlin-project-java-protos/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,11 @@ wire{
4141

4242
tasks.withType(JavaCompile).configureEach {
4343
sourceCompatibility = JavaVersion.VERSION_11.toString()
44-
targetCompatibility = JavaVersion.VERSION_11.toString()
44+
targetCompatibility = JavaVersion.VERSION_17.toString()
4545
}
4646

4747
tasks.withType(KotlinCompile).configureEach {
4848
kotlinOptions {
49-
jvmTarget = "11"
49+
jvmTarget = "17"
5050
}
5151
}

wire-gradle-plugin/src/test/projects/kotlin-project-kotlin-protos/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,11 @@ wire {
3838

3939
tasks.withType(JavaCompile).configureEach {
4040
sourceCompatibility = JavaVersion.VERSION_11.toString()
41-
targetCompatibility = JavaVersion.VERSION_11.toString()
41+
targetCompatibility = JavaVersion.VERSION_17.toString()
4242
}
4343

4444
tasks.withType(KotlinCompile).configureEach {
4545
kotlinOptions {
46-
jvmTarget = "11"
46+
jvmTarget = "17"
4747
}
4848
}

wire-gradle-plugin/src/test/projects/move-message/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@ wire {
3030

3131
tasks.withType(JavaCompile).configureEach {
3232
sourceCompatibility = JavaVersion.VERSION_11.toString()
33-
targetCompatibility = JavaVersion.VERSION_11.toString()
33+
targetCompatibility = JavaVersion.VERSION_17.toString()
3434
}
3535

3636
tasks.withType(KotlinCompile).configureEach {
3737
kotlinOptions {
38-
jvmTarget = "11"
38+
jvmTarget = "17"
3939
}
4040
}

wire-gradle-plugin/src/test/projects/opaque-message/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ wire {
2727

2828
tasks.withType(JavaCompile).configureEach {
2929
sourceCompatibility = JavaVersion.VERSION_11.toString()
30-
targetCompatibility = JavaVersion.VERSION_11.toString()
30+
targetCompatibility = JavaVersion.VERSION_17.toString()
3131
}
3232

3333
tasks.withType(KotlinCompile).configureEach {
3434
kotlinOptions {
35-
jvmTarget = "11"
35+
jvmTarget = "17"
3636
}
3737
}

wire-gradle-plugin/src/test/projects/project-dependencies-typesafe-accessor/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@ allprojects {
2727

2828
tasks.withType(JavaCompile).configureEach {
2929
sourceCompatibility = JavaVersion.VERSION_11.toString()
30-
targetCompatibility = JavaVersion.VERSION_11.toString()
30+
targetCompatibility = JavaVersion.VERSION_17.toString()
3131
}
3232

3333
tasks.withType(KotlinCompile).configureEach {
3434
kotlinOptions {
35-
jvmTarget = "11"
35+
jvmTarget = "17"
3636
}
3737
}
3838
}

0 commit comments

Comments
 (0)