-
Notifications
You must be signed in to change notification settings - Fork 58
/
build.gradle
55 lines (48 loc) · 1.61 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
buildscript {
repositories {
mavenLocal()
mavenCentral()
}
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.3-SNAPSHOT'
}
}
subprojects {
apply plugin: 'java'
repositories {
mavenCentral()
}
dependencies {
testImplementation 'junit:junit:4.12'
}
version = '1.0'
group = 'pitest.sample.multimodule'
}
configure(project(":shared")) {
dependencies {
implementation 'org.slf4j:slf4j-api:1.7.25'
implementation 'org.slf4j:slf4j-nop:1.7.25'
}
}
configure(project(':itest')) {
apply plugin: "info.solidsoft.pitest"
dependencies {
implementation project(':shared')
}
//Additional configuration to resolve :shared project JAR as mutable code path for PIT
configurations {
mutableCodeBase { transitive false }
dependencies {
mutableCodeBase.extendsFrom(project(':shared').configurations.implementation)
}
}
pitest {
timestampedReports = false
mainSourceSets = [project.sourceSets.main, project(':shared').sourceSets.main]
//Generates deprecation warning in Gradle 5.6+
//Asked for recommendation: https://discuss.gradle.org/t/accessing-other-module-dependency-files-without-mutable-project-state-warnings/35048
// additionalMutableCodePaths = configurations.mutableCodeBase.files
additionalMutableCodePaths = project(':shared').jar.outputs.files.getFiles() //Workaround
}
}