-
Notifications
You must be signed in to change notification settings - Fork 60
/
build.gradle.kts
46 lines (41 loc) · 1.23 KB
/
build.gradle.kts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
plugins {
base
}
group = "org.nixos.gradle2nix"
version = property("VERSION") ?: "unspecified"
subprojects {
group = rootProject.group
version = rootProject.version
}
allprojects {
plugins.withType<JavaBasePlugin> {
[email protected](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
}
}