diff --git a/ansi/build.gradle b/ansi/build.gradle index a32975e..4f80137 100644 --- a/ansi/build.gradle +++ b/ansi/build.gradle @@ -124,7 +124,7 @@ publishing { //noinspection GroovyAssignabilityCheck maven (MavenPublication) { groupId = group - artifactId = "ansi" + artifactId = project.getName() as Publication version = version //noinspection GroovyAssignabilityCheck from components.java diff --git a/base/build.gradle b/base/build.gradle index 93bd447..d306728 100644 --- a/base/build.gradle +++ b/base/build.gradle @@ -163,7 +163,7 @@ publishing { //noinspection GroovyAssignabilityCheck maven (MavenPublication) { groupId = group - artifactId = "base" + artifactId = project.getName() as Publication version = version //noinspection GroovyAssignabilityCheck from components.java diff --git a/graphics/build.gradle b/graphics/build.gradle index 476dbf9..d07af6c 100644 --- a/graphics/build.gradle +++ b/graphics/build.gradle @@ -21,6 +21,7 @@ plugins { id("java") id("io.freefair.lombok") version("${pluginLombok}") + id("maven-publish") } // Dependencies @@ -96,3 +97,35 @@ test { events("passed", "skipped", "failed") } } + +// Include javadoc and source jar during publishing +java { + withJavadocJar() + withSourcesJar() +} + +// Build publishing configuration +// Note: You can safely ignore any errors or warnings thrown by your IDE here +publishing { + repositories { + maven { + name = "staropensource" + url = uri("https://mvn.staropensource.de/sosengine") + credentials(org.gradle.api.credentials.PasswordCredentials) + authentication { + //noinspection GroovyAssignabilityCheck + basic (BasicAuthentication) + } + } + } + publications { + //noinspection GroovyAssignabilityCheck + maven (MavenPublication) { + groupId = group + artifactId = project.getName() as Publication + version = version + //noinspection GroovyAssignabilityCheck + from components.java + } + } +} diff --git a/graphics/glfw/build.gradle b/graphics/glfw/build.gradle index af9c059..7ee49f6 100644 --- a/graphics/glfw/build.gradle +++ b/graphics/glfw/build.gradle @@ -23,6 +23,7 @@ import org.gradle.internal.os.OperatingSystem plugins { id("java") id("io.freefair.lombok") version("${pluginLombok}") + id("maven-publish") } // Determine operating system and architecture @@ -131,3 +132,35 @@ test { events("passed", "skipped", "failed") } } + +// Include javadoc and source jar during publishing +java { + withJavadocJar() + withSourcesJar() +} + +// Build publishing configuration +// Note: You can safely ignore any errors or warnings thrown by your IDE here +publishing { + repositories { + maven { + name = "staropensource" + url = uri("https://mvn.staropensource.de/sosengine") + credentials(org.gradle.api.credentials.PasswordCredentials) + authentication { + //noinspection GroovyAssignabilityCheck + basic (BasicAuthentication) + } + } + } + publications { + //noinspection GroovyAssignabilityCheck + maven (MavenPublication) { + groupId = group + artifactId = project.getName() as Publication + version = version + //noinspection GroovyAssignabilityCheck + from components.java + } + } +} diff --git a/slf4j-compat/build.gradle b/slf4j-compat/build.gradle index b869ac5..1b32e00 100644 --- a/slf4j-compat/build.gradle +++ b/slf4j-compat/build.gradle @@ -91,7 +91,7 @@ publishing { repositories { maven { name = "staropensource" - url = "https://mvn.staropensource.de/sosengine" + url = uri("https://mvn.staropensource.de/sosengine") credentials(org.gradle.api.credentials.PasswordCredentials) authentication { //noinspection GroovyAssignabilityCheck @@ -103,7 +103,7 @@ publishing { //noinspection GroovyAssignabilityCheck maven (MavenPublication) { groupId = group - artifactId = "slf4j-compat" + artifactId = project.getName() as Publication version = version //noinspection GroovyAssignabilityCheck from components.java