1
0
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:
chris
2024-03-13 16:09:29 +01:00
committed by GitHub
parent 7a2caf6f5d
commit c7fd0943fe
4 changed files with 5 additions and 5 deletions

View File

@@ -54,4 +54,4 @@ jobs:
OPENCOLLAB_USERNAME: ${{ vars.DEPLOY_USER }}
OPENCOLLAB_PASSWORD: ${{ secrets.DEPLOY_PASS }}
with:
arguments: :converter:publish
arguments: publish

View File

@@ -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")

View File

@@ -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
View File

@@ -0,0 +1,2 @@
group = org.geysermc.pack
version = 3.1-SNAPSHOT