cicd-java-spring-boot/build.gradle

34 lines
610 B
Groovy
Raw Normal View History

2023-01-31 13:42:28 +00:00
plugins {
id 'java'
id 'org.springframework.boot' version '2.7.8'
id 'io.spring.dependency-management' version '1.0.15.RELEASE'
}
group = 'com.loafle.prototype'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '11'
repositories {
mavenCentral()
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-web'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
}
tasks.named('test') {
useJUnitPlatform()
}
2023-02-01 22:58:15 +00:00
2023-02-01 23:47:29 +00:00
task projectName {
2023-02-01 22:58:15 +00:00
doLast {
2023-02-01 23:47:29 +00:00
println "${project.name}"
}
}
task projectVersion {
doLast {
println "${project.version}"
2023-02-01 23:10:13 +00:00
}
}