Skip to content

Commit ce6127f

Browse files
committed
Update dependencies, fix sources for non-Android
1 parent 726f7bc commit ce6127f

File tree

4 files changed

+10
-11
lines changed

4 files changed

+10
-11
lines changed

gradle/wrapper/gradle-wrapper.jar

84 Bytes
Binary file not shown.
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-4.9-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-5.5.1-bin.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

pitest-init.groovy

+4-7
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ buildscript {
55
jcenter()
66
}
77
dependencies {
8-
classpath 'org.pitest:pitest:1.3.2'
9-
classpath 'org.pitest:pitest-command-line:1.3.2'
8+
classpath 'org.pitest:pitest:1.4.9'
9+
classpath 'org.pitest:pitest-command-line:1.4.9'
1010
}
1111
}
1212

@@ -19,11 +19,8 @@ gradle.projectsEvaluated {
1919
description 'Runs mutation tests using pitest tool.'
2020
}
2121
project.tasks.test.dependsOn.each { testTask ->
22-
if (testTask.metaClass.respondsTo(testTask, 'startsWith') &&
23-
testTask.startsWith('test')) {
24-
addPitestTask(project, testTask)
25-
project.pitest.dependsOn += [project.tasks."pi$testTask"]
26-
}
22+
addPitestTask(project, testTask.name)
23+
project.pitest.dependsOn += [project.tasks."pi${testTask.name}"]
2724
}
2825
}
2926
}

sources-jar-init.groovy

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
projectsEvaluated {
22
rootProject.subprojects {
3-
task sourcesJar(type:Jar) {
4-
classifier = 'sources'
5-
from android.sourceSets.main.java.sourceFiles
3+
if (it.hasProperty('android')) {
4+
task sourcesJar(type:Jar) {
5+
classifier = 'sources'
6+
from android.sourceSets.main.javaDirectories
7+
}
68
}
79
}
810
}

0 commit comments

Comments
 (0)