A small Gradle plugin that enables reproducible builds by configuring archive tasks to be reproducible.
The only thing this Plugin provides is a slight simplification of the build files.
Add plugin activation to the build file header (substitute the relevant version):
plugins {
...
id 'dk.mada.reproducible' version '1.n.n'
}
And make sure the plugin can be fetched from MavenCentral by adding this to settings.gradle
:
pluginManagement {
repositories {
gradlePluginPortal()
mavenCentral()
}
}
For testing snapshot builds in other projects:
$ ./gradlew -t publishToMavenLocal -Pversion=0.0.1