Add GitHub Actions workflow for auto-publishing and configure Maven publishing in Gradle
Auto Publish on Version Change / check-and-publish (push) Failing after 34s

This commit is contained in:
CodingPhoenixx
2026-05-28 12:45:46 +02:00
parent eb005b06fb
commit ec99b987bf
2 changed files with 79 additions and 3 deletions
+22 -3
View File
@@ -1,9 +1,10 @@
plugins {
id 'java'
id 'maven-publish'
}
group = 'dev.coph'
version = '1.0-SNAPSHOT'
version = '0.0.1'
repositories {
mavenCentral()
@@ -20,5 +21,23 @@ java {
}
sourceCompatibility = JavaVersion.VERSION_26
targetCompatibility = JavaVersion.VERSION_26
}
}
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
}
}
repositories {
maven {
name = "NexusWeb"
url = System.getenv("MAVEN_REPO_URL")
credentials {
username = System.getenv("MAVEN_REPO_USER")
password = System.getenv("MAVEN_REPO_PASS")
}
}
}
}