diff --git a/build.gradle b/build.gradle index a707e9ff..5810a15f 100644 --- a/build.gradle +++ b/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' diff --git a/orx-jvm/orx-git-archiver-gradle/build.gradle.kts b/orx-jvm/orx-git-archiver-gradle/build.gradle.kts index 27a4d669..2b3ee574 100644 --- a/orx-jvm/orx-git-archiver-gradle/build.gradle.kts +++ b/orx-jvm/orx-git-archiver-gradle/build.gradle.kts @@ -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") + } + } + } + } + } } \ No newline at end of file