question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Simplify Gradle build

See original GitHub issue

It 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 with module-info.class being in the top-level directory of a Java 8 JAR file. The ModiTect plugin supports Multi-Release JARs by setting the jvmVersion 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:open
  • Created 2 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
aepflicommented, Mar 28, 2022

i created a simply draft for now, for experiments, lets see if this is something we want to pursue

0reactions
nipafxcommented, Sep 14, 2022

On #614, @aepfli commented:

I would actually get first rid of all the modularity etc. [which happens during release of 2.0] and than continue from there, it is just a lot of bloat and will most likely need additional efforts, which is not really worth it, if we plan to upgrade to [Java] 11 anyways

So this won’t be in 2.0.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found