Attempt to implement Nexus Maven repo deployment
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
32a5a46565
commit
21a5e07b3e
55
.drone.yml
55
.drone.yml
@ -5,18 +5,24 @@ trigger:
|
|||||||
branch:
|
branch:
|
||||||
- main
|
- main
|
||||||
|
|
||||||
|
load: yes
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: build
|
- name: build
|
||||||
image: maven:3-eclipse-temurin-16
|
image: maven:3-eclipse-temurin-16
|
||||||
commands:
|
commands:
|
||||||
- mvn install --no-transfer-progress -DskipTests=true -Dmaven.javadoc.skip=true -B -V
|
- mvn package --no-transfer-progress -DskipTests=true -Dmaven.javadoc.skip=true -B -V
|
||||||
# - mvn javadoc:javadoc
|
|
||||||
|
|
||||||
|
- name: test
|
||||||
|
image: maven:3-eclipse-temurin-16
|
||||||
|
commands:
|
||||||
- mvn test -B
|
- mvn test -B
|
||||||
|
|
||||||
- name: code-analysis
|
- name: code-analysis
|
||||||
image: maven:3-eclipse-temurin-16
|
image: maven:3-eclipse-temurin-16
|
||||||
commands:
|
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:
|
environment:
|
||||||
SONAR_PROJECT_KEY:
|
SONAR_PROJECT_KEY:
|
||||||
from_secret: sonar_project_key
|
from_secret: sonar_project_key
|
||||||
@ -25,15 +31,34 @@ steps:
|
|||||||
SONAR_LOGIN_KEY:
|
SONAR_LOGIN_KEY:
|
||||||
from_secret: sonar_login_key
|
from_secret: sonar_login_key
|
||||||
|
|
||||||
# - name: upload-artifact
|
- name: maven-auth
|
||||||
# image: appleboy/drone-scp
|
image: robertstettner/drone-mvn-auth
|
||||||
# settings:
|
pull: true
|
||||||
# host:
|
servers:
|
||||||
# from_secret: ssh_host
|
- id: nexus
|
||||||
# port: 2222
|
username: ${NEXUS_USERNAME}
|
||||||
# username: upload
|
password: ${NEXUS_PASSWORD}
|
||||||
# password:
|
profiles:
|
||||||
# from_secret: ssh_password
|
- id: default
|
||||||
# source:
|
repositories:
|
||||||
# - target/*depend*jar
|
- id: nexus-releases
|
||||||
# target: /home/upload/sftp
|
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
|
39
pom.xml
39
pom.xml
@ -15,46 +15,58 @@
|
|||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
|
<!-- Basic JDA dependency for Discord API -->
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>net.dv8tion</groupId>
|
<groupId>net.dv8tion</groupId>
|
||||||
<artifactId>JDA</artifactId>
|
<artifactId>JDA</artifactId>
|
||||||
<version>5.0.0-beta.2</version>
|
<version>5.0.0-beta.2</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
<!-- JDA depends on SLF4J for logging -->
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.slf4j</groupId>
|
<groupId>org.slf4j</groupId>
|
||||||
<artifactId>slf4j-api</artifactId>
|
<artifactId>slf4j-api</artifactId>
|
||||||
<version>2.0.4</version>
|
<version>2.0.6</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.slf4j</groupId>
|
<groupId>org.slf4j</groupId>
|
||||||
<artifactId>slf4j-simple</artifactId>
|
<artifactId>slf4j-simple</artifactId>
|
||||||
<version>2.0.4</version>
|
<version>2.0.6</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
|
<!-- Dependency used for SQLite database connections-->
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.xerial</groupId>
|
<groupId>org.xerial</groupId>
|
||||||
<artifactId>sqlite-jdbc</artifactId>
|
<artifactId>sqlite-jdbc</artifactId>
|
||||||
<version>3.39.4.1</version>
|
<version>3.40.0.0</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
|
<!-- Dependency used for YAML configuration files -->
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.yaml</groupId>
|
<groupId>org.yaml</groupId>
|
||||||
<artifactId>snakeyaml</artifactId>
|
<artifactId>snakeyaml</artifactId>
|
||||||
<version>1.33</version>
|
<version>1.33</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
|
<!-- JSoup is used to parse HTML into JSON objects for better handling in Java -->
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.jsoup</groupId>
|
<groupId>org.jsoup</groupId>
|
||||||
<artifactId>jsoup</artifactId>
|
<artifactId>jsoup</artifactId>
|
||||||
<version>1.15.3</version>
|
<version>1.15.3</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
<!-- Various String manipulation utils -->
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.apache.commons</groupId>
|
<groupId>org.apache.commons</groupId>
|
||||||
<artifactId>commons-text</artifactId>
|
<artifactId>commons-text</artifactId>
|
||||||
<version>1.10.0</version>
|
<version>1.10.0</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
<!-- JSON dependency used for better parsing of JSON files -->
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.json</groupId>
|
<groupId>org.json</groupId>
|
||||||
<artifactId>json</artifactId>
|
<artifactId>json</artifactId>
|
||||||
<version>20220924</version>
|
<version>20220924</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
|
<!-- Start Random.org dependencies -->
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.github.jinahya</groupId>
|
<groupId>com.github.jinahya</groupId>
|
||||||
<artifactId>random-org-json-rpc</artifactId>
|
<artifactId>random-org-json-rpc</artifactId>
|
||||||
@ -70,6 +82,15 @@
|
|||||||
<artifactId>commons-codec</artifactId>
|
<artifactId>commons-codec</artifactId>
|
||||||
<version>1.15</version>
|
<version>1.15</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
<!-- End Random.org dependencies -->
|
||||||
|
|
||||||
|
<!-- Unit Tests Dependencies -->
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.junit.jupiter</groupId>
|
||||||
|
<artifactId>junit-jupiter-api</artifactId>
|
||||||
|
<version>5.9.2</version>
|
||||||
|
<scope>test</scope>
|
||||||
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
|
|
||||||
@ -111,7 +132,6 @@
|
|||||||
<version>3.4.1</version>
|
<version>3.4.1</version>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
|
||||||
|
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.sonarsource.scanner.maven</groupId>
|
<groupId>org.sonarsource.scanner.maven</groupId>
|
||||||
<artifactId>sonar-maven-plugin</artifactId>
|
<artifactId>sonar-maven-plugin</artifactId>
|
||||||
@ -121,4 +141,15 @@
|
|||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
|
|
||||||
|
<distributionManagement>
|
||||||
|
<repository>
|
||||||
|
<id>nexus-releases</id>
|
||||||
|
<url>https://nexus.beatrice.wtf/repository/maven-releases/</url>
|
||||||
|
</repository>
|
||||||
|
<snapshotRepository>
|
||||||
|
<id>nexus-snapshots</id>
|
||||||
|
<url>https://nexus.beatrice.wtf/repository/maven-snapshots/</url>
|
||||||
|
</snapshotRepository>
|
||||||
|
</distributionManagement>
|
||||||
|
|
||||||
</project>
|
</project>
|
Loading…
Reference in New Issue
Block a user