-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
68 lines (54 loc) · 1.89 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
buildscript {
gradle.ext.buildScriptDeps = { ScriptHandler sh, Object... deps ->
sh.repositories {
maven { url 'https://plugins.gradle.org/m2/' }
}
sh.dependencies {
deps.each { dep -> classpath(dep) }
}
}
gradle.ext.buildScriptDeps(it, 'org.ajoberstar:gradle-git:1.7.2')
}
project.group = 'com.github.cseppento'
project.version = '0.1-SNAPSHOT'
apply from: "${project.rootDir}/gradle/build-scan.gradle"
apply plugin: 'org.ajoberstar.grgit'
project.ext.currentVcsBranch = grgit.branch.current.fullName.replaceFirst('refs/heads/', '')
if (currentVcsBranch != 'master' && currentVcsBranch != 'develop') {
project.version += '-' + currentVcsBranch.replace('/', '-')
}
apply plugin: 'java'
apply plugin: 'groovy'
apply plugin: 'java-gradle-plugin'
apply from: "${project.rootDir}/gradle/artifacts.gradle"
apply from: "${project.rootDir}/gradle/testing.gradle"
apply from: "${project.rootDir}/gradle/ide.gradle"
apply from: "${project.rootDir}/gradle/codacy.gradle"
apply from: "${project.rootDir}/gradle/sonar.gradle"
project.sourceCompatibility = 1.8
project.targetCompatibility = 1.8
compileJava { options.encoding = 'UTF-8' }
javadoc { options.encoding = 'UTF-8' }
repositories {
mavenCentral()
}
dependencies {
compile gradleApi()
testCompile 'junit:junit:4.+'
testCompile 'org.hamcrest:hamcrest-all:1.+'
testCompile 'org.mockito:mockito-core:2.+'
testCompile 'com.google.guava:guava:22.0'
functionalTestCompile localGroovy()
functionalTestCompile('org.spockframework:spock-core:1.1-groovy-2.4') {
exclude group: 'org.codehaus.groovy', module: 'groovy-all'
}
}
gradlePlugin {
plugins {
evosuite {
id = 'com.github.cseppento.evosuite'
implementationClass = 'com.github.cseppento.gradle.evosuite.EvoSuitePlugin'
}
}
testSourceSets sourceSets.functionalTest
}