Migrate to new central publish
This commit is contained in:
parent
2e1f3876af
commit
a6a1ed4102
@ -1,3 +1,4 @@
|
|||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
`java-gradle-plugin`
|
`java-gradle-plugin`
|
||||||
`kotlin-dsl`
|
`kotlin-dsl`
|
||||||
@ -112,8 +113,18 @@ val emptySourcesJar by tasks.creating(Jar::class) {
|
|||||||
archiveBaseName.set("empty")
|
archiveBaseName.set("empty")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
mavenPublishing {
|
mavenPublishing {
|
||||||
|
configure(
|
||||||
|
com.vanniktech.maven.publish.GradlePlugin(
|
||||||
|
javadocJar = com.vanniktech.maven.publish.JavadocJar.Dokka("dokkaHtml"),
|
||||||
|
sourcesJar = true,
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
|
project.publishing.publications.create("maven", MavenPublication::class.java) {
|
||||||
|
from(project.components.getByName("versionCatalog"))
|
||||||
|
}
|
||||||
|
|
||||||
val vcs = "https://git.sciprog.center/kscience/gradle-tools"
|
val vcs = "https://git.sciprog.center/kscience/gradle-tools"
|
||||||
|
|
||||||
pom {
|
pom {
|
||||||
@ -167,8 +178,6 @@ mavenPublishing {
|
|||||||
publishToMavenCentral(com.vanniktech.maven.publish.SonatypeHost.CENTRAL_PORTAL)
|
publishToMavenCentral(com.vanniktech.maven.publish.SonatypeHost.CENTRAL_PORTAL)
|
||||||
signAllPublications()
|
signAllPublications()
|
||||||
}
|
}
|
||||||
|
|
||||||
configure(com.vanniktech.maven.publish.VersionCatalog())
|
|
||||||
}
|
}
|
||||||
|
|
||||||
kotlin {
|
kotlin {
|
||||||
|
Loading…
Reference in New Issue
Block a user