reformat
This commit is contained in:
119
build.gradle
119
build.gradle
@@ -20,39 +20,36 @@ buildscript {
|
|||||||
|
|
||||||
ext {
|
ext {
|
||||||
|
|
||||||
javaVersion=14
|
javaVersion=14
|
||||||
|
|
||||||
version_log4j2= '2.13.3' // keep in sync with spring-boot-starter-log4j2
|
version_log4j2= '2.13.3' // keep in sync with spring-boot-starter-log4j2
|
||||||
version_spring = '2.4.3'
|
version_spring = '2.4.3'
|
||||||
version_junit = '5.7.1'
|
version_junit = '5.7.1'
|
||||||
version_junit_platform = '1.7.1'
|
version_junit_platform = '1.7.1'
|
||||||
|
|
||||||
lib_antlr = "org.antlr:antlr4:4.9.1"
|
lib_antlr = "org.antlr:antlr4:4.9.1"
|
||||||
|
|
||||||
lib_commons_collections4 = 'org.apache.commons:commons-collections4:4.4'
|
lib_commons_collections4 = 'org.apache.commons:commons-collections4:4.4'
|
||||||
lib_commons_lang3 = 'org.apache.commons:commons-lang3:3.12.0'
|
lib_commons_lang3 = 'org.apache.commons:commons-lang3:3.12.0'
|
||||||
lib_jackson_databind = 'com.fasterxml.jackson.core:jackson-databind:2.12.2'
|
lib_jackson_databind = 'com.fasterxml.jackson.core:jackson-databind:2.12.2'
|
||||||
|
|
||||||
lib_log4j2_core = "org.apache.logging.log4j:log4j-core:${version_log4j2}"
|
lib_log4j2_core = "org.apache.logging.log4j:log4j-core:${version_log4j2}"
|
||||||
lib_log4j2_slf4j_impl = "org.apache.logging.log4j:log4j-slf4j-impl:${version_log4j2}"
|
lib_log4j2_slf4j_impl = "org.apache.logging.log4j:log4j-slf4j-impl:${version_log4j2}"
|
||||||
|
|
||||||
lib_primitive_collections='org.lucares:primitiveCollections:0.1.20201115124106'
|
lib_primitive_collections='org.lucares:primitiveCollections:0.1.20201115124106'
|
||||||
|
|
||||||
lib_spring_boot_log4j2="org.springframework.boot:spring-boot-starter-log4j2:${version_spring}"
|
lib_spring_boot_log4j2="org.springframework.boot:spring-boot-starter-log4j2:${version_spring}"
|
||||||
lib_spring_boot_test="org.springframework.boot:spring-boot-starter-test:${version_spring}"
|
lib_spring_boot_test="org.springframework.boot:spring-boot-starter-test:${version_spring}"
|
||||||
lib_spring_boot_web="org.springframework.boot:spring-boot-starter-web:${version_spring}"
|
lib_spring_boot_web="org.springframework.boot:spring-boot-starter-web:${version_spring}"
|
||||||
|
|
||||||
eclipseAccessRestrictions = [
|
eclipseAccessRestrictions = [
|
||||||
'org.eclipse.jdt.launching.JRE_CONTAINER': [
|
'org.eclipse.jdt.launching.JRE_CONTAINER': [
|
||||||
new AccessRule('nonaccessible', 'com/sun/**'),
|
new AccessRule('nonaccessible', 'com/sun/**'),
|
||||||
new AccessRule('nonaccessible', 'java/awt/List'),
|
new AccessRule('nonaccessible', 'java/awt/List'),
|
||||||
new AccessRule('nonaccessible', 'sun/**'),
|
new AccessRule('nonaccessible', 'sun/**'),
|
||||||
],
|
],
|
||||||
'assertj-core': [
|
'assertj-core': [new AccessRule('nonaccessible', 'org/assertj/core/internal/**'), new AccessRule('nonaccessible', 'org/assertj/core/util/Arrays')
|
||||||
new AccessRule('nonaccessible', 'org/assertj/core/internal/**'),
|
]]
|
||||||
new AccessRule('nonaccessible', 'org/assertj/core/util/Arrays')
|
|
||||||
]
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -61,19 +58,19 @@ ext {
|
|||||||
subprojects {
|
subprojects {
|
||||||
apply plugin: 'java-library'
|
apply plugin: 'java-library'
|
||||||
apply plugin: 'eclipse'
|
apply plugin: 'eclipse'
|
||||||
|
|
||||||
compileJava.options.encoding = 'UTF-8'
|
compileJava.options.encoding = 'UTF-8'
|
||||||
|
|
||||||
// java compatibility version
|
// java compatibility version
|
||||||
sourceCompatibility = javaVersion
|
sourceCompatibility = javaVersion
|
||||||
|
|
||||||
configurations {
|
configurations {
|
||||||
tests
|
tests
|
||||||
}
|
}
|
||||||
|
|
||||||
// the repositories for external depenencies
|
// the repositories for external depenencies
|
||||||
repositories {
|
repositories {
|
||||||
maven {
|
maven {
|
||||||
url 'https://repo.lucares.de/'
|
url 'https://repo.lucares.de/'
|
||||||
content { includeGroup "org.lucares" }
|
content { includeGroup "org.lucares" }
|
||||||
}
|
}
|
||||||
@@ -82,47 +79,47 @@ subprojects {
|
|||||||
content { excludeGroup "org.lucares" }
|
content { excludeGroup "org.lucares" }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
test{
|
test{
|
||||||
useJUnitPlatform {
|
useJUnitPlatform {
|
||||||
includeEngines 'junit-jupiter'
|
includeEngines 'junit-jupiter'
|
||||||
excludeEngines 'junit-vintage'
|
excludeEngines 'junit-vintage'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// dependencies that all sub-projects have
|
// dependencies that all sub-projects have
|
||||||
dependencies {
|
dependencies {
|
||||||
testImplementation("org.junit.jupiter:junit-jupiter-engine:${version_junit}")
|
testImplementation("org.junit.jupiter:junit-jupiter-engine:${version_junit}")
|
||||||
testImplementation "org.junit.jupiter:junit-jupiter-params:${version_junit}" // for @ParameterizedTest
|
testImplementation "org.junit.jupiter:junit-jupiter-params:${version_junit}" // for @ParameterizedTest
|
||||||
testImplementation "org.junit.platform:junit-platform-launcher:${version_junit_platform}" // needed by eclipse
|
testImplementation "org.junit.platform:junit-platform-launcher:${version_junit_platform}" // needed by eclipse
|
||||||
}
|
}
|
||||||
|
|
||||||
task eclipseSettings(type: Copy) {
|
task eclipseSettings(type: Copy) {
|
||||||
from ("${rootProject.projectDir}/eclipse/") {
|
from ("${rootProject.projectDir}/eclipse/") {
|
||||||
include '**/*.prefs'
|
include '**/*.prefs'
|
||||||
filter(ReplaceTokens, tokens: [javaVersion: "${rootProject.javaVersion}".toString()])
|
filter(ReplaceTokens, tokens: [javaVersion: "${rootProject.javaVersion}".toString()])
|
||||||
}
|
}
|
||||||
into "${project.projectDir}/.settings/"
|
into "${project.projectDir}/.settings/"
|
||||||
}
|
}
|
||||||
tasks.eclipseJdt.dependsOn eclipseSettings
|
tasks.eclipseJdt.dependsOn eclipseSettings
|
||||||
tasks.cleanEclipseJdt.dependsOn cleanEclipseSettings
|
tasks.cleanEclipseJdt.dependsOn cleanEclipseSettings
|
||||||
|
|
||||||
eclipse {
|
eclipse {
|
||||||
classpath {
|
classpath {
|
||||||
file {
|
file {
|
||||||
whenMerged {
|
whenMerged {
|
||||||
eclipseAccessRestrictions.each{ path, restrictions ->
|
eclipseAccessRestrictions.each{ path, restrictions ->
|
||||||
def container = entries.find { it.path.contains path }
|
def container = entries.find { it.path.contains path }
|
||||||
if (container != null) {
|
if (container != null) {
|
||||||
container.accessRules.addAll(restrictions)
|
container.accessRules.addAll(restrictions)
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
wrapper {
|
wrapper {
|
||||||
gradleVersion = '6.8.3'
|
gradleVersion = '6.8.3'
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user