-
-
Notifications
You must be signed in to change notification settings - Fork 60
/
build.gradle
129 lines (105 loc) · 2.54 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
117
118
119
120
121
122
123
124
125
126
127
128
129
plugins {
id 'java-library'
id 'scala'
id 'maven-publish'
id 'signing'
id 'idea'
}
// version = '1.1.1' // Last released version
version '1.1.2-SNAPSHOT'
group 'com.xebialabs.restito'
defaultTasks 'build'
sourceCompatibility = '11'
targetCompatibility = '11'
repositories {
mavenCentral()
mavenLocal()
}
dependencies {
testCompileOnly 'org.scala-lang:scala-library:2.12.16'
testImplementation 'org.slf4j:slf4j-simple:1.7.21'
testImplementation 'org.mockito:mockito-core:4.8.0'
testImplementation 'org.hamcrest:hamcrest:2.2'
testImplementation 'io.rest-assured:rest-assured:5.2.0'
testImplementation"com.typesafe.akka:akka-actor_2.12:2.5.17"
testImplementation"com.typesafe.akka:akka-stream_2.12:2.5.17"
testImplementation"com.typesafe.akka:akka-http_2.12:10.1.5"
testImplementation"org.scalatest:scalatest_2.12:3.0.5"
api 'org.glassfish.grizzly:grizzly-http-server:2.3.25'
implementation 'junit:junit:4.13.2'
implementation 'org.slf4j:slf4j-api:1.7.21'
implementation 'com.jayway.jsonpath:json-path:2.7.0'
implementation 'org.apache.mina:mina-core:2.1.6'
}
java {
withSourcesJar()
withJavadocJar()
}
test {
testLogging {
events "PASSED", "SKIPPED", "FAILED"
exceptionFormat 'full'
}
}
tasks.withType(JavaCompile) { compile ->
compile.options.compilerArgs << '-Xlint:deprecation'
compile.options.compilerArgs << '-Xlint:unchecked'
}
artifacts {
archives sourcesJar
archives javadocJar
}
publishing {
publications {
mavenJava(MavenPublication) {
artifactId = 'restito'
from components.java
pom {
name = 'Restito'
description = 'Restito - testing framework for rest clients'
packaging = 'jar'
url = 'http://mkotsur.github.com/restito'
licenses {
license {
name = 'MIT'
url = 'https://raw.github.com/mkotsur/restito/master/LICENSE'
}
}
developers {
developer {
id = 'mkotsur'
name = 'Mike Kotsur'
email = '[email protected]'
}
}
scm {
url = 'scm:[email protected]:mkotsur/restito.git'
connection = 'scm:[email protected]:mkotsur/restito.git'
developerConnection = 'scm:[email protected]:mkotsur/restito.git'
}
}
}
}
repositories {
if (project.hasProperty("sonatypeUsername")) {
maven {
url = "https://oss.sonatype.org/service/local/staging/deploy/maven2/"
credentials {
username = sonatypeUsername
password = sonatypePassword
}
mavenContent {
releasesOnly()
}
}
}
mavenLocal {
mavenContent {
snapshotsOnly()
}
}
}
}
signing {
sign publishing.publications.mavenJava
}