mirror of
https://github.com/tadfisher/gradle2nix.git
synced 2026-01-11 15:30:38 -05:00
Use Gradle Tooling API
This commit is contained in:
@@ -5,7 +5,36 @@ plugins {
|
||||
kotlin("jvm") version embeddedKotlinVersion apply false
|
||||
kotlin("kapt") version embeddedKotlinVersion apply false
|
||||
id("com.github.johnrengelman.shadow") version "5.0.0" apply false
|
||||
id("org.ysb33r.gradletest") version "2.0-rc.4" apply false
|
||||
id("org.ajoberstar.stutter") version "0.5.0" apply false
|
||||
}
|
||||
|
||||
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)
|
||||
}
|
||||
doLast {
|
||||
sourceSets.all {
|
||||
configurations[compileClasspathConfigurationName].resolve()
|
||||
configurations[runtimeClasspathConfigurationName].resolve()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
tasks {
|
||||
|
||||
Reference in New Issue
Block a user