Enable publishing for :graphics and :graphics:glfw

This commit is contained in:
JeremyStar™ 2024-08-01 03:00:56 +02:00
parent 30a32cad8c
commit 669be13dfa
Signed by: JeremyStarTM
GPG key ID: E366BAEF67E4704D
5 changed files with 70 additions and 4 deletions

View file

@ -124,7 +124,7 @@ publishing {
//noinspection GroovyAssignabilityCheck //noinspection GroovyAssignabilityCheck
maven (MavenPublication) { maven (MavenPublication) {
groupId = group groupId = group
artifactId = "ansi" artifactId = project.getName() as Publication
version = version version = version
//noinspection GroovyAssignabilityCheck //noinspection GroovyAssignabilityCheck
from components.java from components.java

View file

@ -163,7 +163,7 @@ publishing {
//noinspection GroovyAssignabilityCheck //noinspection GroovyAssignabilityCheck
maven (MavenPublication) { maven (MavenPublication) {
groupId = group groupId = group
artifactId = "base" artifactId = project.getName() as Publication
version = version version = version
//noinspection GroovyAssignabilityCheck //noinspection GroovyAssignabilityCheck
from components.java from components.java

View file

@ -21,6 +21,7 @@
plugins { plugins {
id("java") id("java")
id("io.freefair.lombok") version("${pluginLombok}") id("io.freefair.lombok") version("${pluginLombok}")
id("maven-publish")
} }
// Dependencies // Dependencies
@ -96,3 +97,35 @@ test {
events("passed", "skipped", "failed") 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
}
}
}

View file

@ -23,6 +23,7 @@ import org.gradle.internal.os.OperatingSystem
plugins { plugins {
id("java") id("java")
id("io.freefair.lombok") version("${pluginLombok}") id("io.freefair.lombok") version("${pluginLombok}")
id("maven-publish")
} }
// Determine operating system and architecture // Determine operating system and architecture
@ -131,3 +132,35 @@ test {
events("passed", "skipped", "failed") 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
}
}
}

View file

@ -91,7 +91,7 @@ publishing {
repositories { repositories {
maven { maven {
name = "staropensource" name = "staropensource"
url = "https://mvn.staropensource.de/sosengine" url = uri("https://mvn.staropensource.de/sosengine")
credentials(org.gradle.api.credentials.PasswordCredentials) credentials(org.gradle.api.credentials.PasswordCredentials)
authentication { authentication {
//noinspection GroovyAssignabilityCheck //noinspection GroovyAssignabilityCheck
@ -103,7 +103,7 @@ publishing {
//noinspection GroovyAssignabilityCheck //noinspection GroovyAssignabilityCheck
maven (MavenPublication) { maven (MavenPublication) {
groupId = group groupId = group
artifactId = "slf4j-compat" artifactId = project.getName() as Publication
version = version version = version
//noinspection GroovyAssignabilityCheck //noinspection GroovyAssignabilityCheck
from components.java from components.java