From cd0cb95ce1458fa78f79cf0236e62ae6c14a04ab Mon Sep 17 00:00:00 2001 From: Florian Schmaus Date: Sat, 20 Jul 2019 09:36:14 +0200 Subject: [PATCH] checkstyle: Use $config_loc for Java 11 Also move configuration files into "${rootProject}/config/checkstyle" to follow convention over configuration. See https://github.com/gradle/gradle/issues/8286#issuecomment-458145619 --- build.gradle | 1 - config/{ => checkstyle}/checkstyle.xml | 4 ++-- config/{ => checkstyle}/header.txt | 0 .../smack-omemo-signal-gplv3-license-header.txt | 0 ...ack-omemo-signal-integration-test-gplv3-license-header.txt | 0 config/{ => checkstyle}/suppressions.xml | 0 6 files changed, 2 insertions(+), 3 deletions(-) rename config/{ => checkstyle}/checkstyle.xml (97%) rename config/{ => checkstyle}/header.txt (100%) rename config/{ => checkstyle}/smack-omemo-signal-gplv3-license-header.txt (100%) rename config/{ => checkstyle}/smack-omemo-signal-integration-test-gplv3-license-header.txt (100%) rename config/{ => checkstyle}/suppressions.xml (100%) diff --git a/build.gradle b/build.gradle index 8645b5368..a7778b5fa 100644 --- a/build.gradle +++ b/build.gradle @@ -399,7 +399,6 @@ subprojects { apply plugin: 'org.kordamp.gradle.clirr' checkstyle { - configFile = new File(rootConfigDir, 'checkstyle.xml') toolVersion = '8.10' } task sourcesJar(type: Jar, dependsOn: classes) { diff --git a/config/checkstyle.xml b/config/checkstyle/checkstyle.xml similarity index 97% rename from config/checkstyle.xml rename to config/checkstyle/checkstyle.xml index 8d539f725..b6025f979 100644 --- a/config/checkstyle.xml +++ b/config/checkstyle/checkstyle.xml @@ -4,7 +4,7 @@ "http://www.puppycrawl.com/dtds/configuration_1_3.dtd"> - + @@ -12,7 +12,7 @@ - + diff --git a/config/header.txt b/config/checkstyle/header.txt similarity index 100% rename from config/header.txt rename to config/checkstyle/header.txt diff --git a/config/smack-omemo-signal-gplv3-license-header.txt b/config/checkstyle/smack-omemo-signal-gplv3-license-header.txt similarity index 100% rename from config/smack-omemo-signal-gplv3-license-header.txt rename to config/checkstyle/smack-omemo-signal-gplv3-license-header.txt diff --git a/config/smack-omemo-signal-integration-test-gplv3-license-header.txt b/config/checkstyle/smack-omemo-signal-integration-test-gplv3-license-header.txt similarity index 100% rename from config/smack-omemo-signal-integration-test-gplv3-license-header.txt rename to config/checkstyle/smack-omemo-signal-integration-test-gplv3-license-header.txt diff --git a/config/suppressions.xml b/config/checkstyle/suppressions.xml similarity index 100% rename from config/suppressions.xml rename to config/checkstyle/suppressions.xml