Simplify Gradle build
See original GitHub issueIt appears currently the project is built multiple times by CI with different JDK versions and different modularity settings. Maybe I am overlooking something, but I think the following should be done to simplify the build and to also increase its reproducibility:
- The source and target Java version (or better the
--release
version) should be fixed and independent of the JDK version a user (or the CI server) has installed; Gradle toolchains could be used to ensure this - Instead there could be different test executions which alter the JUnit version and the runtime Java version. For that Gradle toolchains and possibly the incubating test suites feature could be used (maybe there are other solutions as well).
- The
module-info.class
should always be created, but it should be placed in a Multi-Release JAR folder. There are cases where build tools or plugins have issues withmodule-info.class
being in the top-level directory of a Java 8 JAR file. The ModiTect plugin supports Multi-Release JARs by setting thejvmVersion
value (should be set to 9 since that is the next higher version >= 9 after version 8 targeted by this project), see documentation. This would also allow running the Javadoc task with--release 9
then to have it generate a module overview, see also #566.
What do you think?
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
Simplify Gradle Dependency Management - Umang Chamaria
Before getting into how to simplify dependency management in gradle let's first look at the current approach and problems with the approach.
Read more >Simplify Your Script Build With Gradle - DZone
In this post, we learn more about how to simplify our build script with Gradle, looking at specific code examples with Java and...
Read more >simplify/build.gradle at master - GitHub
Android virtual machine and deobfuscator. Contribute to CalebFenton/simplify development by creating an account on GitHub.
Read more >Improve the Performance of Gradle Builds
Dependency resolution simplifies integrating third-party libraries and other dependencies into your projects. Gradle contacts remote servers to discover and ...
Read more >What is the Gradle Build Tool? A simplified explanation
Why do we need to build software? How does code become an app? What is the Gradle Build Tool? A description for non-technical...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
i created a simply draft for now, for experiments, lets see if this is something we want to pursue
On #614, @aepfli commented:
So this won’t be in 2.0.