mirror of
https://github.com/GeyserMC/PackConverter.git
synced 2025-12-20 07:19:14 +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_USERNAME: ${{ vars.DEPLOY_USER }}
|
||||||
OPENCOLLAB_PASSWORD: ${{ secrets.DEPLOY_PASS }}
|
OPENCOLLAB_PASSWORD: ${{ secrets.DEPLOY_PASS }}
|
||||||
with:
|
with:
|
||||||
arguments: :converter:publish
|
arguments: publish
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ plugins {
|
|||||||
|
|
||||||
publishing {
|
publishing {
|
||||||
repositories {
|
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}/") {
|
maven("https://repo.opencollab.dev/${repoName}/") {
|
||||||
credentials.username = System.getenv("OPENCOLLAB_USERNAME")
|
credentials.username = System.getenv("OPENCOLLAB_USERNAME")
|
||||||
credentials.password = System.getenv("OPENCOLLAB_PASSWORD")
|
credentials.password = System.getenv("OPENCOLLAB_PASSWORD")
|
||||||
|
|||||||
@@ -5,8 +5,6 @@ plugins {
|
|||||||
subprojects {
|
subprojects {
|
||||||
plugins.apply("pack.base-conventions")
|
plugins.apply("pack.base-conventions")
|
||||||
plugins.apply("pack.publish-conventions")
|
plugins.apply("pack.publish-conventions")
|
||||||
group = "org.geysermc.pack"
|
|
||||||
version = "3.1-SNAPSHOT"
|
|
||||||
|
|
||||||
java.sourceCompatibility = JavaVersion.VERSION_17
|
java.sourceCompatibility = JavaVersion.VERSION_17
|
||||||
java.targetCompatibility = 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