forked from mkotsur/restito
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
116 lines (91 loc) · 2.57 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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
// version = '0.9.2' // Last released version
version '0.1.0-SNAPSHOT'
group 'com.xebialabs.restito'
defaultTasks 'build'
apply plugin: 'java'
apply plugin: 'scala'
apply plugin: 'maven'
apply plugin: 'signing'
apply plugin: 'idea'
sourceCompatibility = '1.8'
targetCompatibility = '1.8'
repositories {
mavenCentral()
mavenLocal()
}
dependencies {
testCompile 'org.scala-lang:scala-library:2.11.11'
compile 'junit:junit:4.12'
compile 'org.slf4j:slf4j-api:1.7.21'
testCompile 'org.slf4j:slf4j-simple:1.7.21'
testCompile 'org.mockito:mockito-core:1.10.17'
compile 'org.glassfish.grizzly:grizzly-http-server:2.3.25'
compile 'com.jayway.jsonpath:json-path:2.1.0'
compile 'org.apache.mina:mina-core:2.0.13'
testCompile 'org.hamcrest:hamcrest-all:1.3'
testCompile ('com.jayway.restassured:rest-assured:2.8.0')
testCompile "io.spray:spray-client_2.11:1.3.2"
testCompile "com.typesafe.akka:akka-actor_2.11:2.3.9"
testCompile "org.scalatest:scalatest_2.11:2.2.6"
}
tasks.withType(JavaCompile) { compile ->
compile.options.compilerArgs << '-Xlint:deprecation'
compile.options.compilerArgs << '-Xlint:unchecked'
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
javadoc {
if(JavaVersion.current() == JavaVersion.VERSION_1_8) {
options.addStringOption('Xdoclint:none', '-quiet')
}
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
artifacts {
archives sourcesJar
archives javadocJar
}
signing {
required { gradle.taskGraph.hasTask('uploadArchives') }
sign configurations.archives
}
uploadArchives {
if (project.hasProperty("sonatypeUsername")) {
repositories {
mavenDeployer {
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }
repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2/") {
authentication(userName: sonatypeUsername, password: sonatypePassword)
}
pom.project {
name 'Restito'
packaging 'jar'
description 'Restito - testing framework for rest clients'
url 'http://mkotsur.github.com/restito'
scm {
url 'scm:git@github.com:mkotsur/restito.git'
connection 'scm:git@github.com:mkotsur/restito.git'
developerConnection 'scm:git@github.com:mkotsur/restito.git'
}
licenses {
license {
name 'MIT'
url 'https://raw.github.com/mkotsur/restito/master/LICENSE'
distribution 'repo'
}
}
developers {
developer {
id 'mkotsur'
name 'Mykhailo Kotsur'
}
}
}
}
}
}
}