Skip to content

Commit

Permalink
Set logging manager in Gradle test projects
Browse files Browse the repository at this point in the history
  • Loading branch information
glefloch committed Oct 14, 2022
1 parent 70f7d15 commit 4d70d03
Show file tree
Hide file tree
Showing 51 changed files with 162 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ subprojects {
dependsOn("cleanTest")
useJUnitPlatform()
setForkEvery(1)
systemProperty("java.util.logging.manager", "org.jboss.logmanager.LogManager")
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ subprojects {
dependsOn 'cleanTest'
useJUnitPlatform()
forkEvery 1
systemProperty "java.util.logging.manager", "org.jboss.logmanager.LogManager"
}

repositories {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,7 @@ tasks.withType<JavaCompile> {
options.encoding = "UTF-8"
options.compilerArgs.add("-parameters")
}

tasks.withType<Test> {
systemProperty("java.util.logging.manager", "org.jboss.logmanager.LogManager")
}
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,7 @@ compileJava {
compileTestJava {
options.encoding = 'UTF-8'
}

test {
systemProperty "java.util.logging.manager", "org.jboss.logmanager.LogManager"
}
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,9 @@ task functionalTest(type: Test, description: 'Functional tests', dependsOn: [pro
showStandardStreams = true
}
systemProperty 'quarkus.http.host', 'localhost'
systemProperty "java.util.logging.manager", "org.jboss.logmanager.LogManager"
}

test {
systemProperty "java.util.logging.manager", "org.jboss.logmanager.LogManager"
}
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ subprojects {
dependsOn 'cleanTest'
useJUnitPlatform()
forkEvery 1
systemProperty "java.util.logging.manager", "org.jboss.logmanager.LogManager"
}

repositories {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ test {
dependsOn 'cleanTest'
useJUnitPlatform()
forkEvery 1
systemProperty "java.util.logging.manager", "org.jboss.logmanager.LogManager"
}

repositories {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,7 @@ run {
systemProperty 'maven.repo.local', System.properties.get('maven.repo.local')
}
}

test {
systemProperty "java.util.logging.manager", "org.jboss.logmanager.LogManager"
}
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,7 @@ dependencies {
compileJava {
options.compilerArgs << '-parameters'
}

test {
systemProperty "java.util.logging.manager", "org.jboss.logmanager.LogManager"
}
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,7 @@ quarkusBuild {
additionalArgs= ["--verbose"]
}
}

test {
systemProperty "java.util.logging.manager", "org.jboss.logmanager.LogManager"
}
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,7 @@ dependencies {
compileJava {
options.compilerArgs << '-parameters'
}

test {
systemProperty "java.util.logging.manager", "org.jboss.logmanager.LogManager"
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,5 @@ subprojects{
}
mavenCentral()
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,7 @@ dependencies {
compileJava {
options.compilerArgs << '-parameters'
}

test {
systemProperty "java.util.logging.manager", "org.jboss.logmanager.LogManager"
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ subprojects {
dependsOn 'cleanTest'
useJUnitPlatform()
forkEvery 1
systemProperty "java.util.logging.manager", "org.jboss.logmanager.LogManager"
}

repositories {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ subprojects {
dependsOn 'cleanTest'
useJUnitPlatform()
forkEvery 1
systemProperty "java.util.logging.manager", "org.jboss.logmanager.LogManager"
}

repositories {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,7 @@ compileJava {
compileTestJava {
options.encoding = 'UTF-8'
}

test {
systemProperty "java.util.logging.manager", "org.jboss.logmanager.LogManager"
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ subprojects {
implementation enforcedPlatform("io.quarkus:quarkus-bom:${quarkusPlatformVersion}")
}

test {
systemProperty "java.util.logging.manager", "org.jboss.logmanager.LogManager"
}
}

group 'org.acme'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,7 @@ version '1.0-SNAPSHOT'
compileTestJava {
options.encoding = 'UTF-8'
}

test {
systemProperty "java.util.logging.manager", "org.jboss.logmanager.LogManager"
}
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,7 @@ compileJava {
compileTestJava {
options.encoding = 'UTF-8'
}

test {
systemProperty "java.util.logging.manager", "org.jboss.logmanager.LogManager"
}
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,7 @@ compileJava {
compileTestJava {
options.encoding = 'UTF-8'
}

test {
systemProperty "java.util.logging.manager", "org.jboss.logmanager.LogManager"
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,8 @@ repositories {
}
}
mavenCentral()
}

test {
systemProperty "java.util.logging.manager", "org.jboss.logmanager.LogManager"
}
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,6 @@ dependencies {
testImplementation 'org.apache.commons:commons-collections4::tests'
}

test {
systemProperty "java.util.logging.manager", "org.jboss.logmanager.LogManager"
}
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,7 @@ quarkusBuild {
attributes(['framework': 'quarkus'], 'org.acme')
}
}

test {
systemProperty "java.util.logging.manager", "org.jboss.logmanager.LogManager"
}
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ subprojects {
dependsOn 'cleanTest'
useJUnitPlatform()
forkEvery 1
systemProperty "java.util.logging.manager", "org.jboss.logmanager.LogManager"
}

repositories {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,7 @@ quarkusBuild {
additionalArgs= ["--verbose"]
}
}

test {
systemProperty "java.util.logging.manager", "org.jboss.logmanager.LogManager"
}
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,6 @@ dependencies {
implementation 'io.quarkus:quarkus-resteasy'
}

test {
systemProperty "java.util.logging.manager", "org.jboss.logmanager.LogManager"
}
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,6 @@ dependencies {
implementation 'javax.json.bind:javax.json.bind-api'
}

test {
systemProperty "java.util.logging.manager", "org.jboss.logmanager.LogManager"
}
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,7 @@ compileTestJava {
quarkusDev {
workingDir = System.getProperty("java.io.tmpdir")
}

test {
systemProperty "java.util.logging.manager", "org.jboss.logmanager.LogManager"
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,8 @@ subprojects {
}
mavenCentral()
}

test {
systemProperty "java.util.logging.manager", "org.jboss.logmanager.LogManager"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ subprojects {
dependsOn 'cleanTest'
useJUnitPlatform()
forkEvery 1
systemProperty "java.util.logging.manager", "org.jboss.logmanager.LogManager"
}

repositories {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ subprojects {
dependsOn 'cleanTest'
useJUnitPlatform()
forkEvery 1
systemProperty "java.util.logging.manager", "org.jboss.logmanager.LogManager"
}

repositories {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,7 @@ dependencies {
compileJava {
options.compilerArgs << '-parameters'
}

test {
systemProperty "java.util.logging.manager", "org.jboss.logmanager.LogManager"
}
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,7 @@ compileJava {
compileTestJava {
options.encoding = 'UTF-8'
}

test {
systemProperty "java.util.logging.manager", "org.jboss.logmanager.LogManager"
}
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,7 @@ compileJava {
compileTestJava {
options.encoding = 'UTF-8'
}

test {
systemProperty "java.util.logging.manager", "org.jboss.logmanager.LogManager"
}
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ subprojects {
dependsOn 'cleanTest'
useJUnitPlatform()
forkEvery 1
systemProperty "java.util.logging.manager", "org.jboss.logmanager.LogManager"
}

repositories {
Expand All @@ -40,4 +41,5 @@ subprojects {

implementation enforcedPlatform("${quarkusPlatformGroupId}:${quarkusPlatformArtifactId}:${quarkusPlatformVersion}")
}
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,7 @@ compileJava {
compileTestJava {
options.encoding = 'UTF-8'
}

test {
systemProperty "java.util.logging.manager", "org.jboss.logmanager.LogManager"
}
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,7 @@ compileJava {
options.encoding = 'UTF-8'
options.compilerArgs << '-parameters'
}

test {
systemProperty "java.util.logging.manager", "org.jboss.logmanager.LogManager"
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,7 @@ compileJava {
options.encoding = 'UTF-8'
options.compilerArgs << '-parameters'
}

test {
systemProperty "java.util.logging.manager", "org.jboss.logmanager.LogManager"
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ repositories {

group 'org.acme'
version '1.0.0-SNAPSHOT'

Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,7 @@ compileTestJava {
test {
systemProperty "java.util.logging.manager", "org.jboss.logmanager.LogManager"
}

test {
systemProperty "java.util.logging.manager", "org.jboss.logmanager.LogManager"
}
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,7 @@ compileJava {
compileTestJava {
options.encoding = 'UTF-8'
}

test {
systemProperty "java.util.logging.manager", "org.jboss.logmanager.LogManager"
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,7 @@ subprojects {
}
mavenCentral()
}


}

Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,7 @@ compileJava {
compileTestJava {
options.encoding = 'UTF-8'
}

test {
systemProperty "java.util.logging.manager", "org.jboss.logmanager.LogManager"
}
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,7 @@ run {
systemProperty 'maven.repo.local', System.properties.get('maven.repo.local')
}
}

test {
systemProperty "java.util.logging.manager", "org.jboss.logmanager.LogManager"
}
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,8 @@ dependencies {

compileJava {
options.compilerArgs << '-parameters'
}

test {
systemProperty "java.util.logging.manager", "org.jboss.logmanager.LogManager"
}
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,8 @@ subprojects {
}
mavenCentral()
}

test {
systemProperty "java.util.logging.manager", "org.jboss.logmanager.LogManager"
}
}
Loading

0 comments on commit 4d70d03

Please sign in to comment.