Skip to content

Commit b6b249a

Browse files
committed
Speicfy target java version
1 parent 5bfad82 commit b6b249a

File tree

6 files changed

+32
-9
lines changed

6 files changed

+32
-9
lines changed

common-api/build.gradle

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
plugins {
22
id "io.freefair.lombok" version "6.5.0.3"
3-
id 'java'
3+
id 'java-library'
44
}
55

66
group = 'bitxon.common'
77
version = '1.0-SNAPSHOT'
8-
sourceCompatibility = '17'
8+
9+
java {
10+
sourceCompatibility = JavaVersion.VERSION_17
11+
targetCompatibility = JavaVersion.VERSION_17
12+
}
913

1014
repositories {
1115
mavenCentral()

common-wiremock/build.gradle

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
plugins {
2-
id 'java'
2+
id 'java-library'
33
}
44

55
group = 'bitxon.common'
66
version = '1.0-SNAPSHOT'
7-
sourceCompatibility = '17'
7+
8+
java {
9+
sourceCompatibility = JavaVersion.VERSION_17
10+
targetCompatibility = JavaVersion.VERSION_17
11+
}

dropwizard-app/build.gradle

+5-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,11 @@ plugins {
66

77
group = 'bitxon.dropwizard'
88
version = '1.0-SNAPSHOT'
9-
sourceCompatibility = '17'
9+
10+
java {
11+
sourceCompatibility = JavaVersion.VERSION_17
12+
targetCompatibility = JavaVersion.VERSION_17
13+
}
1014

1115
repositories {
1216
mavenCentral()

micronaut-app/build.gradle

+5-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,11 @@ plugins {
66

77
group = 'bitxon.micronaut'
88
version = '1.0-SNAPSHOT'
9-
sourceCompatibility = '17'
10-
targetCompatibility = '17'
9+
10+
java {
11+
sourceCompatibility = JavaVersion.VERSION_17
12+
targetCompatibility = JavaVersion.VERSION_17
13+
}
1114

1215
repositories {
1316
mavenCentral()

quarkus-app/build.gradle

+5-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,11 @@ ext.set("quarkus.package.type", "uber-jar")
88

99
group = 'bitxon.quarkus'
1010
version = '1.0-SNAPSHOT'
11-
sourceCompatibility = '17'
11+
12+
java {
13+
sourceCompatibility = JavaVersion.VERSION_17
14+
targetCompatibility = JavaVersion.VERSION_17
15+
}
1216

1317
repositories {
1418
mavenCentral()

spring-app/build.gradle

+5-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,11 @@ plugins {
66

77
group = 'bitxon.spring'
88
version = '1.0-SNAPSHOT'
9-
sourceCompatibility = '17'
9+
10+
java {
11+
sourceCompatibility = JavaVersion.VERSION_17
12+
targetCompatibility = JavaVersion.VERSION_17
13+
}
1014

1115
repositories {
1216
mavenCentral()

0 commit comments

Comments
 (0)