mirror of
https://github.com/tadfisher/gradle2nix.git
synced 2026-01-11 23:40:37 -05:00
18 lines
585 B
Groovy
18 lines
585 B
Groovy
import org.gradle.util.GradleVersion
|
|
|
|
initscript {
|
|
dependencies {
|
|
if (GradleVersion.current() >= GradleVersion.version("8.1")) {
|
|
classpath files("plugin-gradle81.jar")
|
|
} else if (GradleVersion.current() >= GradleVersion.version("8.0")) {
|
|
classpath files("plugin-gradle80.jar")
|
|
} else if (GradleVersion.current() >= GradleVersion.version("7.5")) {
|
|
classpath files("plugin-gradle75.jar")
|
|
} else {
|
|
classpath files("plugin-base.jar")
|
|
}
|
|
}
|
|
}
|
|
|
|
apply plugin: org.nixos.gradle2nix.Gradle2NixPlugin
|