-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
56 lines (48 loc) · 1.81 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
plugins {
kotlin("js") version "1.7.21" apply false
id("com.github.hierynomus.license") version "0.16.1"
id("pl.allegro.tech.build.axion-release") version "1.13.6"
id("io.github.gradle-nexus.publish-plugin") version "1.1.0"
}
val uiKitVersion: String = scmVersion.version
allprojects {
group = "com.linked-planet.ui"
version = uiKitVersion
}
subprojects {
apply(plugin = "com.github.hierynomus.license")
license {
header = rootProject.file("LICENSE-HEADER.txt")
strictCheck = true
exclude("**/*.properties")
exclude("**/*.json")
ext["year"] = java.util.Calendar.getInstance().get(java.util.Calendar.YEAR)
ext["owner"] = "linked-planet GmbH"
ext["email"] = "info@linked-planet.com"
}
tasks {
val licenseCheckInSrc = register<com.hierynomus.gradle.license.tasks.LicenseCheck>("licenseCheckInSrc") {
source = fileTree(project.projectDir).matching { include("src/**/*") }
}
getByName("license").dependsOn(licenseCheckInSrc)
val licenseFormatInSrc = register<com.hierynomus.gradle.license.tasks.LicenseFormat>("licenseFormatInSrc") {
source = fileTree(project.projectDir).matching { include("src/**/*") }
}
getByName("licenseFormat").dependsOn(licenseFormatInSrc)
}
}
nexusPublishing {
repositories {
sonatype {
nexusUrl.set(uri("https://s01.oss.sonatype.org/service/local/"))
snapshotRepositoryUrl.set(uri("https://s01.oss.sonatype.org/content/repositories/snapshots/"))
}
}
}
// do not generate extra load on Nexus with new staging repository if signing fails
val initializeSonatypeStagingRepository by tasks.existing
subprojects {
initializeSonatypeStagingRepository {
shouldRunAfter(tasks.withType<Sign>())
}
}