Skip to content

Commit

Permalink
ci: Target lower java version by manipulating source on runner
Browse files Browse the repository at this point in the history
  • Loading branch information
Pazaz committed Jan 4, 2024
1 parent 700689c commit d2e80c2
Show file tree
Hide file tree
Showing 8 changed files with 108 additions and 479 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ build/
*.class

loader/src/main/java/sig.java
loader/src/main/java/sign/signlink.java
2 changes: 1 addition & 1 deletion client/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ dependencies {
}

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

application {
Expand Down
2 changes: 1 addition & 1 deletion deob-annotations/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ plugins {
}

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

tasks.withType(JavaCompile) {
Expand Down
9 changes: 8 additions & 1 deletion loader/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,21 @@ dependencies {
}

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

tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
options.compilerArgs << '-Xlint:unchecked' << '-Xlint:deprecation'

dependsOn("copySignlink")
}

tasks.withType(JavaExec) {
workingDir = project.rootDir
}

tasks.register("copySignlink", Copy) {
from("../client/src/main/java/sign/signlink.java")
into("src/main/java/sign/")
}
Loading

0 comments on commit d2e80c2

Please sign in to comment.