Skip to content

Commit 0e2e2d1

Browse files
committed
Publish proper POM detail and module metadata
Clojars is now updated to support it.
1 parent 66f0ad4 commit 0e2e2d1

File tree

1 file changed

+31
-4
lines changed

1 file changed

+31
-4
lines changed

build.gradle.kts

Lines changed: 31 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,37 @@ publishing {
8484
publications {
8585
create<MavenPublication>("main") {
8686
from(components["java"])
87+
88+
versionMapping {
89+
usage("java-api") { fromResolutionOf("runtimeClasspath") }
90+
usage("java-runtime") { fromResolutionResult() }
91+
}
92+
93+
pom {
94+
name.set(project.name)
95+
description.set(project.description)
96+
url.set("https://github.com/clojurephant/clojurephant-tooling")
97+
98+
developers {
99+
developer {
100+
name.set("Andrew Oberstar")
101+
email.set("[email protected]")
102+
}
103+
}
104+
105+
licenses {
106+
license {
107+
name.set("Apache License 2.0")
108+
url.set("https://github.com/clojurephant/jovial/blob/main/LICENSE")
109+
}
110+
}
111+
112+
scm {
113+
url.set("https://github.com/clojurephant/clojurephant-tooling")
114+
connection.set("scm:git:[email protected]:clojurephant/clojurephant-tooling.git")
115+
developerConnection.set("scm:git:[email protected]:clojurephant/clojurephant-tooling.git")
116+
}
117+
}
87118
}
88119
}
89120
}
90-
91-
tasks.withType<GenerateModuleMetadata>() {
92-
enabled = false
93-
}

0 commit comments

Comments
 (0)