You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
50 lines
1.2 KiB
50 lines
1.2 KiB
plugins {
|
|
id 'org.springframework.boot' version '2.6.0'
|
|
id 'io.spring.dependency-management' version '1.0.11.RELEASE'
|
|
id 'org.asciidoctor.convert' version '1.5.8'
|
|
id 'java'
|
|
}
|
|
|
|
group = 'com.example'
|
|
version = '0.0.1-SNAPSHOT'
|
|
sourceCompatibility = '11'
|
|
|
|
configurations {
|
|
compileOnly {
|
|
extendsFrom annotationProcessor
|
|
}
|
|
}
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
ext {
|
|
set('snippetsDir', file("build/generated-snippets"))
|
|
}
|
|
|
|
dependencies {
|
|
implementation 'org.springframework.boot:spring-boot-starter-actuator'
|
|
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
|
|
implementation 'org.springframework.boot:spring-boot-starter-web'
|
|
compileOnly 'org.projectlombok:lombok'
|
|
developmentOnly 'org.springframework.boot:spring-boot-devtools'
|
|
runtimeOnly 'com.h2database:h2'
|
|
annotationProcessor 'org.projectlombok:lombok'
|
|
testImplementation 'org.springframework.boot:spring-boot-starter-test'
|
|
testImplementation 'org.springframework.restdocs:spring-restdocs-mockmvc'
|
|
|
|
// Added after spring init
|
|
implementation 'com.google.code.gson:gson:2.8.9'
|
|
|
|
}
|
|
|
|
test {
|
|
outputs.dir snippetsDir
|
|
useJUnitPlatform()
|
|
}
|
|
|
|
asciidoctor {
|
|
inputs.dir snippetsDir
|
|
dependsOn test
|
|
}
|
|
|