mirror of
https://github.com/tadfisher/gradle2nix.git
synced 2026-03-11 04:45:23 -04:00
Rewrite based on code from the GitHub Dependency Graph Gradle Plugin
This commit is contained in:
@@ -1,5 +1,11 @@
|
||||
plugins {
|
||||
base
|
||||
alias(libs.plugins.kotlin.jvm) apply false
|
||||
alias(libs.plugins.kotlin.serialization) apply false
|
||||
alias(libs.plugins.ksp) apply false
|
||||
alias(libs.plugins.pluginPublish) apply false
|
||||
alias(libs.plugins.shadow) apply false
|
||||
alias(libs.plugins.stutter) apply false
|
||||
}
|
||||
|
||||
group = "org.nixos.gradle2nix"
|
||||
@@ -10,37 +16,9 @@ subprojects {
|
||||
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"
|
||||
gradleVersion = "8.3"
|
||||
distributionType = Wrapper.DistributionType.ALL
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user