xpipe-mirror/gradle/gradle_scripts/README.md
2023-01-27 02:34:46 +00:00

1,009 B

Gradle Scripts

This directory contains helper scripts and Java module generation rules for dependencies used by various X-Pipe gradle projects. It also contains various other types of shared build script components that are useful.

As the jlink tool effectively requires proper modules as inputs but many established java libraries did not add proper support yet, using an approach like this is required. The modules are generated with the help of moditect. The generated module-info.java file contains the necessary declarations to make a library work. While gradle already has a similar system to better share dependencies, this system is lacking several features. For one, it can't pass any other customizations to the build that are required by the dependencies, e.g. compiler parameters or annotation processors.