|
27 | 27 | }
|
28 | 28 |
|
29 | 29 | tasks.withType<DokkaTask>().configureEach {
|
30 |
| - dokkaSourceSets.all { |
| 30 | + dokkaSourceSets.register("main") { |
| 31 | + sourceRoot("src/main/kotlin") |
31 | 32 | sourceLink {
|
32 | 33 | localDirectory.set(file("src/main/kotlin"))
|
33 | 34 | remoteUrl.set(URL("$repoUrl/blob/$version/src/main/kotlin"))
|
@@ -90,7 +91,7 @@ dependencies {
|
90 | 91 | integrationTestImplementation("org.jetbrains.kotlinx:kotlin-jupyter-test-kit:0.12.0-181")
|
91 | 92 | }
|
92 | 93 |
|
93 |
| -fun libraryPom() = Action<MavenPom> { |
| 94 | +val libraryPom = Action<MavenPom> { |
94 | 95 | name.set("Develocity API Kotlin")
|
95 | 96 | description.set("A library to use the Develocity API in Kotlin")
|
96 | 97 | url.set(repoUrl)
|
@@ -121,18 +122,18 @@ publishing {
|
121 | 122 | create<MavenPublication>("develocityApiKotlin") {
|
122 | 123 | artifactId = "develocity-api-kotlin"
|
123 | 124 | from(components["java"])
|
124 |
| - pom(libraryPom()) |
| 125 | + pom(libraryPom) |
125 | 126 | }
|
126 | 127 | // For occasional maven local publishing
|
127 | 128 | create<MavenPublication>("unsignedDevelocityApiKotlin") {
|
128 | 129 | artifactId = "develocity-api-kotlin"
|
129 | 130 | from(components["java"])
|
130 |
| - pom(libraryPom()) |
| 131 | + pom(libraryPom) |
131 | 132 | }
|
132 | 133 | create<MavenPublication>("relocation") {
|
| 134 | + artifactId = "gradle-enterprise-api-kotlin" |
133 | 135 | pom {
|
134 |
| - groupId = project.group.toString() |
135 |
| - artifactId = "gradle-enterprise-api-kotlin" |
| 136 | + libraryPom(this) |
136 | 137 | distributionManagement {
|
137 | 138 | relocation {
|
138 | 139 | groupId = project.group.toString()
|
@@ -164,7 +165,10 @@ publishing {
|
164 | 165 | fun isCI() = System.getenv("CI").toBoolean()
|
165 | 166 |
|
166 | 167 | signing {
|
167 |
| - sign(publishing.publications["develocityApiKotlin"]) |
| 168 | + sign( |
| 169 | + publishing.publications["develocityApiKotlin"], |
| 170 | + publishing.publications["relocation"], |
| 171 | + ) |
168 | 172 | if (isCI()) {
|
169 | 173 | useInMemoryPgpKeys(
|
170 | 174 | project.properties["signing.secretKey"] as String?,
|
|
0 commit comments