From d0ba39081cadc1ff1ebf071f1e58c3118c8bf5a5 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 31 Oct 2020 17:44:50 +0300 Subject: [PATCH] Update versions in pom.xml and documentation after 0.1.3 release (#469) * Prepare next development iteration after release 0.1.3 * Diktat code style Co-authored-by: GitHub Co-authored-by: Peter Trifanov --- README.md | 2 +- build.gradle.kts | 2 +- diktat-common/pom.xml | 2 +- diktat-maven-plugin/pom.xml | 2 +- diktat-rules/pom.xml | 2 +- diktat-ruleset/pom.xml | 2 +- diktat-test-framework/pom.xml | 2 +- .../diktat/test/framework/config/TestArgumentsReader.kt | 6 +----- pom.xml | 4 ++-- 9 files changed, 10 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index 4a9cf6c74b..952024b4b0 100644 --- a/README.md +++ b/README.md @@ -127,7 +127,7 @@ To run diktat to check/fix code style - run `$ mvn antrun:run@diktat`. ### Use the new diktat-maven-plugin You can see how it is configured in our project for self-checks: [pom.xml](pom.xml). -This plugin should be available since version 0.1.2. It requires less configuration but may contain bugs. +This plugin should be available since version 0.1.3. It requires less configuration but may contain bugs. If you use it and encounter any problems, feel free to open issues on [github](https://github.com/cqfn/diktat/issues). Add this plugin to your pom.xml: diff --git a/build.gradle.kts b/build.gradle.kts index c91abe016a..89b9e5f228 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -11,7 +11,7 @@ dependencies { } // diktat ruleset - ktlint("org.cqfn.diktat:diktat-rules:0.1.2") + ktlint("org.cqfn.diktat:diktat-rules:0.1.3") } val outputDir = "${project.buildDir}/reports/diktat/" diff --git a/diktat-common/pom.xml b/diktat-common/pom.xml index 663f90cacd..c113dc6449 100644 --- a/diktat-common/pom.xml +++ b/diktat-common/pom.xml @@ -9,7 +9,7 @@ org.cqfn.diktat diktat-parent - 0.1.3-SNAPSHOT + 0.1.4-SNAPSHOT diff --git a/diktat-maven-plugin/pom.xml b/diktat-maven-plugin/pom.xml index 5cc4bc5f5b..01dff05c60 100644 --- a/diktat-maven-plugin/pom.xml +++ b/diktat-maven-plugin/pom.xml @@ -5,7 +5,7 @@ diktat-parent org.cqfn.diktat - 0.1.3-SNAPSHOT + 0.1.4-SNAPSHOT 4.0.0 diff --git a/diktat-rules/pom.xml b/diktat-rules/pom.xml index 75c21dc8e5..50b243ca19 100644 --- a/diktat-rules/pom.xml +++ b/diktat-rules/pom.xml @@ -9,7 +9,7 @@ org.cqfn.diktat diktat-parent - 0.1.3-SNAPSHOT + 0.1.4-SNAPSHOT diff --git a/diktat-ruleset/pom.xml b/diktat-ruleset/pom.xml index e652b3bd34..d7757986e6 100644 --- a/diktat-ruleset/pom.xml +++ b/diktat-ruleset/pom.xml @@ -8,7 +8,7 @@ org.cqfn.diktat diktat-parent - 0.1.3-SNAPSHOT + 0.1.4-SNAPSHOT diff --git a/diktat-test-framework/pom.xml b/diktat-test-framework/pom.xml index a55eeeaa5f..5342924cd2 100644 --- a/diktat-test-framework/pom.xml +++ b/diktat-test-framework/pom.xml @@ -9,7 +9,7 @@ org.cqfn.diktat diktat-parent - 0.1.3-SNAPSHOT + 0.1.4-SNAPSHOT diff --git a/diktat-test-framework/src/main/kotlin/org/cqfn/diktat/test/framework/config/TestArgumentsReader.kt b/diktat-test-framework/src/main/kotlin/org/cqfn/diktat/test/framework/config/TestArgumentsReader.kt index 714956c94d..95a1b8ca6f 100644 --- a/diktat-test-framework/src/main/kotlin/org/cqfn/diktat/test/framework/config/TestArgumentsReader.kt +++ b/diktat-test-framework/src/main/kotlin/org/cqfn/diktat/test/framework/config/TestArgumentsReader.kt @@ -32,7 +32,7 @@ class TestArgumentsReader( override val classLoader: ClassLoader ) : JsonResourceConfigReader?>() { private val cliArguments: List? = readResource(properties.testFrameworkArgsRelativePath) - private val cmd: CommandLine + private val cmd: CommandLine by lazy { parseArguments() } /** * List of tests provided by user @@ -63,10 +63,6 @@ class TestArgumentsReader( return options } - init { - cmd = parseArguments() - } - private fun parseArguments(): CommandLine { val parser: CommandLineParser = DefaultParser() val formatter = HelpFormatter() diff --git a/pom.xml b/pom.xml index cb6f6869da..5b0109a15b 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ org.cqfn.diktat diktat-parent - 0.1.3-SNAPSHOT + 0.1.4-SNAPSHOT pom diktat @@ -50,7 +50,7 @@ 30.0-jre 1.7.30 1.4 - 0.1.2 + 0.1.3 1.7.1 1.14.2 1.4.10