Skip to content

Commit 3733745

Browse files
build: apply POM configuration to common compilation
1 parent b4efd95 commit 3733745

File tree

3 files changed

+27
-27
lines changed

3 files changed

+27
-27
lines changed

modules/api-client-ktor/build.gradle.kts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -55,15 +55,6 @@ kotlin {
5555
freeCompilerArgs = listOf("-Xopt-in=kotlin.RequiresOptIn")
5656
}
5757
}
58-
59-
mavenPublication {
60-
artifact(tasks["javadocJar"])
61-
62-
decorateMavenPom {
63-
name.set("GW2APIClient Ktor Implementation")
64-
description.set("Ktor HttpClient implementation for GW2APIClient.")
65-
}
66-
}
6758
}
6859

6960
// js(IR) {
@@ -152,6 +143,15 @@ tasks {
152143
}
153144

154145
publishing {
146+
publications.withType<MavenPublication>().all {
147+
artifact(tasks["javadocJar"])
148+
149+
decorateMavenPom {
150+
name.set("GW2APIClient Ktor Implementation")
151+
description.set("Ktor HttpClient implementation for GW2APIClient.")
152+
}
153+
}
154+
155155
repositories {
156156
maven {
157157
url = uri(deployment.repo)

modules/api-client/build.gradle.kts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -54,15 +54,6 @@ kotlin {
5454
freeCompilerArgs = listOf("-Xopt-in=kotlin.RequiresOptIn")
5555
}
5656
}
57-
58-
mavenPublication {
59-
artifact(tasks["javadocJar"])
60-
61-
decorateMavenPom {
62-
name.set("GW2APIClient Query Definitions")
63-
description.set("Definitions for the various queries supported by the official Guild Wars 2 API.")
64-
}
65-
}
6657
}
6758

6859
// js(IR) {
@@ -166,6 +157,15 @@ tasks {
166157
}
167158

168159
publishing {
160+
publications.withType<MavenPublication>().all {
161+
artifact(tasks["javadocJar"])
162+
163+
decorateMavenPom {
164+
name.set("GW2APIClient Query Definitions")
165+
description.set("Definitions for the various queries supported by the official Guild Wars 2 API.")
166+
}
167+
}
168+
169169
repositories {
170170
maven {
171171
url = uri(deployment.repo)

modules/api-types/build.gradle.kts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -55,15 +55,6 @@ kotlin {
5555
apiVersion = "1.4"
5656
}
5757
}
58-
59-
mavenPublication {
60-
artifact(tasks["javadocJar"])
61-
62-
decorateMavenPom {
63-
name.set("GW2API Type Definitions")
64-
description.set("Definitions for the various objects returned by the official Guild Wars 2 API.")
65-
}
66-
}
6758
}
6859

6960
// js(IR) {
@@ -130,6 +121,15 @@ tasks {
130121
}
131122

132123
publishing {
124+
publications.withType<MavenPublication>().all {
125+
artifact(tasks["javadocJar"])
126+
127+
decorateMavenPom {
128+
name.set("GW2API Type Definitions")
129+
description.set("Definitions for the various objects returned by the official Guild Wars 2 API.")
130+
}
131+
}
132+
133133
repositories {
134134
maven {
135135
url = uri(deployment.repo)

0 commit comments

Comments
 (0)