gradle to 5.1.1 spring-boot to 2.1.2.RELEASE antlr to 4.7.2 jackson to 2.9.8
89 lines
2.5 KiB
Groovy
89 lines
2.5 KiB
Groovy
apply plugin: 'java'
|
|
apply plugin: 'eclipse'
|
|
|
|
|
|
apply plugin: 'com.github.ben-manes.versions'
|
|
|
|
buildscript {
|
|
repositories {
|
|
jcenter()
|
|
}
|
|
|
|
dependencies {
|
|
// usage: gradle dependencyUpdates -Drevision=release
|
|
classpath 'com.github.ben-manes:gradle-versions-plugin:0.20.0'
|
|
}
|
|
}
|
|
|
|
ext {
|
|
|
|
lib_antlr = "org.antlr:antlr4:4.7.2"
|
|
|
|
lib_commons_collections4 = 'org.apache.commons:commons-collections4:4.2'
|
|
lib_commons_lang3 = 'org.apache.commons:commons-lang3:3.8.1'
|
|
lib_guava = 'com.google.guava:guava:27.0.1-jre'
|
|
lib_jackson_databind = 'com.fasterxml.jackson.core:jackson-databind:2.9.8'
|
|
|
|
lib_log4j2_api = 'org.apache.logging.log4j:log4j-api:2.11.1'
|
|
lib_log4j2_core = 'org.apache.logging.log4j:log4j-core:2.11.1'
|
|
lib_log4j2_slf4j_impl = 'org.apache.logging.log4j:log4j-slf4j-impl:2.11.1'
|
|
|
|
lib_primitive_collections='org.lucares:primitiveCollections:0.1.20181120195412'
|
|
|
|
lib_spring_boot_log4j2='org.springframework.boot:spring-boot-starter-log4j2:2.1.2.RELEASE'
|
|
lib_spring_boot_mustache='org.springframework.boot:spring-boot-starter-mustache:2.1.2.RELEASE'
|
|
lib_spring_boot_test='org.springframework.boot:spring-boot-starter-test:2.1.2.RELEASE'
|
|
lib_spring_boot_web='org.springframework.boot:spring-boot-starter-web:2.1.2.RELEASE'
|
|
}
|
|
|
|
/*
|
|
* The shared configuration for all sub-projects:
|
|
*/
|
|
subprojects {
|
|
apply plugin: 'java'
|
|
apply plugin: 'eclipse'
|
|
|
|
// java compatibility version
|
|
sourceCompatibility = 11
|
|
|
|
configurations {
|
|
tests
|
|
}
|
|
|
|
// the repositories for external depenencies
|
|
repositories {
|
|
maven { url 'http://repo.lucares.de/' }
|
|
mavenCentral()
|
|
jcenter()
|
|
}
|
|
|
|
// In this example we use TestNG as our testing tool. JUnit is the default.
|
|
test{
|
|
useTestNG()
|
|
//testLogging.showStandardStreams = true
|
|
}
|
|
|
|
// dependencies that all sub-projects have
|
|
dependencies {
|
|
testCompile group: 'org.testng', name: 'testng', version: '6.14.3'
|
|
}
|
|
}
|
|
|
|
allprojects {
|
|
compileJava.options.encoding = 'UTF-8'
|
|
|
|
task eclipseSettings(type: Copy) {
|
|
from ("${rootProject.projectDir}/eclipse/") {
|
|
include '**/*.prefs'
|
|
//filter(ReplaceTokens, tokens: [rootProjectDir: "${rootProject.projectDir}".toString().replaceAll('\\\\', '/')])
|
|
}
|
|
into "${project.projectDir}/.settings/"
|
|
}
|
|
tasks.eclipseJdt.dependsOn eclipseSettings
|
|
tasks.cleanEclipseJdt.dependsOn cleanEclipseSettings
|
|
}
|
|
|
|
wrapper {
|
|
gradleVersion = '5.1.1'
|
|
}
|