Added gradle project

This commit is contained in:
2020-07-07 21:04:44 +02:00
parent b603ede27c
commit eaa8b1cd6b
13 changed files with 542 additions and 2 deletions

70
build.gradle Normal file
View File

@ -0,0 +1,70 @@
plugins {
id 'java'
id 'idea'
id 'eclipse'
id 'jacoco' // for linecoverage
id 'nebula.release' version '14.0.3'
id 'nebula.maven-publish' version '15.0.3'
id 'org.owasp.dependencycheck' version '5.3.0' // checking dependencies for known vulnerabilities
id 'io.freefair.lombok' version '4.1.6'
}
subprojects {
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'eclipse'
apply plugin: 'jacoco'
apply plugin: 'nebula.release'
apply plugin: 'nebula.maven-publish'
apply plugin: 'io.freefair.lombok'
sourceCompatibility = projectSourceCompatibility
targetCompatibility = projectSourceCompatibility
dependencies {
implementation 'org.slf4j:slf4j-api:1.7.30'
testImplementation "org.junit.jupiter:junit-jupiter:5.5.2"
testImplementation 'org.assertj:assertj-core:3.11.1'
}
test {
useJUnitPlatform()
}
configurations {
developmentOnly
runtimeClasspath {
extendsFrom developmentOnly
}
compileOnly {
extendsFrom annotationProcessor
}
}
}
allprojects {
group = projectgroup
nebulaRelease {
addReleaseBranchPattern(/master/)
}
repositories {
mavenCentral()
}
dependencyCheck {
formats = ['XML', 'HTML']
suppressionFile = "$rootProject.projectDir/gradle/config/suppression.xml"
analyzers {
assemblyEnabled = false // no warning for .NET in gradle output - we don't use .NET
}
}
clean {
delete 'out'
}
}