mirror of
https://github.com/GeyserMC/PackConverter.git
synced 2025-12-19 14:59:21 +00:00
Fix publishing (#18)
* move version/group setting to gradle.properties, publish all necessary artifacts * We dont need the : --------- Co-authored-by: rtm516 <rtm516@users.noreply.github.com>
This commit is contained in:
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
@@ -54,4 +54,4 @@ jobs:
|
||||
OPENCOLLAB_USERNAME: ${{ vars.DEPLOY_USER }}
|
||||
OPENCOLLAB_PASSWORD: ${{ secrets.DEPLOY_PASS }}
|
||||
with:
|
||||
arguments: :converter:publish
|
||||
arguments: publish
|
||||
|
||||
@@ -5,7 +5,7 @@ plugins {
|
||||
|
||||
publishing {
|
||||
repositories {
|
||||
val repoName = if (version.toString().endsWith("SNAPSHOT")) "maven-snapshots" else "maven-releases"
|
||||
val repoName = if (project.version.toString().endsWith("SNAPSHOT")) "maven-snapshots" else "maven-releases"
|
||||
maven("https://repo.opencollab.dev/${repoName}/") {
|
||||
credentials.username = System.getenv("OPENCOLLAB_USERNAME")
|
||||
credentials.password = System.getenv("OPENCOLLAB_PASSWORD")
|
||||
|
||||
@@ -2,11 +2,9 @@ plugins {
|
||||
id("pack.base-conventions")
|
||||
}
|
||||
|
||||
subprojects{
|
||||
subprojects {
|
||||
plugins.apply("pack.base-conventions")
|
||||
plugins.apply("pack.publish-conventions")
|
||||
group = "org.geysermc.pack"
|
||||
version = "3.1-SNAPSHOT"
|
||||
|
||||
java.sourceCompatibility = JavaVersion.VERSION_17
|
||||
java.targetCompatibility = JavaVersion.VERSION_17
|
||||
|
||||
2
gradle.properties
Normal file
2
gradle.properties
Normal file
@@ -0,0 +1,2 @@
|
||||
group = org.geysermc.pack
|
||||
version = 3.1-SNAPSHOT
|
||||
Reference in New Issue
Block a user