forked from tadfisher/gradle2nix
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
44 lines (41 loc) · 1.36 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
plugins {
base
idea
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.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 {
wrapper {
gradleVersion = "5.4.1"
distributionType = Wrapper.DistributionType.ALL
}
}