|
| 1 | +import com.vanniktech.maven.publish.SonatypeHost |
| 2 | + |
1 | 3 | plugins { |
2 | 4 | kotlin("jvm") version "2.0.20" |
3 | 5 | id("org.jetbrains.kotlinx.kover") version "0.8.3" |
4 | 6 | id("org.cadixdev.licenser") version "0.6.1" |
5 | | - `maven-publish` |
| 7 | + id("com.vanniktech.maven.publish") version "0.31.0" |
| 8 | + id("org.cyclonedx.bom") version "2.2.0" apply false |
6 | 9 | } |
7 | 10 |
|
8 | 11 | subprojects { |
9 | 12 | apply(plugin = "org.jetbrains.kotlin.jvm") |
10 | 13 | apply(plugin = "org.jetbrains.kotlinx.kover") |
11 | 14 | apply(plugin = "maven-publish") |
12 | 15 | apply(plugin = "org.cadixdev.licenser") |
| 16 | + apply(plugin = "com.vanniktech.maven.publish") |
| 17 | + apply(plugin = "org.cyclonedx.bom") |
13 | 18 |
|
14 | 19 | group = "org.eclipse.thingweb" |
15 | | - version = "0.1.3-SNAPSHOT" |
| 20 | + version = "0.1.0-SNAPSHOT" |
16 | 21 |
|
17 | 22 | license { |
18 | 23 | header(rootProject.file("LICENSE")) |
@@ -46,21 +51,34 @@ subprojects { |
46 | 51 | add("archives", tasks["javadocJar"]) |
47 | 52 | } |
48 | 53 |
|
49 | | - publishing { |
50 | | - publications { |
51 | | - create<MavenPublication>("mavenKotlin") { |
52 | | - from(components["java"]) |
53 | | - artifact(tasks["sourcesJar"]) |
54 | | - artifact(tasks["javadocJar"]) |
55 | | - artifactId = project.name |
| 54 | + mavenPublishing { |
| 55 | + publishToMavenCentral(SonatypeHost.DEFAULT, automaticRelease = true) |
| 56 | + signAllPublications() |
| 57 | + |
| 58 | + pom { |
| 59 | + name = "kotlin-wot" |
| 60 | + description = "A Framework for implementing Web of Things in Kotlin." |
| 61 | + url = "https://github.com/eclipse-thingweb/kotlin-wot" |
| 62 | + licenses { |
| 63 | + license { |
| 64 | + name = "Apache-2.0" |
| 65 | + distribution = "repo" |
| 66 | + url = "https://github.com/eclipse-thingweb/kotlin-wot/blob/master/LICENSES/Apache-2.0.txt" |
| 67 | + } |
| 68 | + } |
| 69 | + developers { |
| 70 | + developer { |
| 71 | + id = "robwin" |
| 72 | + name = "Robert Winkler" |
| 73 | + |
| 74 | + } |
| 75 | + } |
| 76 | + scm { |
| 77 | + url = "https://github.com/eclipse-thingweb/kotlin-wot.git" |
56 | 78 | } |
57 | | - } |
58 | | - repositories { |
59 | | - mavenLocal() |
60 | 79 | } |
61 | 80 | } |
62 | 81 |
|
63 | | - |
64 | 82 | tasks.test { |
65 | 83 | useJUnitPlatform() |
66 | 84 |
|
|
0 commit comments