From 83294f32985b6ce73b3e1755df8803ade599923e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20Zaj=C4=85czkowski?= Date: Wed, 1 Jul 2020 16:23:51 +0200 Subject: [PATCH 01/20] Add functional test with Spock 2 (using JUnit Platform) --- CHANGELOG.md | 4 +++ .../functional/Junit5FunctionalSpec.groovy | 12 +++++++ .../testProjects/junit5spock2/build.gradle | 35 +++++++++++++++++++ .../testProjects/junit5spock2/settings.gradle | 1 + .../src/main/java/pitest/test/Library.java | 7 ++++ .../pitest/test/LibrarySpock2Spec.groovy | 13 +++++++ 6 files changed, 72 insertions(+) create mode 100644 src/funcTest/resources/testProjects/junit5spock2/build.gradle create mode 100644 src/funcTest/resources/testProjects/junit5spock2/settings.gradle create mode 100644 src/funcTest/resources/testProjects/junit5spock2/src/main/java/pitest/test/Library.java create mode 100644 src/funcTest/resources/testProjects/junit5spock2/src/test/groovy/pitest/test/LibrarySpock2Spec.groovy diff --git a/CHANGELOG.md b/CHANGELOG.md index efc17e08..9695ebb6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # gradle-pitest-plugin changelog +## 1.5.2 - Unreleased + + - Add functional test with Spock 2 (using JUnit Platform) + ## 1.5.1 - 2020-05-06 - Fail with meaningful error message on no longer supported `pitest` configuration in `rootProject.buildscript` - [#205](https://github.com/szpak/gradle-pitest-plugin/issues/205) diff --git a/src/funcTest/groovy/info/solidsoft/gradle/pitest/functional/Junit5FunctionalSpec.groovy b/src/funcTest/groovy/info/solidsoft/gradle/pitest/functional/Junit5FunctionalSpec.groovy index 781dfc33..5206b8bb 100644 --- a/src/funcTest/groovy/info/solidsoft/gradle/pitest/functional/Junit5FunctionalSpec.groovy +++ b/src/funcTest/groovy/info/solidsoft/gradle/pitest/functional/Junit5FunctionalSpec.groovy @@ -40,4 +40,16 @@ class Junit5FunctionalSpec extends AbstractPitestFunctionalSpec { result.standardOutput.contains('Generated 1 mutations Killed 1 (100%)') } + void "should work with Spock 2 using JUnit 5 internally"() { + given: + copyResources("testProjects/junit5spock2", "") + when: + ExecutionResult result = runTasksSuccessfully('pitest') + then: + result.wasExecuted('pitest') + and: + result.standardOutput.contains('--testPlugin=junit5') + result.standardOutput.contains('Generated 1 mutations Killed 1 (100%)') + } + } diff --git a/src/funcTest/resources/testProjects/junit5spock2/build.gradle b/src/funcTest/resources/testProjects/junit5spock2/build.gradle new file mode 100644 index 00000000..2deb5256 --- /dev/null +++ b/src/funcTest/resources/testProjects/junit5spock2/build.gradle @@ -0,0 +1,35 @@ +apply plugin: 'java' +apply plugin: 'groovy' +apply plugin: 'info.solidsoft.pitest' + +/* +//Local/current version of the plugin should be put on a classpath earlier to override that plugin version +buildscript { + repositories { + mavenCentral() + mavenLocal() + } + dependencies { + classpath 'info.solidsoft.gradle.pitest:gradle-pitest-plugin:X.Y.Z-SNAPSHOT' + } +} +*/ + +repositories { + mavenCentral() +} + +group = "pitest.test" + +dependencies { + testImplementation 'org.spockframework:spock-core:2.0-M3-groovy-2.5' +} + +test { + useJUnitPlatform() +} + +pitest { +// testPlugin = "junit5" //not needed - 'junit5PluginVersion' should implicitly set it + junit5PluginVersion = "0.12" +} diff --git a/src/funcTest/resources/testProjects/junit5spock2/settings.gradle b/src/funcTest/resources/testProjects/junit5spock2/settings.gradle new file mode 100644 index 00000000..367b6eee --- /dev/null +++ b/src/funcTest/resources/testProjects/junit5spock2/settings.gradle @@ -0,0 +1 @@ +rootProject.name = 'simpleSpock2' diff --git a/src/funcTest/resources/testProjects/junit5spock2/src/main/java/pitest/test/Library.java b/src/funcTest/resources/testProjects/junit5spock2/src/main/java/pitest/test/Library.java new file mode 100644 index 00000000..099a336b --- /dev/null +++ b/src/funcTest/resources/testProjects/junit5spock2/src/main/java/pitest/test/Library.java @@ -0,0 +1,7 @@ +package pitest.test; + +public class Library { + public boolean someLibraryMethod() { + return true; + } +} diff --git a/src/funcTest/resources/testProjects/junit5spock2/src/test/groovy/pitest/test/LibrarySpock2Spec.groovy b/src/funcTest/resources/testProjects/junit5spock2/src/test/groovy/pitest/test/LibrarySpock2Spec.groovy new file mode 100644 index 00000000..7e661229 --- /dev/null +++ b/src/funcTest/resources/testProjects/junit5spock2/src/test/groovy/pitest/test/LibrarySpock2Spec.groovy @@ -0,0 +1,13 @@ +package pitest.test; + +import spock.lang.Specification; + +class LibrarySpock2Spec extends Specification { + + void "should generate some mutation coverage"() { + given: + Library classUnderTest = new Library(); + expect: + classUnderTest.someLibraryMethod() + } +} From 213e08b14e9648ade7a9b27a522a0035a50442f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20Zaj=C4=85czkowski?= Date: Sun, 2 Aug 2020 18:31:15 +0200 Subject: [PATCH 02/20] Fix "duplicate path" deprecation in Gradle 6 https://github.com/gradle/gradle/issues/13578 --- build.gradle | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/build.gradle b/build.gradle index fcd5836c..ff9a5881 100644 --- a/build.gradle +++ b/build.gradle @@ -29,11 +29,7 @@ repositories { } sourceSets { - funcTest { - java.srcDir file('src/funcTest/java') - groovy.srcDir file('src/funcTest/groovy') - resources.srcDir file('src/funcTest/resources') - } + funcTest } dependencies { From b796bee20cec9c25d53c7d4d09c38be8b7be517a Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Sun, 2 Aug 2020 21:55:46 +0200 Subject: [PATCH 03/20] Bump byte-buddy from 1.10.12 to 1.10.13 (#219) Bumps [byte-buddy](https://github.com/raphw/byte-buddy) from 1.10.12 to 1.10.13. - [Release notes](https://github.com/raphw/byte-buddy/releases) - [Changelog](https://github.com/raphw/byte-buddy/blob/master/release-notes.md) - [Commits](https://github.com/raphw/byte-buddy/compare/byte-buddy-1.10.12...byte-buddy-1.10.13) Signed-off-by: dependabot-preview[bot] Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com> --- build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index ff9a5881..8b651fb3 100644 --- a/build.gradle +++ b/build.gradle @@ -42,7 +42,7 @@ dependencies { testImplementation('org.spockframework:spock-junit4:2.0-M3-groovy-2.5') { exclude group: 'org.codehaus.groovy' } - testImplementation 'net.bytebuddy:byte-buddy:1.10.12' //for Spying in Spock + testImplementation 'net.bytebuddy:byte-buddy:1.10.13' //for Spying in Spock funcTestImplementation sourceSets.main.output //to make production plugin classes visible in functional tests (it's not in testCompile configuration) funcTestImplementation sourceSets.test.output From d04eeb945fb8d37d520fcfbb3bc6de9211f469fb Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Sun, 2 Aug 2020 21:57:56 +0200 Subject: [PATCH 04/20] Bump plugin-publish-plugin from 0.11.0 to 0.12.0 (#208) Bumps plugin-publish-plugin from 0.11.0 to 0.12.0. Signed-off-by: dependabot-preview[bot] Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com> --- build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index 8b651fb3..b4f4a48d 100644 --- a/build.gradle +++ b/build.gradle @@ -16,7 +16,7 @@ buildscript { dependencies { classpath 'info.solidsoft.gradle:cdeliveryboy:0.8.0' classpath 'io.codearte.gradle.nexus:gradle-nexus-staging-plugin:0.21.2' //override version for more reliable releasing from Travis - classpath 'com.gradle.publish:plugin-publish-plugin:0.11.0' + classpath 'com.gradle.publish:plugin-publish-plugin:0.12.0' classpath 'com.github.ben-manes:gradle-versions-plugin:0.28.0' } } From 1d78bcd9bfd9fc5f7e9078c3770cf8fbbad9affe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20Zaj=C4=85czkowski?= Date: Sun, 2 Aug 2020 22:35:08 +0200 Subject: [PATCH 05/20] Bump minimal support PIT version to 1.4.0 Due to integration test failures with recent Java 8 versions: https://github.com/szpak/gradle-pitest-plugin/pull/223#pullrequestreview-459673282 --- CHANGELOG.md | 1 + ...itestPluginPitVersionFunctionalSpec.groovy | 26 +++++++------------ 2 files changed, 11 insertions(+), 16 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9695ebb6..50c8c5f7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ ## 1.5.2 - Unreleased - Add functional test with Spock 2 (using JUnit Platform) + - Bump minimal supported PIT version to 1.4.0 - the first version which required Java 8 (May 2018) ## 1.5.1 - 2020-05-06 diff --git a/src/funcTest/groovy/info/solidsoft/gradle/pitest/functional/PitestPluginPitVersionFunctionalSpec.groovy b/src/funcTest/groovy/info/solidsoft/gradle/pitest/functional/PitestPluginPitVersionFunctionalSpec.groovy index b489b819..88701824 100644 --- a/src/funcTest/groovy/info/solidsoft/gradle/pitest/functional/PitestPluginPitVersionFunctionalSpec.groovy +++ b/src/funcTest/groovy/info/solidsoft/gradle/pitest/functional/PitestPluginPitVersionFunctionalSpec.groovy @@ -9,9 +9,7 @@ import org.gradle.internal.jvm.Jvm @CompileDynamic class PitestPluginPitVersionFunctionalSpec extends AbstractPitestFunctionalSpec { - private static final String PIT_1_3_VERSION = "1.3.1" - private static final String MINIMAL_JAVA9_COMPATIBLE_PIT_VERSION = "1.2.3" //https://github.com/hcoles/pitest/issues/380 - private static final String MINIMAL_JAVA10_COMPATIBLE_PIT_VERSION = "1.4.0" + private static final String MINIMAL_SUPPORTED_PIT_VERSION = "1.4.0" //minimal PIT version that required Java 8 - May 2018 private static final String MINIMAL_JAVA11_COMPATIBLE_PIT_VERSION = "1.4.2" //in fact 1.4.1, but 1.4.2 is also Java 12 compatible private static final String MINIMAL_JAVA13_COMPATIBLE_PIT_VERSION = "1.4.6" //not officially, but at least simple case works private static final String MINIMAL_JAVA14_COMPATIBLE_PIT_VERSION = "1.4.11" //not officially, but with ASM 7.3.1 @@ -41,25 +39,21 @@ class PitestPluginPitVersionFunctionalSpec extends AbstractPitestFunctionalSpec pitVersion << getPitVersionsCompatibleWithCurrentJavaVersion().unique() //be aware that unique() is available since Groovy 2.4.0 } - @SuppressWarnings("IfStatementCouldBeTernary") private List getPitVersionsCompatibleWithCurrentJavaVersion() { + return [getMinimalPitVersionCompatibleWithCurrentJavaVersion(), PitestPlugin.DEFAULT_PITEST_VERSION] + } + + @SuppressWarnings("IfStatementCouldBeTernary") + private String getMinimalPitVersionCompatibleWithCurrentJavaVersion() { if (isJava14Compatible()) { - return [PitestPlugin.DEFAULT_PITEST_VERSION, MINIMAL_JAVA14_COMPATIBLE_PIT_VERSION] + return [MINIMAL_JAVA14_COMPATIBLE_PIT_VERSION] } if (isJava13Compatible()) { - return [PitestPlugin.DEFAULT_PITEST_VERSION, MINIMAL_JAVA13_COMPATIBLE_PIT_VERSION] + return [MINIMAL_JAVA13_COMPATIBLE_PIT_VERSION] } - if (Jvm.current().javaVersion.isJava11Compatible()) { - return [PitestPlugin.DEFAULT_PITEST_VERSION, MINIMAL_JAVA11_COMPATIBLE_PIT_VERSION] - } - if (Jvm.current().javaVersion.isJava10Compatible()) { - return [PitestPlugin.DEFAULT_PITEST_VERSION, MINIMAL_JAVA10_COMPATIBLE_PIT_VERSION] + return [MINIMAL_JAVA11_COMPATIBLE_PIT_VERSION] } - if (Jvm.current().javaVersion.isJava9Compatible()) { - return [PitestPlugin.DEFAULT_PITEST_VERSION, MINIMAL_JAVA9_COMPATIBLE_PIT_VERSION, PIT_1_3_VERSION] - } - return [PitestPlugin.DEFAULT_PITEST_VERSION, "1.1.5", "1.2.0", PIT_1_3_VERSION, "1.4.0"] + return [MINIMAL_SUPPORTED_PIT_VERSION] } - } From 6399e74406f4a6957c5623d75895986988c2e8fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20Zaj=C4=85czkowski?= Date: Sun, 2 Aug 2020 22:42:23 +0200 Subject: [PATCH 06/20] Satisfy Codenarc The funcTest task doesn't trigger the check task... --- .../functional/PitestPluginPitVersionFunctionalSpec.groovy | 1 + 1 file changed, 1 insertion(+) diff --git a/src/funcTest/groovy/info/solidsoft/gradle/pitest/functional/PitestPluginPitVersionFunctionalSpec.groovy b/src/funcTest/groovy/info/solidsoft/gradle/pitest/functional/PitestPluginPitVersionFunctionalSpec.groovy index 88701824..bbb58ea8 100644 --- a/src/funcTest/groovy/info/solidsoft/gradle/pitest/functional/PitestPluginPitVersionFunctionalSpec.groovy +++ b/src/funcTest/groovy/info/solidsoft/gradle/pitest/functional/PitestPluginPitVersionFunctionalSpec.groovy @@ -56,4 +56,5 @@ class PitestPluginPitVersionFunctionalSpec extends AbstractPitestFunctionalSpec } return [MINIMAL_SUPPORTED_PIT_VERSION] } + } From 608e73184da88eb879960c476fc61d6c6e36cd38 Mon Sep 17 00:00:00 2001 From: Piotr Kubowicz Date: Mon, 3 Aug 2020 08:26:48 +0200 Subject: [PATCH 07/20] Support java-test-fixtures plugin Applying 'java-test-fixtures' plugin caused 'No mutations found' from Pitest. The plugin changes test runtime classpath: tested code is included as a JAR instead of as a directory (see gradle/gradle#11696). It seems that Pitest ignores correct directories being passed using --mutableCodePaths and insists on having those directories also passed in --classPath. Also change functional tests: runTasksSuccessfully() fails the test without giving any context, so it should be avoided. --- .../functional/Junit5FunctionalSpec.groovy | 12 +++++++--- .../TestFixturesFunctionalSpec.groovy | 21 ++++++++++++++++ .../testProjects/testFixtures/build.gradle | 24 +++++++++++++++++++ .../testProjects/testFixtures/settings.gradle | 1 + .../src/main/java/pitest/test/Library.java | 7 ++++++ .../test/java/pitest/test/LibraryTest.java | 13 ++++++++++ .../gradle/pitest/PitestPlugin.groovy | 9 +++---- .../pitest/PitestTaskConfigurationSpec.groovy | 10 +++++--- 8 files changed, 87 insertions(+), 10 deletions(-) create mode 100644 src/funcTest/groovy/info/solidsoft/gradle/pitest/functional/TestFixturesFunctionalSpec.groovy create mode 100644 src/funcTest/resources/testProjects/testFixtures/build.gradle create mode 100644 src/funcTest/resources/testProjects/testFixtures/settings.gradle create mode 100644 src/funcTest/resources/testProjects/testFixtures/src/main/java/pitest/test/Library.java create mode 100644 src/funcTest/resources/testProjects/testFixtures/src/test/java/pitest/test/LibraryTest.java diff --git a/src/funcTest/groovy/info/solidsoft/gradle/pitest/functional/Junit5FunctionalSpec.groovy b/src/funcTest/groovy/info/solidsoft/gradle/pitest/functional/Junit5FunctionalSpec.groovy index 5206b8bb..62135df6 100644 --- a/src/funcTest/groovy/info/solidsoft/gradle/pitest/functional/Junit5FunctionalSpec.groovy +++ b/src/funcTest/groovy/info/solidsoft/gradle/pitest/functional/Junit5FunctionalSpec.groovy @@ -11,8 +11,10 @@ class Junit5FunctionalSpec extends AbstractPitestFunctionalSpec { given: copyResources("testProjects/junit5kotlin", "") when: - ExecutionResult result = runTasksSuccessfully('pitest') + ExecutionResult result = runTasks('pitest') then: + !result.standardError.contains("Build failed with an exception") + !result.failure result.wasExecuted('pitest') result.standardOutput.contains('Generated 2 mutations Killed 2 (100%)') } @@ -21,8 +23,10 @@ class Junit5FunctionalSpec extends AbstractPitestFunctionalSpec { given: copyResources("testProjects/junit5kotlin", "") when: - ExecutionResult result = runTasksSuccessfully('pitest', '-b', 'build.gradle.kts') + ExecutionResult result = runTasks('pitest', '-b', 'build.gradle.kts') then: + !result.standardError.contains("Build failed with an exception") + !result.failure result.wasExecuted('pitest') result.standardOutput.contains('Generated 2 mutations Killed 2 (100%)') } @@ -32,8 +36,10 @@ class Junit5FunctionalSpec extends AbstractPitestFunctionalSpec { given: copyResources("testProjects/junit5simple", "") when: - ExecutionResult result = runTasksSuccessfully('pitest') + ExecutionResult result = runTasks('pitest') then: + !result.standardError.contains("Build failed with an exception") + !result.failure result.wasExecuted('pitest') and: result.standardOutput.contains('--testPlugin=junit5') diff --git a/src/funcTest/groovy/info/solidsoft/gradle/pitest/functional/TestFixturesFunctionalSpec.groovy b/src/funcTest/groovy/info/solidsoft/gradle/pitest/functional/TestFixturesFunctionalSpec.groovy new file mode 100644 index 00000000..b3ee5aa4 --- /dev/null +++ b/src/funcTest/groovy/info/solidsoft/gradle/pitest/functional/TestFixturesFunctionalSpec.groovy @@ -0,0 +1,21 @@ +package info.solidsoft.gradle.pitest.functional + +import groovy.transform.CompileDynamic +import nebula.test.functional.ExecutionResult + +@CompileDynamic +class TestFixturesFunctionalSpec extends AbstractPitestFunctionalSpec { + + void "should work with java-test-fixtures plugin"() { + given: + copyResources("testProjects/testFixtures", "") + when: + ExecutionResult result = runTasks('pitest') + then: + !result.standardError.contains("Build failed with an exception") + !result.failure + result.wasExecuted('pitest') + result.standardOutput.contains('Generated 1 mutations Killed 1 (100%)') + } + +} diff --git a/src/funcTest/resources/testProjects/testFixtures/build.gradle b/src/funcTest/resources/testProjects/testFixtures/build.gradle new file mode 100644 index 00000000..ca3dfe81 --- /dev/null +++ b/src/funcTest/resources/testProjects/testFixtures/build.gradle @@ -0,0 +1,24 @@ +apply plugin: 'java-library' +apply plugin: 'java-test-fixtures' +apply plugin: 'info.solidsoft.pitest' + +buildscript { + repositories { + mavenCentral() + mavenLocal() + } + dependencies { + //Local/current version of the plugin should be put on a classpath earlier to override that plugin version +// classpath 'info.solidsoft.gradle.pitest:gradle-pitest-plugin:1.1.7-SNAPSHOT' + } +} + +repositories { + mavenCentral() +} + +group = "pitest.test" + +dependencies { + testImplementation 'junit:junit:4.12' +} diff --git a/src/funcTest/resources/testProjects/testFixtures/settings.gradle b/src/funcTest/resources/testProjects/testFixtures/settings.gradle new file mode 100644 index 00000000..0109c47a --- /dev/null +++ b/src/funcTest/resources/testProjects/testFixtures/settings.gradle @@ -0,0 +1 @@ +rootProject.name = 'testFixtures' diff --git a/src/funcTest/resources/testProjects/testFixtures/src/main/java/pitest/test/Library.java b/src/funcTest/resources/testProjects/testFixtures/src/main/java/pitest/test/Library.java new file mode 100644 index 00000000..099a336b --- /dev/null +++ b/src/funcTest/resources/testProjects/testFixtures/src/main/java/pitest/test/Library.java @@ -0,0 +1,7 @@ +package pitest.test; + +public class Library { + public boolean someLibraryMethod() { + return true; + } +} diff --git a/src/funcTest/resources/testProjects/testFixtures/src/test/java/pitest/test/LibraryTest.java b/src/funcTest/resources/testProjects/testFixtures/src/test/java/pitest/test/LibraryTest.java new file mode 100644 index 00000000..64fac064 --- /dev/null +++ b/src/funcTest/resources/testProjects/testFixtures/src/test/java/pitest/test/LibraryTest.java @@ -0,0 +1,13 @@ +package pitest.test; + +import org.junit.Test; +import pitest.test.Library; + +import static org.junit.Assert.*; + +public class LibraryTest { + @Test public void testSomeLibraryMethod() { + Library classUnderTest = new Library(); + assertTrue("someLibraryMethod should return 'true'", classUnderTest.someLibraryMethod()); + } +} diff --git a/src/main/groovy/info/solidsoft/gradle/pitest/PitestPlugin.groovy b/src/main/groovy/info/solidsoft/gradle/pitest/PitestPlugin.groovy index e5708d08..07bb182b 100644 --- a/src/main/groovy/info/solidsoft/gradle/pitest/PitestPlugin.groovy +++ b/src/main/groovy/info/solidsoft/gradle/pitest/PitestPlugin.groovy @@ -170,19 +170,20 @@ class PitestPlugin implements Plugin { task.sourceDirs.setFrom(extension.mainSourceSets.map { mainSourceSet -> mainSourceSet*.allSource*.srcDirs }) task.detectInlinedCode.set(extension.detectInlinedCode) task.timestampedReports.set(extension.timestampedReports) + Callable> allMutableCodePaths = { + calculateBaseMutableCodePaths() + (extension.additionalMutableCodePaths.getOrElse([] as Set) as Set) + } task.additionalClasspath.setFrom({ List testRuntimeClasspath = (extension.testSourceSets.get() as Set)*.runtimeClasspath FileCollection combinedTaskClasspath = project.objects.fileCollection().from(testRuntimeClasspath) FileCollection filteredCombinedTaskClasspath = combinedTaskClasspath.filter { File file -> !extension.fileExtensionsToFilter.getOrElse([]).find { extension -> file.name.endsWith(".$extension") } - } + } + project.files(allMutableCodePaths) return filteredCombinedTaskClasspath } as Callable) task.useAdditionalClasspathFile.set(extension.useClasspathFile) //additionalClasspathFile - separate method - task.mutableCodePaths.setFrom({ - calculateBaseMutableCodePaths() + (extension.additionalMutableCodePaths.getOrElse([] as Set) as Set) - } as Callable>) + task.mutableCodePaths.setFrom(allMutableCodePaths) task.historyInputLocation.set(extension.historyInputLocation) task.historyOutputLocation.set(extension.historyOutputLocation) task.enableDefaultIncrementalAnalysis.set(extension.enableDefaultIncrementalAnalysis) diff --git a/src/test/groovy/info/solidsoft/gradle/pitest/PitestTaskConfigurationSpec.groovy b/src/test/groovy/info/solidsoft/gradle/pitest/PitestTaskConfigurationSpec.groovy index d6edae87..5ab4ff43 100644 --- a/src/test/groovy/info/solidsoft/gradle/pitest/PitestTaskConfigurationSpec.groovy +++ b/src/test/groovy/info/solidsoft/gradle/pitest/PitestTaskConfigurationSpec.groovy @@ -244,7 +244,11 @@ class PitestTaskConfigurationSpec extends BasicProjectBuilderSpec implements Wit project.sourceSets { intTest } project.pitest.testSourceSets = [project.sourceSets.intTest] expect: - task.taskArgumentMap()['classPath'] == assembleSourceSetsClasspathByNameAsStringSet("intTest").join(",") + task.taskArgumentMap()['classPath'] == + ( + assembleSourceSetsClasspathByNameAsStringSet("intTest") + + [new File(project.buildDir, "classes/java/main").absolutePath] + ).join(",") } private Set assembleSourceSetsClasspathByNameAsStringSet(List sourceSetNames) { @@ -254,8 +258,8 @@ class PitestTaskConfigurationSpec extends BasicProjectBuilderSpec implements Wit } private Set assembleSourceSetsClasspathByNameAsStringSet(String sourceSetName) { - return [new File(project.buildDir, "classes//java//${sourceSetName}"), - new File(project.buildDir, "resources//${sourceSetName}") + return [new File(project.buildDir, "classes/java/${sourceSetName}"), + new File(project.buildDir, "resources/${sourceSetName}") ]*.absolutePath } From f897ebff1b7bb7b57c63d84822396374bd2efea1 Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Mon, 3 Aug 2020 10:48:15 +0200 Subject: [PATCH 08/20] Bump byte-buddy from 1.10.13 to 1.10.14 (#224) Bumps [byte-buddy](https://github.com/raphw/byte-buddy) from 1.10.13 to 1.10.14. - [Release notes](https://github.com/raphw/byte-buddy/releases) - [Changelog](https://github.com/raphw/byte-buddy/blob/master/release-notes.md) - [Commits](https://github.com/raphw/byte-buddy/compare/byte-buddy-1.10.13...byte-buddy-1.10.14) Signed-off-by: dependabot-preview[bot] Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com> --- build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index b4f4a48d..a0e046c0 100644 --- a/build.gradle +++ b/build.gradle @@ -42,7 +42,7 @@ dependencies { testImplementation('org.spockframework:spock-junit4:2.0-M3-groovy-2.5') { exclude group: 'org.codehaus.groovy' } - testImplementation 'net.bytebuddy:byte-buddy:1.10.13' //for Spying in Spock + testImplementation 'net.bytebuddy:byte-buddy:1.10.14' //for Spying in Spock funcTestImplementation sourceSets.main.output //to make production plugin classes visible in functional tests (it's not in testCompile configuration) funcTestImplementation sourceSets.test.output From 327bae2d98fbcabedc1b88e385d39a5a53f749d6 Mon Sep 17 00:00:00 2001 From: Piotr Kubowicz Date: Wed, 5 Aug 2020 07:50:18 +0200 Subject: [PATCH 09/20] Refactor paths in PitestTaskConfigurationSpec --- .../pitest/PitestTaskConfigurationSpec.groovy | 35 ++++++++++--------- 1 file changed, 19 insertions(+), 16 deletions(-) diff --git a/src/test/groovy/info/solidsoft/gradle/pitest/PitestTaskConfigurationSpec.groovy b/src/test/groovy/info/solidsoft/gradle/pitest/PitestTaskConfigurationSpec.groovy index 5ab4ff43..7aed66c2 100644 --- a/src/test/groovy/info/solidsoft/gradle/pitest/PitestTaskConfigurationSpec.groovy +++ b/src/test/groovy/info/solidsoft/gradle/pitest/PitestTaskConfigurationSpec.groovy @@ -233,34 +233,37 @@ class PitestTaskConfigurationSpec extends BasicProjectBuilderSpec implements Wit sourceDirs == assembleMainSourceDirAsStringSet().join(",") } - private Set assembleMainSourceDirAsStringSet() { - return ["resources", "java"].collect { String dirName -> - new File(project.projectDir, "src//main//${dirName}") - }*.absolutePath - } - void "should consider testSourceSets in (additional) classpath"() { given: project.sourceSets { intTest } project.pitest.testSourceSets = [project.sourceSets.intTest] expect: - task.taskArgumentMap()['classPath'] == - ( - assembleSourceSetsClasspathByNameAsStringSet("intTest") + - [new File(project.buildDir, "classes/java/main").absolutePath] - ).join(",") + task.taskArgumentMap()['classPath'].split(",") as Set == + [ + sourceSetBuiltJavaClasses("intTest"), + sourceSetBuiltResources("intTest"), + sourceSetBuiltJavaClasses("main") + ] as Set } private Set assembleSourceSetsClasspathByNameAsStringSet(List sourceSetNames) { return sourceSetNames.collectMany { String sourceSetName -> - assembleSourceSetsClasspathByNameAsStringSet(sourceSetName) + [sourceSetBuiltJavaClasses(sourceSetName), sourceSetBuiltResources(sourceSetName)] } as Set } - private Set assembleSourceSetsClasspathByNameAsStringSet(String sourceSetName) { - return [new File(project.buildDir, "classes/java/${sourceSetName}"), - new File(project.buildDir, "resources/${sourceSetName}") - ]*.absolutePath + private Set assembleMainSourceDirAsStringSet() { + return ["resources", "java"].collect { String dirName -> + new File(project.projectDir, "src/main/${dirName}") + }*.absolutePath + } + + private String sourceSetBuiltJavaClasses(String sourceSetName) { + return new File(project.buildDir, "classes/java/${sourceSetName}").absolutePath + } + + private String sourceSetBuiltResources(String sourceSetName) { + return new File(project.buildDir, "resources/${sourceSetName}").absolutePath } } From 4c0d866797cf8773bf7867603a6d0ba49342f379 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20Zaj=C4=85czkowski?= Date: Tue, 18 Aug 2020 18:43:13 +0200 Subject: [PATCH 10/20] Small adjustments after merge --- .../pitest/PitestTaskConfigurationSpec.groovy | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/test/groovy/info/solidsoft/gradle/pitest/PitestTaskConfigurationSpec.groovy b/src/test/groovy/info/solidsoft/gradle/pitest/PitestTaskConfigurationSpec.groovy index 7aed66c2..875939bb 100644 --- a/src/test/groovy/info/solidsoft/gradle/pitest/PitestTaskConfigurationSpec.groovy +++ b/src/test/groovy/info/solidsoft/gradle/pitest/PitestTaskConfigurationSpec.groovy @@ -74,7 +74,13 @@ class PitestTaskConfigurationSpec extends BasicProjectBuilderSpec implements Wit and: //TODO createClasspathFile.readLines().size() == 4 - createClasspathFile.readLines() as Set == assembleSourceSetsClasspathByNameAsStringSet(["main", "test"]) + createClasspathFile.readLines() as Set == + [ + sourceSetBuiltJavaClasses("main"), + sourceSetBuiltResources("main"), + sourceSetBuiltJavaClasses("test"), + sourceSetBuiltResources("test") + ] as Set } void "should pass features configuration to PIT"() { @@ -246,12 +252,6 @@ class PitestTaskConfigurationSpec extends BasicProjectBuilderSpec implements Wit ] as Set } - private Set assembleSourceSetsClasspathByNameAsStringSet(List sourceSetNames) { - return sourceSetNames.collectMany { String sourceSetName -> - [sourceSetBuiltJavaClasses(sourceSetName), sourceSetBuiltResources(sourceSetName)] - } as Set - } - private Set assembleMainSourceDirAsStringSet() { return ["resources", "java"].collect { String dirName -> new File(project.projectDir, "src/main/${dirName}") From f4803e2594785e74c2267b2627f7b728f6597842 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20Zaj=C4=85czkowski?= Date: Tue, 18 Aug 2020 18:46:16 +0200 Subject: [PATCH 11/20] Update changelog about java-test-fixtures --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 50c8c5f7..993eeab5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ ## 1.5.2 - Unreleased + - Support java-test-fixtures plugin - [#223](https://github.com/szpak/gradle-pitest-plugin/pull/223) - PR by [Piotr Kubowicz](https://github.com/pkubowicz) - Add functional test with Spock 2 (using JUnit Platform) - Bump minimal supported PIT version to 1.4.0 - the first version which required Java 8 (May 2018) From bf20dcff32d68f3f5f18f0fec27725f79d2b1d6f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20Zaj=C4=85czkowski?= Date: Tue, 18 Aug 2020 18:46:54 +0200 Subject: [PATCH 12/20] PIT 1.5.2 by default --- CHANGELOG.md | 1 + .../groovy/info/solidsoft/gradle/pitest/PitestPlugin.groovy | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 993eeab5..1b7d02e3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ ## 1.5.2 - Unreleased - Support java-test-fixtures plugin - [#223](https://github.com/szpak/gradle-pitest-plugin/pull/223) - PR by [Piotr Kubowicz](https://github.com/pkubowicz) + - PIT 1.5.2 by default - Add functional test with Spock 2 (using JUnit Platform) - Bump minimal supported PIT version to 1.4.0 - the first version which required Java 8 (May 2018) diff --git a/src/main/groovy/info/solidsoft/gradle/pitest/PitestPlugin.groovy b/src/main/groovy/info/solidsoft/gradle/pitest/PitestPlugin.groovy index 07bb182b..b9a59f4e 100644 --- a/src/main/groovy/info/solidsoft/gradle/pitest/PitestPlugin.groovy +++ b/src/main/groovy/info/solidsoft/gradle/pitest/PitestPlugin.groovy @@ -51,7 +51,7 @@ class PitestPlugin implements Plugin { public final static String PITEST_TASK_NAME = "pitest" public final static String PITEST_CONFIGURATION_NAME = 'pitest' - public final static String DEFAULT_PITEST_VERSION = '1.5.1' + public final static String DEFAULT_PITEST_VERSION = '1.5.2' @Internal public static final GradleVersion MINIMAL_SUPPORTED_GRADLE_VERSION = GradleVersion.version("5.6") //public as used also in regression tests From e554d56b48c94b3c6225711b0899a9ed73bcfc08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20Zaj=C4=85czkowski?= Date: Tue, 18 Aug 2020 18:48:18 +0200 Subject: [PATCH 13/20] Gradle 6.6 in regression tests --- .../functional/PitestPluginGradleVersionFunctionalSpec.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/funcTest/groovy/info/solidsoft/gradle/pitest/functional/PitestPluginGradleVersionFunctionalSpec.groovy b/src/funcTest/groovy/info/solidsoft/gradle/pitest/functional/PitestPluginGradleVersionFunctionalSpec.groovy index 7ee61db3..63673927 100644 --- a/src/funcTest/groovy/info/solidsoft/gradle/pitest/functional/PitestPluginGradleVersionFunctionalSpec.groovy +++ b/src/funcTest/groovy/info/solidsoft/gradle/pitest/functional/PitestPluginGradleVersionFunctionalSpec.groovy @@ -94,7 +94,7 @@ class PitestPluginGradleVersionFunctionalSpec extends AbstractPitestFunctionalSp //TODO: Extract regression tests control mechanism to a separate class (or even better trait) when needed in some other place private static final String REGRESSION_TESTS_ENV_NAME = "PITEST_REGRESSION_TESTS" private static final List GRADLE5_VERSIONS = ["5.6.1", "5.6"] - private static final List GRADLE6_VERSIONS = ["6.5", "6.4", "6.3", "6.2.1", "6.1.1", MINIMAL_SUPPORTED_JAVA13_COMPATIBLE_GRADLE_VERSION.version] + private static final List GRADLE6_VERSIONS = ["6.6", "6.5", "6.4", "6.3", "6.2.1", "6.1.1", MINIMAL_SUPPORTED_JAVA13_COMPATIBLE_GRADLE_VERSION.version] private static final List GRADLE_LATEST_VERSIONS = [GRADLE5_VERSIONS.first(), GRADLE6_VERSIONS.first()] private List resolveRequestedGradleVersions() { From 350e6d0795b3645e9a5cd5e843761d64a591fd58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20Zaj=C4=85czkowski?= Date: Tue, 18 Aug 2020 18:50:08 +0200 Subject: [PATCH 14/20] Switch Gradle wrapper to 6.6 --- CHANGELOG.md | 1 + gradle/wrapper/gradle-wrapper.jar | Bin 58694 -> 58910 bytes gradle/wrapper/gradle-wrapper.properties | 4 ++-- gradlew | 2 ++ gradlew.bat | 1 + 5 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1b7d02e3..6069e07e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ - PIT 1.5.2 by default - Add functional test with Spock 2 (using JUnit Platform) - Bump minimal supported PIT version to 1.4.0 - the first version which required Java 8 (May 2018) + - Upgrade Gradle wrapper to 6.6 ## 1.5.1 - 2020-05-06 diff --git a/gradle/wrapper/gradle-wrapper.jar b/gradle/wrapper/gradle-wrapper.jar index 490fda8577df6c95960ba7077c43220e5bb2c0d9..62d4c053550b91381bbd28b1afc82d634bf73a8a 100644 GIT binary patch delta 6447 zcmY*dbyQSczlH%shY+L(kQ}C6ise@?c@F%#`dE9xT=qM=Dm?$VxD1hrECD1a#01Q8o zMyT3}z+1K>hPE%4doH=x5X;^NP(OFD5GByp;5FQ^bpzkBa(;eudMu7Iyv$DE+N=>p z{3Y5_BP>F3)tXW*Styc(Ji3jnK-giGA_&42fsbZ@#+e+ly3w0VmLC;LA)h1UY(ChA zfwqQ?-@}@S93F|exOv;Se;P|SrYvEG(8q&|ltqvQHO9KgCSwM!Y+#d5eIRq$Mi`pU__N$FTxW@KAWIw= zayY6@9EyxG<_tr&{Wi87m5*mf=u&=;eL1gf{Mt)q8Drick8CcxzLW>cG~TbW)|$*D zYMc|5eZNNzt7O_C1LqgaI`Z0B+2#;3yO;E7N4oMY@~7$4;MRonU+Ca z#*cD!7$u9pZ|3f!-_6rpN}XhAWd`1qiR{e*1CJK1dvBsjUyY@BuT|;EAz}*0uSwT_ zq(g0jXTAK4wsQ>kIKEfRQZw^GIKNRZmV)b;c*Kpc?IvNuq{+eCM4%IBoRUk!JeJ4IVH!pLl+5gQn^$0Fw(WROw~SclOYWbMmvR+x&lYa zrU`5lck*s2zl;n6HEa_E|Btu!_BeeF8T=~0Z-pdJsKtN8nr88*8loznbI`@@8U-bc zCE&MaHH#?LN;6&wU%>->{X&6n*c6ECkP#Bn{lafo9KW+AKK>>f)YfzG#t`XCsl$WX zeS|50l&G{J6yrdD0#njv3|C}K(~azN%1+c#*-JXtZd=Rs-zr)f{Mneaqpgewz^3OM5FaDaH3?RpqMyL}=5sFu_zcDc^E~=$H zp`mutZ0ahrf32c`6ROBh&lI`>vuFJE*(NVpjr~^d53MZ0v$G#mHqBLpZ_=3?pNjHc zq`Dn6xbc32BSg`U@YE?)%%`LvRRWt@NnS4GS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I2q-97R&9|8Ij2^?^DGQK_oiqZS2$!-rzVqn=~d~TS{n&I+svxt4dWO zT?K0)JEx>9E7saW8h!5+MmAkC`g~v*@ z6VKn0>eZdon>BH(O$mACnxk3D?vSlCFFnvZ#+&hUs)Wr!aP{<@|oc^G>bJk59^xhmz!RA%|K_$o)V`D@gVs>@bSmXVID_PQXp znfja8U01+t3V!o{8ZKi~G@#q$KrAH-Ks3$G{Qo}H|N1ijJMsgZDgOmM1O$Fi0>0CX zpbAzXhYbP@PV;~=*nn7eQGjoT2b9nGFNg-PpHT$a@?7JL7I&pmkmclS7#Y#zRYg_`D0h47O z&|%88tXNh8{Yk$@@*HA-B9r#tDkY$>!U#Ie`j1TupjRn@;(ykyyld-zJ{@qm!UG~I zxR#ZxV8CEi5JXV?ANc~bS9*;MYtkTvifc5iynmg!XpIr%SN*R#E?|3&2QVs~N02d=N!1;GdfNGr)gc$|K#-y*M=Ra9B4#cmk-naoQuS*cWnE3C4 F{|nTN-B$nr diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index 31620615..4f3af9c1 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,6 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-6.5-all.zip -distributionSha256Sum=c9910513d0eed63cd8f5c7fec4cb4a05731144770104a0871234a4edc3ba3cef +distributionUrl=https\://services.gradle.org/distributions/gradle-6.6-all.zip +distributionSha256Sum=83fa7c3e5ab84c3c5c4a04fb16947338209efa9aab1f6bf09a5d0e3d2ed87742 zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists diff --git a/gradlew b/gradlew index 2fe81a7d..fbd7c515 100755 --- a/gradlew +++ b/gradlew @@ -82,6 +82,7 @@ esac CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar + # Determine the Java command to use to start the JVM. if [ -n "$JAVA_HOME" ] ; then if [ -x "$JAVA_HOME/jre/sh/java" ] ; then @@ -129,6 +130,7 @@ fi if [ "$cygwin" = "true" -o "$msys" = "true" ] ; then APP_HOME=`cygpath --path --mixed "$APP_HOME"` CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` + JAVACMD=`cygpath --unix "$JAVACMD"` # We build the pattern for arguments to be converted via cygpath diff --git a/gradlew.bat b/gradlew.bat index 62bd9b9c..5093609d 100644 --- a/gradlew.bat +++ b/gradlew.bat @@ -84,6 +84,7 @@ set CMD_LINE_ARGS=%* set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar + @rem Execute Gradle "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% From d0f0423fbd76511bba372a4fc2d15d73ac76e903 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20Zaj=C4=85czkowski?= Date: Tue, 18 Aug 2020 18:54:27 +0200 Subject: [PATCH 15/20] Remove obsolete Gradle 4.x compatibility hack Fixes #217. --- src/main/groovy/info/solidsoft/gradle/pitest/PitestTask.groovy | 1 - 1 file changed, 1 deletion(-) diff --git a/src/main/groovy/info/solidsoft/gradle/pitest/PitestTask.groovy b/src/main/groovy/info/solidsoft/gradle/pitest/PitestTask.groovy index 5e8eed27..49955578 100644 --- a/src/main/groovy/info/solidsoft/gradle/pitest/PitestTask.groovy +++ b/src/main/groovy/info/solidsoft/gradle/pitest/PitestTask.groovy @@ -326,7 +326,6 @@ class PitestTask extends JavaExec { @Override void exec() { - //Workaround for compatibility with Gradle <4.0 due to setArgs(List) and setJvmArgs(List) added in Gradle 4.0 args = argumentsForPit() jvmArgs = ((List) getMainProcessJvmArgs().getOrNull() ?: getJvmArgs()) classpath = getLaunchClasspath() From 1629a693780a369bb10087cd191b85581c25cd9a Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Tue, 18 Aug 2020 18:58:24 +0200 Subject: [PATCH 16/20] Bump gradle-nexus-staging-plugin from 0.21.2 to 0.22.0 (#226) Bumps gradle-nexus-staging-plugin from 0.21.2 to 0.22.0. Signed-off-by: dependabot-preview[bot] Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com> --- build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index a0e046c0..645d77cc 100644 --- a/build.gradle +++ b/build.gradle @@ -15,7 +15,7 @@ buildscript { } dependencies { classpath 'info.solidsoft.gradle:cdeliveryboy:0.8.0' - classpath 'io.codearte.gradle.nexus:gradle-nexus-staging-plugin:0.21.2' //override version for more reliable releasing from Travis + classpath 'io.codearte.gradle.nexus:gradle-nexus-staging-plugin:0.22.0' //override version for more reliable releasing from Travis classpath 'com.gradle.publish:plugin-publish-plugin:0.12.0' classpath 'com.github.ben-manes:gradle-versions-plugin:0.28.0' } From 37c4c3a97c46095e701679894e9c932a4304ffaf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20Zaj=C4=85czkowski?= Date: Tue, 18 Aug 2020 19:03:00 +0200 Subject: [PATCH 17/20] Remove increased timeout on releasing. gradle-nexus-staging-plugin 0.22.0 already covers that: https://github.com/Codearte/gradle-nexus-staging-plugin/commit/543d5ee866fceea6c81385571f4554598facfc1c --- gradle/cdeliveryboy-release.gradle | 2 -- 1 file changed, 2 deletions(-) diff --git a/gradle/cdeliveryboy-release.gradle b/gradle/cdeliveryboy-release.gradle index 2b8f6117..345425e5 100644 --- a/gradle/cdeliveryboy-release.gradle +++ b/gradle/cdeliveryboy-release.gradle @@ -16,8 +16,6 @@ cDeliveryBoy { nexusStaging { packageGroup = "info.solidsoft" stagingProfileId = "34a3a5beeaa96" - numberOfRetries = 40 - delayBetweenRetriesInMillis = 3000 } scmVersion { From c03959b69364e8f1cd2eb6f18ff6069c868ccab2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20Zaj=C4=85czkowski?= Date: Tue, 18 Aug 2020 19:03:04 +0200 Subject: [PATCH 18/20] Trigger release [#DO_RELEASE] From 16873cb7a67b2b21287ba65c0ac89c7266f2d659 Mon Sep 17 00:00:00 2001 From: Szpak CI Bot Date: Tue, 18 Aug 2020 17:11:26 +0000 Subject: [PATCH 19/20] Release version: 1.5.2 [ci skip] Powered by CDeliveryBoy. --- CHANGELOG.md | 2 +- README.md | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6069e07e..0290e764 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ # gradle-pitest-plugin changelog -## 1.5.2 - Unreleased +## 1.5.2 - 2020-08-18 - Support java-test-fixtures plugin - [#223](https://github.com/szpak/gradle-pitest-plugin/pull/223) - PR by [Piotr Kubowicz](https://github.com/pkubowicz) - PIT 1.5.2 by default diff --git a/README.md b/README.md index 43495403..88c2c6ca 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ Add gradle-pitest-plugin to the `plugins` configuration in your `build.gradle` f ```groovy plugins { - id 'info.solidsoft.pitest' version '1.5.1' + id 'info.solidsoft.pitest' version '1.5.2' } ``` @@ -47,7 +47,7 @@ buildscript { //maven { url 'https://oss.sonatype.org/content/repositories/snapshots/' } } dependencies { - classpath 'info.solidsoft.gradle.pitest:gradle-pitest-plugin:1.5.1' + classpath 'info.solidsoft.gradle.pitest:gradle-pitest-plugin:1.5.2' } } ``` @@ -152,7 +152,7 @@ buildscript { mavenCentral() } dependencies { - classpath 'info.solidsoft.gradle.pitest:gradle-pitest-plugin:1.5.1' + classpath 'info.solidsoft.gradle.pitest:gradle-pitest-plugin:1.5.2' } } @@ -226,7 +226,7 @@ Starting with this release the configuration required to use PIT with JUnit 5 ha ```groovy plugins { id 'java' - id 'info.solidsoft.pitest' version '1.5.1' + id 'info.solidsoft.pitest' version '1.5.2' } pitest { @@ -247,7 +247,7 @@ To enable PIT plugins, it is enough to add it to the pitest configuration in the ```groovy plugins { id 'java' - id 'info.solidsoft.pitest' version '1.5.1' + id 'info.solidsoft.pitest' version '1.5.2' } repositories { From d0327542f64f85502a6694f9b41182fef1b4fc10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karol=20Wr=C3=B3tniak?= Date: Wed, 19 Aug 2020 01:29:15 +0200 Subject: [PATCH 20/20] Release 0.2.5 --- CHANGELOG.md | 5 +++++ README.md | 28 +++++++++++++++------------- gradle.properties | 2 +- 3 files changed, 21 insertions(+), 14 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 68e7b24b..9033de68 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +# 0.2.5 - 2020-08-19 +- Merge upstream changes 16873cb7a67b2b21287ba65c0ac89c7266f2d659 +- Add compatiblity witn Anroid Gradle Plugin 4 [#64](https://github.com/koral--/gradle-pitest-plugin/issue/64) +- Fix report directory parameter handling [#63](https://github.com/koral--/gradle-pitest-plugin/issue/63) + # 0.2.4 - 2020-05-27 - Fix Gradle 6.4 execution break while trying to change mainClass [#60](https://github.com/koral--/gradle-pitest-plugin/issue/60) diff --git a/README.md b/README.md index a4e8fd63..7d7af066 100644 --- a/README.md +++ b/README.md @@ -7,32 +7,34 @@ which supports Android gradle projects. ```groovy plugins { - id 'pl.droidsonroids.pitest' version '0.2.4' + id 'pl.droidsonroids.pitest' version '0.2.5' +} +``` + +```kotlin +plugins { + id("pl.droidsonroids.pitest") version "0.2.5" } ``` ## With Maven central repository -```groovy +```kotlin buildscript { repositories { mavenCentral() google() - // If you're using a version of Gradle lower than 4.1, you must instead use: - // maven { - // url 'https://maven.google.com' - // } - // An alternative URL is 'https://dl.google.com/dl/android/maven2/' } dependencies { - classpath 'pl.droidsonroids.gradle:gradle-pitest-plugin:0.2.4' + classpath "pl.droidsonroids.gradle:gradle-pitest-plugin:0.2.5" } } -apply plugin: 'com.android.application' -//or apply plugin: 'com.android.library' -//or apply plugin: 'com.android.test' - -apply plugin: 'pl.droidsonroids.pitest' +plugins { + id("com.android.application") + //or id("com.android.library") + //or id("com.android.test") + id("pl.droidsonroids.pitest") +} ``` # Usage diff --git a/gradle.properties b/gradle.properties index 38882dbd..55d9cc93 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,4 +1,4 @@ -VERSION=0.2.4 +VERSION=0.2.5 GROUP=pl.droidsonroids.gradle POM_DESCRIPTION=Gradle plugin for PIT Mutation Testing in Android projects POM_URL=https://github.com/koral--/gradle-pitest-plugin