diff --git a/.drone.yml b/.drone.yml index 28703e8..bf673a8 100644 --- a/.drone.yml +++ b/.drone.yml @@ -5,18 +5,24 @@ trigger: branch: - main +load: yes + steps: - name: build image: maven:3-eclipse-temurin-16 commands: - - mvn install --no-transfer-progress -DskipTests=true -Dmaven.javadoc.skip=true -B -V -# - mvn javadoc:javadoc + - mvn package --no-transfer-progress -DskipTests=true -Dmaven.javadoc.skip=true -B -V + + + - name: test + image: maven:3-eclipse-temurin-16 + commands: - mvn test -B - name: code-analysis image: maven:3-eclipse-temurin-16 commands: - - mvn sonar:sonar --no-transfer-progress -Dsonar.projectKey=$SONAR_PROJECT_KEY -Dsonar.host.url=$SONAR_INSTANCE_URL -Dsonar.login=$SONAR_LOGIN_KEY + - mvn sonar:sonar --no-transfer-progress -Dsonar.projectKey=${SONAR_PROJECT_KEY} -Dsonar.host.url=${SONAR_INSTANCE_URL} -Dsonar.login=${SONAR_LOGIN_KEY} environment: SONAR_PROJECT_KEY: from_secret: sonar_project_key @@ -25,15 +31,34 @@ steps: SONAR_LOGIN_KEY: from_secret: sonar_login_key -# - name: upload-artifact -# image: appleboy/drone-scp -# settings: -# host: -# from_secret: ssh_host -# port: 2222 -# username: upload -# password: -# from_secret: ssh_password -# source: -# - target/*depend*jar -# target: /home/upload/sftp \ No newline at end of file + - name: maven-auth + image: robertstettner/drone-mvn-auth + pull: true + servers: + - id: nexus + username: ${NEXUS_USERNAME} + password: ${NEXUS_PASSWORD} + profiles: + - id: default + repositories: + - id: nexus-releases + name: Nexus Releases + url: https://nexus.beatrice.wtf/repository/maven-releases/ + layout: default + active_profiles: + - default + when: + event: + - promote + target: + - production + + - name: maven-deploy + image: maven:3-eclipse-temurin-16 + commands: + - mvn deploy --no-transfer-progress -DskipTests=true -Dmaven.javadoc.skip=true -B -V + when: + event: + - promote + target: + - production \ No newline at end of file diff --git a/pom.xml b/pom.xml index a3740b6..c7697b2 100644 --- a/pom.xml +++ b/pom.xml @@ -15,46 +15,58 @@ + net.dv8tion JDA 5.0.0-beta.2 + org.slf4j slf4j-api - 2.0.4 + 2.0.6 org.slf4j slf4j-simple - 2.0.4 + 2.0.6 + + org.xerial sqlite-jdbc - 3.39.4.1 + 3.40.0.0 + + org.yaml snakeyaml 1.33 + + org.jsoup jsoup 1.15.3 + org.apache.commons commons-text 1.10.0 + org.json json 20220924 + + com.github.jinahya random-org-json-rpc @@ -70,6 +82,15 @@ commons-codec 1.15 + + + + + org.junit.jupiter + junit-jupiter-api + 5.9.2 + test + @@ -111,7 +132,6 @@ 3.4.1 - org.sonarsource.scanner.maven sonar-maven-plugin @@ -121,4 +141,15 @@ + + + nexus-releases + https://nexus.beatrice.wtf/repository/maven-releases/ + + + nexus-snapshots + https://nexus.beatrice.wtf/repository/maven-snapshots/ + + + \ No newline at end of file