mirror of
https://github.com/Ellpeck/PrettyPipes.git
synced 2024-11-10 15:19:09 +01:00
Compare commits
4 commits
6050e5ad94
...
f61178a098
Author | SHA1 | Date | |
---|---|---|---|
f61178a098 | |||
3975e5fe2a | |||
7ba311c2bf | |||
4c55b4a677 |
4 changed files with 21 additions and 39 deletions
17
.woodpecker/main.yml
Normal file
17
.woodpecker/main.yml
Normal 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
35
Jenkinsfile
vendored
|
@ -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'
|
||||
}
|
||||
}
|
|
@ -9,8 +9,8 @@ plugins {
|
|||
jarJar.enable()
|
||||
|
||||
version = mod_version
|
||||
if (System.getenv('BUILD_NUMBER') != null) {
|
||||
version += "." + System.getenv('BUILD_NUMBER')
|
||||
if (System.getenv('CI_PIPELINE_NUMBER') != null) {
|
||||
version += "." + System.getenv('CI_PIPELINE_NUMBER')
|
||||
}
|
||||
|
||||
group = mod_group_id
|
||||
|
@ -230,7 +230,7 @@ publishing {
|
|||
}
|
||||
repositories {
|
||||
maven {
|
||||
url "file://" + System.getenv("local_maven")
|
||||
url "file://" + System.getenv("LOCAL_MAVEN")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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.
|
||||
mod_license=MIT
|
||||
# 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.
|
||||
# This should match the base package used for the mod sources.
|
||||
# See https://maven.apache.org/guides/mini/guide-naming-conventions.html
|
||||
|
|
Loading…
Reference in a new issue