Skip to content

Commit 45b5440

Browse files
committed
Set source/target compatibility in each project
This avoids issues with evaluation order, since there are cross-dependencies between projects, compared to setting these settings centrally via the root project.
1 parent 51c6a62 commit 45b5440

File tree

6 files changed

+15
-5
lines changed

6 files changed

+15
-5
lines changed

build.gradle

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -139,11 +139,6 @@ subprojects { project ->
139139
project.tasks.spotlessCheck.finalizedBy(project.tasks.checkScalafix)
140140
}
141141

142-
if (project.hasProperty('sourceCompatibility')) {
143-
sourceCompatibility = 1.8
144-
targetCompatibility = 1.8
145-
}
146-
147142
tasks.withType(JavaCompile) {
148143
options.encoding = 'UTF-8'
149144
}

webauthn-server-attestation/build.gradle

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ description = 'Yubico WebAuthn attestation subsystem'
88

99
project.ext.publishMe = true
1010

11+
sourceCompatibility = 1.8
12+
targetCompatibility = 1.8
13+
1114
evaluationDependsOn(':webauthn-server-core-minimal')
1215

1316
dependencies {

webauthn-server-core-bundle/build.gradle

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ description = 'Yubico WebAuthn server core API'
66

77
project.ext.publishMe = true
88

9+
sourceCompatibility = 1.8
10+
targetCompatibility = 1.8
11+
912
dependencies {
1013
api(
1114
project(':webauthn-server-core-minimal'),

webauthn-server-core/build.gradle

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ description = 'Yubico WebAuthn server core API (fewer dependencies)'
99

1010
project.ext.publishMe = true
1111

12+
sourceCompatibility = 1.8
13+
targetCompatibility = 1.8
14+
1215
dependencies {
1316
api(platform(rootProject))
1417

yubico-util-scala/build.gradle

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ plugins {
55

66
description = 'Yubico internal Scala utilities'
77

8+
sourceCompatibility = 1.8
9+
targetCompatibility = 1.8
10+
811
dependencies {
912
implementation(platform(rootProject))
1013

yubico-util/build.gradle

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ description = 'Yubico internal utilities'
88

99
project.ext.publishMe = true
1010

11+
sourceCompatibility = 1.8
12+
targetCompatibility = 1.8
13+
1114
dependencies {
1215
api(platform(rootProject))
1316

0 commit comments

Comments
 (0)