Update dependencies and build process
Upgraded multiple dependencies including Spring Boot, JDA, and Configurate to their latest versions. Updated Java toolchain to version 21. Added the Versions plugin for dependency version management. Modified Jenkins build process to use `shadowJar`.
This commit is contained in:
parent
34f9559d10
commit
81b53cd1f8
4
Jenkinsfile
vendored
4
Jenkinsfile
vendored
|
|
@ -3,7 +3,7 @@ pipeline {
|
||||||
stages {
|
stages {
|
||||||
stage('Gradle') {
|
stage('Gradle') {
|
||||||
steps {
|
steps {
|
||||||
sh 'bash ./gradlew build'
|
sh 'bash ./gradlew shadowJar'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage('Archive') {
|
stage('Archive') {
|
||||||
|
|
@ -17,4 +17,4 @@ pipeline {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,10 @@
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
id("java")
|
id("java")
|
||||||
id("com.github.johnrengelman.shadow") version "7.1.0"
|
id("com.github.johnrengelman.shadow") version "8.1.1"
|
||||||
id("maven-publish")
|
id("maven-publish")
|
||||||
id("org.springframework.boot") version("2.7.8")
|
id("org.springframework.boot") version("3.5.3")
|
||||||
|
id("com.github.ben-manes.versions") version "0.52.0"
|
||||||
}
|
}
|
||||||
|
|
||||||
group = "com.alttd"
|
group = "com.alttd"
|
||||||
|
|
@ -12,7 +13,7 @@ description = "Altitude Discord Bot."
|
||||||
|
|
||||||
java {
|
java {
|
||||||
toolchain {
|
toolchain {
|
||||||
languageVersion.set(JavaLanguageVersion.of(17))
|
languageVersion.set(JavaLanguageVersion.of(21))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -59,23 +60,26 @@ tasks {
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
// JDA
|
// JDA
|
||||||
implementation("net.dv8tion:JDA:5.0.2") {
|
implementation("net.dv8tion:JDA:5.6.1") {
|
||||||
exclude("opus-java") // exclude audio
|
exclude("opus-java") // exclude audio
|
||||||
}
|
}
|
||||||
// MySQL
|
// MySQL
|
||||||
implementation("mysql:mysql-connector-java:8.0.33")
|
implementation("mysql:mysql-connector-java:8.0.33")
|
||||||
|
|
||||||
// Configurate
|
// Configurate
|
||||||
implementation("org.spongepowered:configurate-yaml:4.1.2")
|
implementation("org.spongepowered:configurate-yaml:4.2.0")
|
||||||
|
|
||||||
// Excel
|
// Excel
|
||||||
implementation("org.apache.poi:poi:5.2.0")
|
implementation("org.apache.poi:poi:5.4.1")
|
||||||
implementation("org.apache.poi:poi-ooxml:5.2.0")
|
implementation("org.apache.poi:poi-ooxml:5.4.1")
|
||||||
// Other stuff?
|
// Other stuff?
|
||||||
compileOnly("org.projectlombok:lombok:1.18.30")
|
compileOnly("org.projectlombok:lombok:1.18.38")
|
||||||
annotationProcessor("org.projectlombok:lombok:1.18.24")
|
annotationProcessor("org.projectlombok:lombok:1.18.38")
|
||||||
implementation("com.alttd:AltitudeLogs:1.0")
|
implementation("com.alttd:AltitudeLogs:1.0")
|
||||||
implementation("org.springframework.boot:spring-boot-starter-web:3.2.1")
|
implementation("org.springframework.boot:spring-boot-starter-web:3.5.3")
|
||||||
implementation("org.springframework.boot:spring-boot-starter-validation:3.2.1")
|
implementation("org.springframework.boot:spring-boot-starter-validation:3.5.3")
|
||||||
implementation("com.google.code.gson:gson:2.8.9")
|
implementation("com.google.code.gson:gson:2.13.1")
|
||||||
}
|
|
||||||
|
testImplementation(platform("org.junit:junit-bom:5.13.1"))
|
||||||
|
testImplementation("org.junit.jupiter:junit-jupiter")
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user