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
Auto Publish on Version Change / check-and-publish (push) Failing after 34s
This commit is contained in:
+22
-3
@@ -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")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user