-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
executable file
·94 lines (85 loc) · 2.37 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
93
94
group = 'com.netuitive'
version = '0.1.31'
ext.shouldSign = project.hasProperty('shouldSign') ? project.getProperty('shouldSign').toBoolean() : false
buildscript {
repositories {
mavenCentral()
jcenter()
}
dependencies {
classpath 'com.bmuschko:gradle-nexus-plugin:2.3.1'
}
}
apply plugin: 'java'
apply plugin: 'distribution'
apply plugin: 'eclipse'
apply plugin: 'idea'
apply plugin: 'maven'
apply plugin: 'com.bmuschko.nexus'
repositories {
mavenCentral()
}
test {
useTestNG {
jvmArgs project.gradle.startParameter.systemPropertiesArgs.entrySet().collect{"-D${it.key}=${it.value}"}
includeGroups 'unit', 'integration'
options {
listeners.add('org.testng.reporters.XMLReporter')
}
}
}
extraArchive {
sources = true
tests = true
javadoc = true
}
nexus {
sign = shouldSign
}
distTar{
from 'build/libs'
}
distZip{
from 'build/libs'
}
modifyPom {
project {
name 'iris'
packaging 'jar'
artifactId 'iris'
description 'Java SDK for the Netuitive REST API'
url 'https://github.com/Netuitive/Iris'
scm {
url 'https://github.com/Netuitive/Iris.git'
connection 'https://github.com/Netuitive/Iris.git'
developerConnection 'https://github.com/Netuitive/Iris.git'
}
licenses {
license {
name 'The Apache Software License, Version 2.0'
url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
distribution 'repo'
}
}
developers {
developer {
id 'jking13'
name 'John King'
}
}
}
}
sourceCompatibility = 1.6
targetCompatibility = 1.6
dependencies {
compile ("org.projectlombok:lombok:1.14.8")
compile ("com.fasterxml.jackson.core:jackson-databind:2.7.2")
compile ("org.apache.httpcomponents:httpclient:4.5.2")
compile ("commons-io:commons-io:2.4")
testCompile("org.mockito:mockito-core:1.9.5")
testCompile("org.springframework:spring-test:4.0.7.RELEASE")
testCompile("org.testng:testng:6.8.8")
}
task wrapper(type: Wrapper) {
gradleVersion = '2.11'
}