Bootstrapping

The library is available on Maven Central. Add the following to your Gradle build script to use it.

build.gradle
repositories {
  mavenCentral()
}

Then you also need to either add the dependencies to your .build.gradle or gradle/libs.versions.toml files.

build.gradle
dependencies {
  api 'org.ysb33r.gradle:grolifant5-core:5.12.1'
  implementation 'org.ysb33r.gradle:grolifant5-rawhide:5.12.1' (1)
  runtimeOnly 'org.ysb33r.gradle:grolifant5-herd:5.12.1'
  runtimeOnly 'org.ysb33r.gradle:grolifant5-herd-native:5.12.1' (2)
}
1 Only needed if you want to access the worker API directly from your plugin.
2 Only needed if you are writing a plugin that calls native executables and where the caller might have issues on Windows.

OR if you are using the version catalog

gradle/libs.versions.toml
[versions]
grolifant = "5.12.1"

[libraries]
grolifantApi = { module = "org.ysb33r.gradle:grolifant5-core", version.ref = "grolifant" }
grolifantRuntime = { module = "org.ysb33r.gradle:grolifant5-herd", version.ref = "grolifant" }
grolifantRawhide = { module = "org.ysb33r.gradle:grolifant5-rawhide", version.ref = "grolifant" } (1)
grolifantRuntimeNative = { module = "org.ysb33r.gradle:grolifant5-herd-native", version.ref = "grolifant" } (2)
1 Only needed if you want to access the worker API directly from your plugin.
2 Only needed if you are writing a plugin that calls native executables and where the caller might have issues on Windows.
For native support either tell the user to apply Java Native Settings plugin or provide your own Settings plugin that adds attributes via pluginClasspath().applyNativeAttributes