From 700494f15b7e7ae840e60ada07311ea24bdf7beb Mon Sep 17 00:00:00 2001 From: Joey Hines Date: Tue, 11 Jan 2022 03:05:18 +0000 Subject: [PATCH] Switched CI to woodpecker (#3) + Bumped gradle version Co-authored-by: jolheiser Reviewed-on: https://git.jojodev.com/Minecraft/pluginapi/pulls/3 Co-authored-by: Joey Hines Co-committed-by: Joey Hines --- .drone.yml | 35 ------------------------ .woodpecker.yml | 23 ++++++++++++++++ build.gradle | 4 +-- gradle/wrapper/gradle-wrapper.properties | 2 +- 4 files changed, 26 insertions(+), 38 deletions(-) delete mode 100644 .drone.yml create mode 100644 .woodpecker.yml diff --git a/.drone.yml b/.drone.yml deleted file mode 100644 index 3c20482..0000000 --- a/.drone.yml +++ /dev/null @@ -1,35 +0,0 @@ ---- -kind: pipeline -name: compliance - -trigger: - event: - - pull_request - -steps: - - name: build - pull: always - image: gradle:6.6 - commands: - - gradle build - - gradle test - ---- -kind: pipeline -name: release - -trigger: - branch: - - master - event: - - push - -steps: - - name: publish - pull: always - image: gradle:6.6 - environment: - MAVEN_PASSWORD: - from_secret: maven_password - commands: - - gradle publish \ No newline at end of file diff --git a/.woodpecker.yml b/.woodpecker.yml new file mode 100644 index 0000000..6594240 --- /dev/null +++ b/.woodpecker.yml @@ -0,0 +1,23 @@ +clone: + git: + image: woodpeckerci/plugin-git:next + +pipeline: + compliance: + image: gradle:7.3-jdk17 + commands: + - gradle build + - gradle test + when: + event: pull_request + + release: + image: gradle:7.3-jdk17 + environment: + - MAVEN_PASSWORD: + from_secret: maven_password + commands: + - gradle publish + when: + branch: master + diff --git a/build.gradle b/build.gradle index 877fdcf..ef58a35 100644 --- a/build.gradle +++ b/build.gradle @@ -34,8 +34,8 @@ publishing { } repositories { maven { - name = "birbmc" - url = "https://mvn.birbmc.com/releases" + name = "jojodev" + url = "https://mvn.jojodev.com/releases" credentials { username = "admin" password = System.getenv("MAVEN_PASSWORD") diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index 6c9a224..2e6e589 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,5 +1,5 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-6.6-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-bin.zip zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists