Switch to publish-plugin and fix pom info for orx-git-archiver-gradle
This commit is contained in:
19
build.gradle
19
build.gradle
@@ -13,6 +13,7 @@ plugins {
|
||||
id 'org.jetbrains.kotlin.jvm' apply false
|
||||
id 'org.jetbrains.kotlin.multiplatform' apply false
|
||||
id 'org.jetbrains.kotlin.plugin.serialization' version '1.6.0' apply false
|
||||
id "io.github.gradle-nexus.publish-plugin" version "1.1.0"
|
||||
}
|
||||
|
||||
def multiplatformModules = [
|
||||
@@ -194,6 +195,11 @@ configure(allprojects.findAll { !doNotPublish.contains(it.name) && (multiplatfor
|
||||
|
||||
|
||||
publishing {
|
||||
publications {
|
||||
matching { it.name == "jvm" }.all { p ->
|
||||
artifact(fjdj)
|
||||
}
|
||||
}
|
||||
publications {
|
||||
all {
|
||||
pom {
|
||||
@@ -352,6 +358,19 @@ configure(allprojects.findAll { !doNotPublish.contains(it.name) && !multiplatfor
|
||||
}
|
||||
}
|
||||
|
||||
group = "org.openrndr"
|
||||
nexusPublishing {
|
||||
repositories {
|
||||
sonatype {
|
||||
username.set( findProperty("ossrhUsername") ?: System.getenv("OSSRH_USERNAME"))
|
||||
password.set(findProperty("ossrhPassword") ?: System.getenv("OSSRH_PASSWORD"))
|
||||
nexusUrl.set(uri("https://s01.oss.sonatype.org/service/local/"))
|
||||
snapshotRepositoryUrl.set(uri("https://s01.oss.sonatype.org/content/repositories/snapshots"))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//configure(allprojects.findAll { it.name != "openrndr-demos" }) {
|
||||
// apply plugin: 'maven-publish'
|
||||
// apply plugin: 'nebula.release'
|
||||
|
||||
@@ -14,4 +14,39 @@ gradlePlugin {
|
||||
implementationClass = "org.openrndr.extra.gitarchiver.GitArchiveToMarkdown"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
publishing {
|
||||
afterEvaluate {
|
||||
publications {
|
||||
withType(MavenPublication::class) {
|
||||
pom {
|
||||
name.set("gitarchiver tomarkdown")
|
||||
description.set("gitarchiver to markdown gradle plugin")
|
||||
url.set("https://openrndr.org")
|
||||
developers {
|
||||
developer {
|
||||
id.set("edwinjakobs")
|
||||
name.set("Edwin Jakobs")
|
||||
email.set("edwin@openrndr.org")
|
||||
}
|
||||
}
|
||||
|
||||
licenses {
|
||||
license {
|
||||
name.set("BSD-2-Clause")
|
||||
url.set("https://github.com/openrndr/openrndr/blob/master/LICENSE")
|
||||
distribution.set("repo")
|
||||
}
|
||||
}
|
||||
|
||||
scm {
|
||||
connection.set("scm:git:git@github.com:openrndr/orx.git")
|
||||
developerConnection.set("scm:git:ssh://github.com/openrndr/orx.git")
|
||||
url.set("https://github.com/openrndr/openrndr")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user