105 lines
2.9 KiB
Groovy
105 lines
2.9 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 '4.0.1'
|
|
id 'checkstyle'
|
|
id 'pmd'
|
|
}
|
|
|
|
group = 'mops'
|
|
version = '0.0.1-SNAPSHOT'
|
|
sourceCompatibility = '11'
|
|
|
|
repositories {
|
|
maven {
|
|
url = 'https://s3.cs.hhu.de/public/mops/'
|
|
metadataSources {
|
|
artifact()
|
|
}
|
|
}
|
|
mavenCentral()
|
|
}
|
|
|
|
spotbugs {
|
|
toolVersion = '4.0.1'
|
|
ignoreFailures = false
|
|
reportLevel = "high"
|
|
effort = "max"
|
|
showProgress = true
|
|
}
|
|
|
|
spotbugsMain {
|
|
reports {
|
|
html {
|
|
enabled = true
|
|
}
|
|
}
|
|
}
|
|
|
|
pmd {
|
|
consoleOutput = true
|
|
ignoreFailures = true
|
|
toolVersion = "6.22.0"
|
|
rulePriority = 5
|
|
ruleSetFiles = files("config/pmd/ruleset.xml")
|
|
ruleSets = []
|
|
}
|
|
|
|
checkstyle {
|
|
toolVersion = "8.30"
|
|
configFile = file("${rootDir}/config/checkstyle/checkstyle.xml")
|
|
ignoreFailures = true
|
|
}
|
|
|
|
configurations {
|
|
developmentOnly
|
|
runtimeClasspath {
|
|
extendsFrom developmentOnly
|
|
}
|
|
compileOnly {
|
|
extendsFrom annotationProcessor
|
|
}
|
|
}
|
|
|
|
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'
|
|
implementation 'org.springframework.boot:spring-boot-starter-aop'
|
|
implementation 'org.springframework.boot:spring-boot-starter-oauth2-client'
|
|
implementation 'org.springframework.security.oauth:spring-security-oauth2:2.4.0.RELEASE'
|
|
|
|
developmentOnly 'org.springframework.boot:spring-boot-devtools'
|
|
|
|
implementation 'org.keycloak:keycloak-spring-boot-starter:9.0.0'
|
|
implementation 'org.keycloak.bom:keycloak-adapter-bom:9.0.0'
|
|
implementation 'mops:styleguide:2.1.0'
|
|
implementation 'io.springfox:springfox-swagger2:2.9.2'
|
|
implementation 'io.springfox:springfox-swagger-ui:2.9.2'
|
|
implementation 'com.github.javafaker:javafaker:1.0.2'
|
|
implementation 'com.fasterxml.jackson.dataformat:jackson-dataformat-csv:2.10.3'
|
|
implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.10.3'
|
|
|
|
compileOnly 'org.projectlombok:lombok'
|
|
annotationProcessor 'org.projectlombok:lombok'
|
|
|
|
runtimeOnly 'com.h2database:h2'
|
|
runtimeOnly 'mysql:mysql-connector-java'
|
|
|
|
testImplementation 'org.assertj:assertj-core:3.15.0'
|
|
testImplementation('org.springframework.boot:spring-boot-starter-test') {
|
|
exclude group: 'org.junit.vintage', module: 'junit-vintage-engine'
|
|
}
|
|
testImplementation 'org.springframework.security:spring-security-test'
|
|
testImplementation 'com.tngtech.archunit:archunit-junit5:0.13.1'
|
|
}
|
|
|
|
test {
|
|
useJUnitPlatform()
|
|
}
|
|
|