-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle.kts
89 lines (81 loc) · 2.69 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
plugins {
id("io.cloudflight.autoconfigure-gradle") version "1.0.1"
kotlin("plugin.serialization") version "1.9.0"
`maven-publish`
id("io.github.gradle-nexus.publish-plugin") version "1.1.0"
signing
}
description = "The SPDX license catalog including a Kotlin Wrapper for access"
group = "io.cloudflight.license.spdx"
version = "3.21.0"
autoConfigure {
java {
languageVersion.set(JavaLanguageVersion.of(8))
vendorName.set("Cloudflight")
}
kotlin {
kotlinVersion.set("1.9.0")
}
}
repositories {
mavenCentral()
}
dependencies {
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.2.0")
testImplementation("org.junit.jupiter:junit-jupiter-engine:5.8.2")
}
java {
withJavadocJar()
}
publishing {
publications {
create<MavenPublication>("maven") {
from(components["java"])
pom {
name.set(project.name)
description.set(project.description)
url.set("https://github.com/cloudflightio/spdx-catalog")
licenses {
license {
name.set("The Apache License, Version 2.0")
url.set("http://www.apache.org/licenses/LICENSE-2.0.txt")
}
}
inceptionYear.set("2022")
organization {
name.set("Cloudflight")
url.set("https://cloudflight.io")
}
developers {
developer {
id.set("klu2")
name.set("Klaus Lehner")
email.set("[email protected]")
}
}
scm {
connection.set("scm:[email protected]:cloudflightio/spdx-catalog.git")
developerConnection.set("scm:[email protected]:cloudflightio/spdx-catalog.git")
url.set("https://github.com/cloudflightio/spdx-catalog")
}
}
}
}
}
nexusPublishing {
repositories {
sonatype { //only for users registered in Sonatype after 24 Feb 2021
nexusUrl.set(uri("https://s01.oss.sonatype.org/service/local/"))
snapshotRepositoryUrl.set(uri("https://s01.oss.sonatype.org/content/repositories/snapshots/"))
username.set(System.getenv("MAVEN_USERNAME"))
password.set(System.getenv("MAVEN_PASSWORD"))
}
}
}
signing {
setRequired {
System.getenv("PGP_SECRET") != null
}
useInMemoryPgpKeys(System.getenv("PGP_SECRET"), System.getenv("PGP_PASSPHRASE"))
sign(publishing.publications.getByName("maven"))
}