Files
2024-05-31 14:01:21 +01:00

53 lines
1003 B
Groovy

plugins {
id "java"
id "org.springframework.boot" version "3.3.0"
}
apply plugin: 'io.spring.dependency-management'
repositories {
mavenCentral()
}
group = 'com.example'
sourceCompatibility = 17
targetCompatibility = 17
ext {
snippetsDir = file('build/generated-snippets')
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.springframework.boot:spring-boot-starter-data-rest'
runtimeOnly 'com.h2database:h2'
runtimeOnly 'org.atteo:evo-inflector:1.3'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation 'org.springframework.restdocs:spring-restdocs-mockmvc'
}
test {
useJUnitPlatform()
outputs.dir snippetsDir
}
task(bundleInstall, type: Exec) {
workingDir file('slate')
executable 'bundle'
args 'install'
}
task(slate, type: Exec) {
dependsOn 'bundleInstall', 'test'
workingDir file('slate')
executable 'bundle'
args 'exec', 'middleman', 'build'
}
build {
dependsOn 'slate'
}