68 lines
1.6 KiB
Groovy
68 lines
1.6 KiB
Groovy
plugins {
|
|
id 'org.springframework.boot' version '2.2.5.RELEASE'
|
|
id 'io.spring.dependency-management' version '1.0.9.RELEASE'
|
|
id 'java'
|
|
id 'com.github.spotbugs' version "3.0.0"
|
|
id 'checkstyle'
|
|
}
|
|
spotbugs{
|
|
ignoreFailures = true
|
|
effort = "max"
|
|
reportLevel = "high"
|
|
toolVersion = '4.0.0-RC1'
|
|
}
|
|
tasks.withType(com.github.spotbugs.SpotBugsTask) {
|
|
reports {
|
|
html {
|
|
enabled = true
|
|
}
|
|
xml {
|
|
enabled = false
|
|
}
|
|
}
|
|
}
|
|
|
|
checkstyle {
|
|
toolVersion = "8.28"
|
|
configFile = file("${rootDir}/config/checkstyle/checkstyle.xml")
|
|
ignoreFailures = true
|
|
}
|
|
|
|
group = 'mops'
|
|
version = '0.0.1-SNAPSHOT'
|
|
sourceCompatibility = '11'
|
|
|
|
configurations {
|
|
developmentOnly
|
|
runtimeClasspath {
|
|
extendsFrom developmentOnly
|
|
}
|
|
compileOnly {
|
|
extendsFrom annotationProcessor
|
|
}
|
|
}
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
dependencies {
|
|
implementation 'org.springframework.boot:spring-boot-starter-actuator'
|
|
implementation 'org.springframework.boot:spring-boot-starter-data-jdbc'
|
|
implementation 'org.springframework.boot:spring-boot-starter-security'
|
|
implementation 'org.springframework.boot:spring-boot-starter-thymeleaf'
|
|
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') {
|
|
exclude group: 'org.junit.vintage', module: 'junit-vintage-engine'
|
|
}
|
|
testImplementation 'org.springframework.security:spring-security-test'
|
|
}
|
|
|
|
test {
|
|
useJUnitPlatform()
|
|
}
|