-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathbuild.gradle.kts
59 lines (48 loc) · 1.32 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
47
48
49
50
51
52
53
54
55
56
57
58
59
import com.github.jk1.license.render.InventoryMarkdownReportRenderer
plugins {
java
id("com.github.ben-manes.versions")
id("com.github.jk1.dependency-license-report")
}
allprojects {
repositories {
jcenter()
mavenCentral()
mavenLocal()
maven {
setUrl("https://oss.jfrog.org/libs-snapshot")
}
}
plugins.withId("java") {
java {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
dependencies {
configurations.configureEach {
add(name, enforcedPlatform(project(":dependencyManagement")))
}
}
}
}
tasks.named<Wrapper>("wrapper") {
gradleVersion = "6.6.1"
distributionType = Wrapper.DistributionType.ALL
distributionSha256Sum = "11657af6356b7587bfb37287b5992e94a9686d5c8a0a1b60b87b9928a2decde5"
}
licenseReport {
renderers = arrayOf(InventoryMarkdownReportRenderer())
}
tasks {
val cleanLicenses by registering(Delete::class) {
delete("licenses")
}
val copyLicenses by registering(Copy::class) {
dependsOn(cleanLicenses)
from("build/reports/dependency-license")
into("licenses")
}
val generateLicenseReport by existing {
finalizedBy(copyLicenses)
}
}