-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
123 lines (109 loc) · 4.26 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
group 'com.github.smallcreep'
version(project.hasProperty('Ver') ? project.property('Ver') : '1.0-SNAPSHOT')
buildscript {
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
jcenter()
}
dependencies {
classpath "com.gradle:build-scan-plugin:1.8"
}
}
apply from: rootProject.file('gradle/basic.gradle')
apply plugin: 'maven'
repositories {
mavenCentral()
}
jar {
def buildVersion = project.hasProperty('build') ? project.property('build') : '1.0-SNAPSHOT'
manifest {
attributes 'Cedato-Version': version,
'Cedato-Build': buildVersion,
'Cedato-Date': new Date()
}
}
project.ext {
junitVersion = "4.12"
lombokVersion = "1.16.16"
jcabiAspectsVersion = "0.22.6"
javaxJsonVersion = "1.1"
jcabiManifestsVersion = "1.1"
jcabiHttpVersion = "1.17"
jsr311ApiVersion = "1.1.1"
hamcrestVersion = "1.3"
grizzlyServletWebserverVersion = "2.0.0-M3"
jerseyClientVersion = "1.19.4"
log4jVersion = "2.8.2"
httpclientVersion = "4.5.3"
equalsverifierVersion = "2.3"
cactoosVersion = "0.20"
}
dependencies {
compile "org.projectlombok:lombok:$lombokVersion"
compile "com.jcabi:jcabi-aspects:$jcabiAspectsVersion"
compile "javax.json:javax.json-api:$javaxJsonVersion"
compile "com.jcabi:jcabi-manifests:$jcabiManifestsVersion"
compile "com.jcabi:jcabi-http:$jcabiHttpVersion"
compile "javax.ws.rs:jsr311-api:$jsr311ApiVersion"
compile "org.hamcrest:hamcrest-core:$hamcrestVersion"
compile "org.hamcrest:hamcrest-library:$hamcrestVersion"
compile "org.cactoos:cactoos:$cactoosVersion"
runtime "com.sun.jersey:jersey-client:$jerseyClientVersion"
runtime "org.glassfish:javax.json:$javaxJsonVersion"
testCompile "junit:junit:$junitVersion"
testCompile "nl.jqno.equalsverifier:equalsverifier:$equalsverifierVersion"
testRuntime "com.sun.grizzly:grizzly-servlet-webserver:$grizzlyServletWebserverVersion"
testRuntime "org.apache.httpcomponents:httpclient:$httpclientVersion"
testRuntimeClasspath "org.apache.logging.log4j:log4j-slf4j-impl:$log4jVersion"
testRuntimeClasspath "org.apache.logging.log4j:log4j-core:$log4jVersion"
}
test {
systemProperties = [
"failsafe.cedato.service" : (project.hasProperty('cedatoService') ? getProperty('cedatoService') : System.getenv("service")),
"failsafe.cedato.secret" : (project.hasProperty('cedatoSecret') ? getProperty('cedatoSecret') : System.getenv("secret")),
"failsafe.cedato.supplyId" : (project.hasProperty('cedatoSupplyId') ? getProperty('cedatoSupplyId') : System.getenv("supplyId")),
"failsafe.cedato.supplyName": (project.hasProperty('cedatoSupplyName') ? getProperty('cedatoSupplyName') : System.getenv("supplyName")),
]
}
uploadArchives {
repositories {
mavenDeployer {
pom.project {
packaging 'jar'
name 'Cedato API Client'
description 'Fluent Api client for Cedato API'
url 'https://github.com/smallcreep/cedato-api-client'
inceptionYear '2017'
licenses {
license {
name 'MIT'
url 'https://raw.githubusercontent.com/smallcreep/cedato-api-client/master/LICENSE'
}
}
developers {
developer {
id '1'
name 'Ilia Rogozhin'
email '[email protected]'
roles {
role 'Architect'
role 'Developer'
}
timezone '+3'
}
}
issueManagement {
system 'GitHub'
url 'https://github.com/smallcreep/cedato-api-client/issues'
}
scm {
connection 'scm:git:[email protected]:smallcreep/cedato-api-client.git'
developerConnection 'scm:git:[email protected]:smallcreep/cedato-api-client.git'
url 'https://github.com/smallcreep/cedato-api-client'
}
}
}
}
}