Co-Authored-By: Claude Sonnet 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Gth99spB1CzQmBFofXmU4Z
32 lines
784 B
Groovy
32 lines
784 B
Groovy
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()
|
|
}
|