2025-04-08 20:24:24 +00:00
|
|
|
plugins {
|
|
|
|
|
java
|
|
|
|
|
id("org.springframework.boot") version "3.4.4"
|
|
|
|
|
id("io.spring.dependency-management") version "1.1.7"
|
2025-04-09 23:22:19 +00:00
|
|
|
// id("com.github.johnrengelman.shadow") version "8.1.1"
|
2025-04-08 20:24:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
group = "com.alttd.altitudeweb"
|
|
|
|
|
version = "0.0.1-SNAPSHOT"
|
|
|
|
|
|
|
|
|
|
java {
|
|
|
|
|
toolchain {
|
|
|
|
|
languageVersion = JavaLanguageVersion.of(21)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
configurations {
|
|
|
|
|
compileOnly {
|
|
|
|
|
extendsFrom(configurations.annotationProcessor.get())
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
|
mavenCentral()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
|
implementation(project(":open_api"))
|
2025-04-09 23:22:19 +00:00
|
|
|
implementation(project(":database"))
|
2025-04-08 20:24:24 +00:00
|
|
|
implementation("org.springframework.boot:spring-boot-starter-web")
|
|
|
|
|
annotationProcessor("org.projectlombok:lombok")
|
|
|
|
|
testImplementation("org.springframework.boot:spring-boot-starter-test")
|
2025-04-09 23:22:19 +00:00
|
|
|
implementation("com.mysql:mysql-connector-j:8.0.32")
|
2025-04-08 20:24:24 +00:00
|
|
|
implementation("org.mybatis:mybatis:3.5.13")
|
2025-04-09 23:22:19 +00:00
|
|
|
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
|
2025-04-08 20:24:24 +00:00
|
|
|
implementation("org.springframework.boot:spring-boot-configuration-processor")
|
2025-04-10 23:12:46 +00:00
|
|
|
implementation("org.springframework.boot:spring-boot-starter-hateoas")
|
2025-04-17 18:31:14 +00:00
|
|
|
|
|
|
|
|
//AOP
|
|
|
|
|
implementation("org.aspectj:aspectjrt:1.9.19")
|
|
|
|
|
implementation("org.aspectj:aspectjweaver:1.9.19")
|
|
|
|
|
implementation("org.springframework:spring-aop")
|
|
|
|
|
implementation("org.springframework:spring-aspects")
|
|
|
|
|
|
2025-04-08 20:24:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
tasks.withType<Test> {
|
|
|
|
|
useJUnitPlatform()
|
|
|
|
|
}
|
2025-04-09 23:22:19 +00:00
|
|
|
|
|
|
|
|
tasks.bootJar {
|
|
|
|
|
mainClass.set("com.alttd.altitudeweb.AltitudeWebApplication")
|
|
|
|
|
archiveBaseName.set("altitudeweb")
|
|
|
|
|
archiveClassifier.set("")
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//tasks.withType<com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar> {
|
|
|
|
|
// mergeServiceFiles()
|
|
|
|
|
// dependencies {
|
|
|
|
|
// include(dependency("com.mysql:mysql-connector-j"))
|
|
|
|
|
// }
|
|
|
|
|
//}
|
|
|
|
|
|
|
|
|
|
//tasks.withType<com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar> {
|
|
|
|
|
// manifest {
|
|
|
|
|
// attributes["Main-Class"] = "com.alttd.altitudeweb.AltitudeWebApplication"
|
|
|
|
|
// }
|
|
|
|
|
// archiveBaseName.set("altitudeweb")
|
|
|
|
|
// archiveClassifier.set("")
|
|
|
|
|
// mergeServiceFiles()
|
|
|
|
|
//
|
|
|
|
|
// // Include everything
|
|
|
|
|
// from(sourceSets.main.get().output)
|
|
|
|
|
//
|
|
|
|
|
// // Include all project dependencies
|
|
|
|
|
// configurations = listOf(project.configurations.runtimeClasspath.get())
|
|
|
|
|
//
|
|
|
|
|
// // Ensure MySQL is included (even though it should be part of runtimeClasspath already)
|
|
|
|
|
// dependencies {
|
|
|
|
|
// include(dependency("com.mysql:mysql-connector-j"))
|
|
|
|
|
// }
|
|
|
|
|
//
|
|
|
|
|
// // Enable zip64 mode for large JARs
|
|
|
|
|
// isZip64 = true
|
|
|
|
|
//}
|
|
|
|
|
//
|
|
|
|
|
//// Make the shadowJar task the default jar task
|
|
|
|
|
//tasks.named("jar") {
|
|
|
|
|
// enabled = false
|
|
|
|
|
//}
|
|
|
|
|
//
|
|
|
|
|
//tasks.named("assemble") {
|
|
|
|
|
// dependsOn("shadowJar")
|
|
|
|
|
//}
|