java-tutorials/spring-boot-modules/spring-boot-gradle-2/build.gradle

35 lines
649 B
Groovy
Raw Normal View History

plugins {
id 'java'
id 'org.springframework.boot' version '3.0.6'
id 'io.spring.dependency-management' version '1.1.0'
}
group = 'com.baeldung'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '17'
repositories {
mavenCentral()
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-web'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
}
tasks.named('test') {
useJUnitPlatform()
}
tasks.named("bootJar"){
launchScript{
enabled = true
}
archiveFileName = "bael-6094.${archiveExtension.get()}"
}
tasks.named("bootBuildImage") {
imageName = 'bael-6094:latest'
}