Add maven-publish plugin

Publishes to mvn.staropensource.de.
This commit is contained in:
JeremyStar™ 2024-06-16 13:36:06 +02:00
parent bb1831b900
commit 129537a60c
Signed by: JeremyStarTM
GPG key ID: E366BAEF67E4704D
3 changed files with 50 additions and 0 deletions

View file

@ -1,6 +1,7 @@
plugins { plugins {
id 'java' id 'java'
id 'io.freefair.lombok' version "${pluginLombok}" id 'io.freefair.lombok' version "${pluginLombok}"
id 'maven-publish'
} }
dependencies { dependencies {
@ -47,3 +48,27 @@ test {
events "passed", "skipped", "failed" 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
}
}
}

View file

@ -1,5 +1,6 @@
plugins { plugins {
id 'java' id 'java'
id 'maven-publish'
} }
tasks.register('javadocAll', Javadoc) { tasks.register('javadocAll', Javadoc) {

View file

@ -47,3 +47,27 @@ test {
events "passed", "skipped", "failed" 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
}
}
}