diff --git a/base/build.gradle b/base/build.gradle index 8ffdb92..b79d62a 100644 --- a/base/build.gradle +++ b/base/build.gradle @@ -1,6 +1,7 @@ plugins { id 'java' id 'io.freefair.lombok' version "${pluginLombok}" + id 'maven-publish' } dependencies { @@ -47,3 +48,27 @@ test { events "passed", "skipped", "failed" } } + +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 = "base" + version = version + //noinspection GroovyAssignabilityCheck + from components.java + } + } +} diff --git a/build.gradle b/build.gradle index 4536809..56410fd 100644 --- a/build.gradle +++ b/build.gradle @@ -1,5 +1,6 @@ plugins { id 'java' + id 'maven-publish' } tasks.register('javadocAll', Javadoc) { diff --git a/slf4j-compat/build.gradle b/slf4j-compat/build.gradle index 8839aaa..03865d2 100644 --- a/slf4j-compat/build.gradle +++ b/slf4j-compat/build.gradle @@ -47,3 +47,27 @@ test { events "passed", "skipped", "failed" } } + +publishing { + repositories { + maven { + name = "staropensource" + url = "https://mvn.staropensource.de/sosengine" + credentials(org.gradle.api.credentials.PasswordCredentials) + authentication { + //noinspection GroovyAssignabilityCheck + basic (BasicAuthentication) + } + } + } + publications { + //noinspection GroovyAssignabilityCheck + maven (MavenPublication) { + groupId = group + artifactId = "slf4j-compat" + version = version + //noinspection GroovyAssignabilityCheck + from components.java + } + } +}