Add gradle9 module: Spring Boot 4 build migrated from Gradle 8 to Gradle 9
Co-Authored-By: Claude Sonnet 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Gth99spB1CzQmBFofXmU4Z
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
plugins {
|
||||
id 'java'
|
||||
id 'org.springframework.boot' version '4.1.1'
|
||||
id 'io.spring.dependency-management' version '1.1.7'
|
||||
}
|
||||
|
||||
group = 'com.ankurm'
|
||||
version = '0.0.1'
|
||||
sourceCompatibility = '17'
|
||||
archivesBaseName = 'g9demo-legacy'
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation 'org.springframework.boot:spring-boot-starter-webmvc'
|
||||
testImplementation 'org.springframework.boot:spring-boot-starter-webmvc-test'
|
||||
}
|
||||
|
||||
// Task that reads the project model and an environment variable while it EXECUTES
|
||||
tasks.register('buildInfo') {
|
||||
doLast {
|
||||
def stamp = System.getenv('BUILD_STAMP') ?: 'local'
|
||||
file("$buildDir/build-info.txt").text = "${project.name} ${project.version} ${stamp}\n"
|
||||
}
|
||||
}
|
||||
|
||||
tasks.named('test') {
|
||||
useJUnitPlatform()
|
||||
}
|
||||
Reference in New Issue
Block a user