Updated javacord to woodpecker and jojodev

woodpecker-update
Joey Hines 2022-01-16 09:10:44 -07:00
parent 48a03adee5
commit e4e0c32c76
No known key found for this signature in database
GPG Key ID: 80F567B5C968F91B
5 changed files with 23 additions and 39 deletions

View File

@ -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:
- main
event:
- push
steps:
- name: publish
pull: always
image: gradle:6.6
environment:
MAVEN_PASSWORD:
from_secret: maven_password
commands:
- gradle publish

19
.woodpecker.yml 100644
View File

@ -0,0 +1,19 @@
clone:
git:
image: "woodpeckerci/plugin-git:next"
pipeline:
compliance:
commands:
- "gradle build"
- "gradle test"
image: "gradle:7.3-jdk17"
when:
event: pull_request
release:
commands:
- "gradle publish"
secrets:
- maven_password
image: "gradle:7.3-jdk17"
when:
branch: main

View File

@ -4,7 +4,7 @@ A small, no-dependency Discord utility library. Currently used for webhooks/embe
## Releases ## Releases
[Reposilite](https://mvn.birbmc.com/releases/xyz/etztech/javacord) [Reposilite](https://mvn.jojodev.com/releases/xyz/etztech/javacord)
## License ## License

View File

@ -28,8 +28,8 @@ publishing {
} }
repositories { repositories {
maven { maven {
name = "birbmc" name = "jojodev"
url = "https://mvn.birbmc.com/releases" url = "https://mvn.jojodev.com/releases"
credentials { credentials {
username = "admin" username = "admin"
password = System.getenv("MAVEN_PASSWORD") password = System.getenv("MAVEN_PASSWORD")

View File

@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.6-bin.zip distributionUrl=https\://services.gradle.org/distributions/gradle-7.3-bin.zip
zipStoreBase=GRADLE_USER_HOME zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists zipStorePath=wrapper/dists