forked from mjedynak/pit-idea-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
69 lines (57 loc) · 1.69 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
apply plugin: 'groovy'
apply plugin: 'codenarc'
apply plugin: "jacoco"
apply plugin: 'idea'
apply from: 'idea.gradle'
// --- properties ---
ext.ideaInstallationPath = 'C:/Users/Michal/AppData/Local/JetBrains/Toolbox/apps/IDEA-C/ch-0/182.3911.36'
ext.ideaJdk = 'IntelliJ IDEA Community Edition IC-182.3911.36'
ext.pitVersion = '1.4.2'
sourceCompatibility = 1.6
// --- properties ---
// workaround for http://issues.gradle.org/browse/GRADLE-2538
sourceSets.main.java.srcDirs = []
sourceSets.main.groovy.srcDir 'src/main/java'
jacoco {
toolVersion = "0.7.0.201403182114"
}
jacocoTestReport {
additionalSourceDirs = files(sourceSets.main.allJava.srcDirs)
}
build.dependsOn jacocoTestReport
repositories {
mavenCentral()
mavenLocal()
}
configurations {
releaseJars
}
task dist(type: Zip) {
from(jar.outputs.files) {
into('pit-idea-plugin/lib')
}
from(configurations.releaseJars) {
into('pit-idea-plugin/lib')
}
archiveName 'pit-idea-plugin.zip'
dependsOn build
}
dependencies {
releaseJars("org.pitest:pitest-command-line:$pitVersion") { transitive = false }
releaseJars("org.pitest:pitest-entry:$pitVersion") { transitive = false }
releaseJars("org.pitest:pitest:$pitVersion") { transitive = false }
releaseJars("com.thoughtworks.xstream:xstream:1.4.8")
compile fileTree(dir: ideaInstallationPath + '/lib', include: '*.jar')
compile 'org.codehaus.groovy:groovy-all:2.4.15'
testCompile ('org.spockframework:spock-core:0.7-groovy-2.0') {
exclude group: 'org.codehaus.groovy'
}
testCompile 'org.objenesis:objenesis:1.2'
}
jar {
metaInf {
from('/META-INF') {
include 'plugin.xml'
}
}
}