-
Notifications
You must be signed in to change notification settings - Fork 6.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This change will require newer versions of Java, probably 9+. I've tested it on 11. The biggest difference is that older versions of Java will require rt.jar to compile Glide's annotation processor. On newer versions of Java that jar has been removed and the dependencies are available as part of the Java plugin. For now I've required newer versions of Java. If this proves complex, we could optionally include rt.jar and partially revert this change when we detect older versions of Java being used. The single largest problem with this change is that I cannot figure out a way to get the annotation processor tests to run. They require the android library plugin because they depend directly on Android code. However, they also require access to javax classes. These classes are included via jmods on newer versions of Java and the rt jar is not available. The jmods are only available from the Java plugin, not the android plugin. This means that we can either get access to the android classes, or the javax classes, but not both. I can't find a reasonable way to resolve this in the short term. For now the tests are still enabled using blaze/bazel internally.
- Loading branch information
Showing
11 changed files
with
150 additions
and
132 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,8 @@ | ||
apply plugin: 'java' | ||
|
||
apply from: "${rootProject.projectDir}/scripts/upload.gradle" | ||
apply from: "${rootProject.projectDir}/scripts/upload.gradle" | ||
|
||
java { | ||
sourceCompatibility = JavaVersion.VERSION_1_7 | ||
targetCompatibility = JavaVersion.VERSION_1_7 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.