-
Notifications
You must be signed in to change notification settings - Fork 11
/
build.gradle
92 lines (77 loc) · 2.31 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath "info.solidsoft.gradle.pitest:gradle-pitest-plugin:1.1.11"
}
}
apply plugin: "java"
apply plugin: "groovy"
apply plugin: "eclipse"
apply plugin: "idea"
apply plugin: "checkstyle"
apply plugin: "maven-publish"
apply plugin: "info.solidsoft.pitest"
repositories {
mavenCentral()
}
sourceCompatibility = 1.8
targetCompatibility = 1.8
group = "io.smartcat"
version = theVersion
description = "Contextual data generator"
dependencies {
compile "org.slf4j:slf4j-api:$slf4jApiVersion"
compile "ch.qos.logback:logback-classic:$logbackClassicVersion"
compile "org.apache.commons:commons-math3:$commonsMath3Version"
compile "com.fasterxml.jackson.core:jackson-databind:$jacksonDatabindVersion"
compile "org.parboiled:parboiled-java:$parboiledJavaVersion"
compile "org.yaml:snakeyaml:$snakeyamlVersion"
compile "org.apache.commons:commons-csv:$commonsCsvVersion"
testCompile "junit:junit:$junitVersion"
testCompile "org.spockframework:spock-core:$spockCoreVersion"
testCompile "cglib:cglib-nodep:$cglibNodepVersion"
testCompile "org.codehaus.groovy:groovy-all:$groovyAllVersion"
}
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
artifact tasks.packageSource
artifact tasks.packageJavadoc
}
}
repositories {
maven {
credentials {
username project.hasProperty("bintrayUsername") ? bintrayUsername : null
password project.hasProperty("bintrayPassword") ? bintrayPassword : null
}
url "https://api.bintray.com/maven/smartcat-labs/maven/ranger/;publish=1"
}
}
}
checkstyle {
configFile = file("checkstyle.xml")
configProperties = properties(file("checkstyle.properties"))
}
task packageSource(type: Jar) {
classifier "sources"
from sourceSets.main.allJava
}
task packageJavadoc(type: Jar) {
classifier = "javadoc"
from javadoc
}
tasks.find { it.name == "pitest" }.dependsOn test
check.dependsOn "pitest"
build.dependsOn packageJavadoc
def properties(file) {
Properties props = new Properties()
props.load(new FileInputStream(file))
props
}
task wrapper(type: Wrapper) {
gradleVersion = "3.5"
}