Skip to content
This repository was archived by the owner on Feb 4, 2025. It is now read-only.

Commit 4fb47d4

Browse files
committed
Build: Move java related source/target compatibility into java block
This solves the 'Assignment is not used' build warnings on the 'fluxc-annotations' and 'fluxc-processor' Java related modules.
1 parent 7bfc187 commit 4fb47d4

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

fluxc-annotations/build.gradle

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ plugins {
44
}
55

66
java {
7+
sourceCompatibility = JavaVersion.VERSION_1_8
8+
targetCompatibility = JavaVersion.VERSION_1_8
9+
710
withSourcesJar()
811
withJavadocJar()
912
}
1013

11-
sourceCompatibility = JavaVersion.VERSION_1_8
12-
targetCompatibility = JavaVersion.VERSION_1_8
13-
1414
project.afterEvaluate {
1515
publishing {
1616
publications {

fluxc-processor/build.gradle

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ plugins {
66
}
77

88
java {
9+
sourceCompatibility = JavaVersion.VERSION_1_8
10+
targetCompatibility = JavaVersion.VERSION_1_8
11+
912
withSourcesJar()
1013
withJavadocJar()
1114
}
1215

13-
sourceCompatibility = JavaVersion.VERSION_1_8
14-
targetCompatibility = JavaVersion.VERSION_1_8
15-
1616
dependencies {
1717
implementation fluxcAnnotationsProjectDependency
1818
implementation sharedLibs.google.autoService

0 commit comments

Comments
 (0)