Skip to content

Commit

Permalink
ci: Testing JDK 1.1 options
Browse files Browse the repository at this point in the history
  • Loading branch information
Pazaz committed Jan 16, 2024
1 parent f9d40af commit 3c21655
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions client/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ dependencies {

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

application {
Expand Down
1 change: 1 addition & 0 deletions loader/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ dependencies {

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

tasks.withType(JavaCompile) {
Expand Down
1 change: 1 addition & 0 deletions tools/src/main/java/lostcity/tools/RemoveAnnotations.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ public static void main(String[] args) {
String contents = FileUtils.readFileToString(file);
contents = contents.replaceAll("compileOnly project\\(':deob-annotations'\\)", "");
contents = contents.replaceAll("sourceCompatibility = JavaVersion\\.VERSION_1_8", "sourceCompatibility = JavaVersion.VERSION_1_2");
contents = contents.replaceAll("targetCompatibility = JavaVersion\\.VERSION_1_8", "targetCompatibility = JavaVersion.VERSION_1_1");
FileUtils.writeStringToFile(file, contents);
} catch (IOException ex) {
ex.printStackTrace();
Expand Down

0 comments on commit 3c21655

Please sign in to comment.