mirror of
https://github.com/tadfisher/gradle2nix.git
synced 2026-01-11 15:30:38 -05:00
47 lines
1.2 KiB
Kotlin
47 lines
1.2 KiB
Kotlin
plugins {
|
|
base
|
|
}
|
|
|
|
group = "org.nixos.gradle2nix"
|
|
version = property("VERSION") ?: "unspecified"
|
|
|
|
subprojects {
|
|
group = rootProject.group
|
|
version = rootProject.version
|
|
}
|
|
|
|
allprojects {
|
|
plugins.withType<JavaBasePlugin> {
|
|
this@allprojects.withConvention(JavaPluginConvention::class) {
|
|
sourceSets.all {
|
|
configurations {
|
|
named(compileClasspathConfigurationName) {
|
|
resolutionStrategy.activateDependencyLocking()
|
|
}
|
|
named(runtimeClasspathConfigurationName) {
|
|
resolutionStrategy.activateDependencyLocking()
|
|
}
|
|
}
|
|
}
|
|
|
|
tasks.register("lock") {
|
|
doFirst {
|
|
assert(gradle.startParameter.isWriteDependencyLocks)
|
|
file("buildscript-gradle.lockfile").delete()
|
|
file("gradle.lockfile").delete()
|
|
}
|
|
doLast {
|
|
configurations.matching { it.isCanBeResolved }.all { resolve() }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
tasks {
|
|
wrapper {
|
|
gradleVersion = "6.8.1"
|
|
distributionType = Wrapper.DistributionType.ALL
|
|
}
|
|
}
|