Compare commits

...

4 commits

4 changed files with 21 additions and 39 deletions

17
.woodpecker/main.yml Normal file
View file

@ -0,0 +1,17 @@
steps:
build:
image: eclipse-temurin:17-jdk
commands:
- chmod +x ./gradlew
- ./gradlew build --no-daemon
maven-publish:
image: eclipse-temurin:17-jdk
when:
branch: main
commands:
- chmod +x ./gradlew
- ./gradlew publish --no-daemon
environment:
- LOCAL_MAVEN=/var/www/maven
volumes:
- /var/www/maven:/var/www/maven

35
Jenkinsfile vendored
View file

@ -1,35 +0,0 @@
pipeline {
agent any
stages {
stage('Clean') {
steps {
sh 'chmod +x ./gradlew'
sh './gradlew clean --no-daemon'
}
}
stage('Build') {
steps {
sh './gradlew build --no-daemon'
}
}
stage('Upload Artifacts') {
steps {
archiveArtifacts 'build/libs/**.jar'
}
}
stage('Publish') {
when {
branch 'main'
}
steps {
sh './gradlew publish --no-daemon'
}
}
}
environment {
local_maven = '/var/www/maven'
}
}

View file

@ -9,8 +9,8 @@ plugins {
jarJar.enable() jarJar.enable()
version = mod_version version = mod_version
if (System.getenv('BUILD_NUMBER') != null) { if (System.getenv('CI_PIPELINE_NUMBER') != null) {
version += "." + System.getenv('BUILD_NUMBER') version += "." + System.getenv('CI_PIPELINE_NUMBER')
} }
group = mod_group_id group = mod_group_id
@ -230,7 +230,7 @@ publishing {
} }
repositories { repositories {
maven { maven {
url "file://" + System.getenv("local_maven") url "file://" + System.getenv("LOCAL_MAVEN")
} }
} }
} }

View file

@ -52,7 +52,7 @@ mod_name=PrettyPipes
# The license of the mod. Review your options at https://choosealicense.com/. All Rights Reserved is the default. # The license of the mod. Review your options at https://choosealicense.com/. All Rights Reserved is the default.
mod_license=MIT mod_license=MIT
# The mod version. See https://semver.org/ # The mod version. See https://semver.org/
mod_version=1.13.6 mod_version=1.14.0
# The group ID for the mod. It is only important when publishing as an artifact to a Maven repository. # The group ID for the mod. It is only important when publishing as an artifact to a Maven repository.
# This should match the base package used for the mod sources. # This should match the base package used for the mod sources.
# See https://maven.apache.org/guides/mini/guide-naming-conventions.html # See https://maven.apache.org/guides/mini/guide-naming-conventions.html