34 lines
1012 B
Groovy
34 lines
1012 B
Groovy
plugins {
|
|
id 'com.palantir.docker' version '0.25.0'
|
|
}
|
|
|
|
group 'org.example.membership'
|
|
version '1.0.1'
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
dependencies {
|
|
implementation 'org.springframework.boot:spring-boot-starter-validation'
|
|
implementation 'org.springframework.boot:spring-boot-starter-actuator'
|
|
implementation 'org.springframework.boot:spring-boot-starter-web'
|
|
implementation 'javax.persistence:javax.persistence-api:2.2'
|
|
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
|
|
implementation 'org.jetbrains:annotations:23.0.0'
|
|
|
|
implementation project(path: ':common')
|
|
|
|
testImplementation 'junit:junit:4.13.1'
|
|
|
|
runtimeOnly 'com.h2database:h2'
|
|
runtimeOnly 'mysql:mysql-connector-java'
|
|
}
|
|
|
|
docker {
|
|
println(tasks.bootJar.outputs.files)
|
|
name rootProject.name + '-' + project.name + ":" + version
|
|
dockerfile file('../Dockerfile')
|
|
files tasks.bootJar.outputs.files
|
|
buildArgs(['JAR_FILE': tasks.bootJar.outputs.files.singleFile.name])
|
|
} |