File tree Expand file tree Collapse file tree 2 files changed +8
-10
lines changed
Expand file tree Collapse file tree 2 files changed +8
-10
lines changed Original file line number Diff line number Diff line change 1- @Suppress(" DSL_SCOPE_VIOLATION" )
21plugins {
32 id(" java-library" )
4- alias(libs.plugins.spring.boot)
53 id(" maven-publish" )
64 id(" signing" )
75}
8- apply (plugin = " io.spring.dependency-management" )
96
107group = " org.flmelody"
11- version = " 1.0.0 -spring5"
8+ version = " 1.0.1 -spring5"
129
1310repositories {
1411 mavenCentral()
1512}
1613
1714dependencies {
1815 implementation(libs.guava)
19- compileOnly(" org.springframework .boot:spring-boot-starter- web" )
16+ compileOnly(libs.spring .boot. web)
2017 testImplementation(platform(" org.junit:junit-bom:5.9.1" ))
2118 testImplementation(" org.junit.jupiter:junit-jupiter" )
2219}
@@ -29,12 +26,13 @@ java {
2926}
3027
3128tasks.jar {
29+ enabled = true
3230 manifest {
3331 attributes(
3432 mapOf (
3533 " Implementation-Title" to project.name,
3634 " Implementation-Version" to project.version,
37- " Compiled-Spring-Version" to libs.plugins. spring.boot.get().version
35+ " Compiled-Spring-Version" to libs.spring.boot.web. get().versionConstraint.preferredVersion
3836 )
3937 )
4038 }
Original file line number Diff line number Diff line change 11[versions ]
2- boot-plugin = " 2.7.18"
3- google-guava = " 33.2.0-jre"
2+ spring- boot-version = " 2.7.18"
3+ google-guava-version = " 33.2.0-jre"
44
55[plugins ]
6- spring-boot = { id = " org.springframework.boot" , version.ref = " boot-plugin" }
76
87[libraries ]
9- guava = { module = " com.google.guava:guava" , version.ref = " google-guava" }
8+ spring-boot-web = { module = " org.springframework.boot:spring-boot-starter-web" , version.ref = " spring-boot-version" }
9+ guava = { module = " com.google.guava:guava" , version.ref = " google-guava-version" }
You can’t perform that action at this time.
0 commit comments