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:
|
||||
- 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
|
||||
- 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
|
39
pom.xml
39
pom.xml
@ -15,46 +15,58 @@
|
||||
</properties>
|
||||
|
||||
<dependencies>
|
||||
<!-- Basic JDA dependency for Discord API -->
|
||||
<dependency>
|
||||
<groupId>net.dv8tion</groupId>
|
||||
<artifactId>JDA</artifactId>
|
||||
<version>5.0.0-beta.2</version>
|
||||
</dependency>
|
||||
<!-- JDA depends on SLF4J for logging -->
|
||||
<dependency>
|
||||
<groupId>org.slf4j</groupId>
|
||||
<artifactId>slf4j-api</artifactId>
|
||||
<version>2.0.4</version>
|
||||
<version>2.0.6</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.slf4j</groupId>
|
||||
<artifactId>slf4j-simple</artifactId>
|
||||
<version>2.0.4</version>
|
||||
<version>2.0.6</version>
|
||||
</dependency>
|
||||
|
||||
<!-- Dependency used for SQLite database connections-->
|
||||
<dependency>
|
||||
<groupId>org.xerial</groupId>
|
||||
<artifactId>sqlite-jdbc</artifactId>
|
||||
<version>3.39.4.1</version>
|
||||
<version>3.40.0.0</version>
|
||||
</dependency>
|
||||
|
||||
<!-- Dependency used for YAML configuration files -->
|
||||
<dependency>
|
||||
<groupId>org.yaml</groupId>
|
||||
<artifactId>snakeyaml</artifactId>
|
||||
<version>1.33</version>
|
||||
</dependency>
|
||||
|
||||
<!-- JSoup is used to parse HTML into JSON objects for better handling in Java -->
|
||||
<dependency>
|
||||
<groupId>org.jsoup</groupId>
|
||||
<artifactId>jsoup</artifactId>
|
||||
<version>1.15.3</version>
|
||||
</dependency>
|
||||
<!-- Various String manipulation utils -->
|
||||
<dependency>
|
||||
<groupId>org.apache.commons</groupId>
|
||||
<artifactId>commons-text</artifactId>
|
||||
<version>1.10.0</version>
|
||||
</dependency>
|
||||
<!-- JSON dependency used for better parsing of JSON files -->
|
||||
<dependency>
|
||||
<groupId>org.json</groupId>
|
||||
<artifactId>json</artifactId>
|
||||
<version>20220924</version>
|
||||
</dependency>
|
||||
|
||||
<!-- Start Random.org dependencies -->
|
||||
<dependency>
|
||||
<groupId>com.github.jinahya</groupId>
|
||||
<artifactId>random-org-json-rpc</artifactId>
|
||||
@ -70,6 +82,15 @@
|
||||
<artifactId>commons-codec</artifactId>
|
||||
<version>1.15</version>
|
||||
</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>
|
||||
|
||||
|
||||
@ -111,7 +132,6 @@
|
||||
<version>3.4.1</version>
|
||||
</plugin>
|
||||
|
||||
|
||||
<plugin>
|
||||
<groupId>org.sonarsource.scanner.maven</groupId>
|
||||
<artifactId>sonar-maven-plugin</artifactId>
|
||||
@ -121,4 +141,15 @@
|
||||
</plugins>
|
||||
</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>
|
Loading…
Reference in New Issue
Block a user