This repository was archived by the owner on Feb 20, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
63 lines (53 loc) · 1.78 KB
/
build.gradle
File metadata and controls
63 lines (53 loc) · 1.78 KB
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
String nexusBaseURL = 'https://nexus.discoverfinancial.com:8443'
String nexusPublicRepoURL = nexusBaseURL + '/content/groups/public'
String nexusReleaseRepoURL = nexusBaseURL + '/content/repositories/releases'
String nexusSnapshotRepoURL = nexusBaseURL + '/content/repositories/snapshots'
String nexusThirdpartyRepoURL = nexusBaseURL + '/content/repositories/thirdparty/'
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'maven'
version = '1.0'
group = 'com.discoverfinancial.esqm.sv'
sourceCompatibility = 1.7
targetCompatibility = 1.7
compileJava.options.encoding = "UTF-8"
compileTestJava.options.encoding = "UTF-8"
repositories {
maven {
url nexusBaseURL+'/content/groups/public/'
}
}
dependencies {
compile "com.github.tomakehurst:wiremock:2.6.0"
compile "com.fasterxml.jackson.dataformat:jackson-dataformat-xml:2.6.1"
}
jar {
baseName = 'WireMockWithTransformer'
version = "${version}"
from {
configurations.runtime.collect { it.isDirectory() ? it : zipTree(it) }
}
manifest {
attributes(
'Main-Class': 'org.discover.sv.transformer.WireMockWrapper',
'Implementation-Title': 'WireMockWithTransformer', 'Implementation-Version': version
)
}
}
artifacts {
archives jar
}
uploadArchives {
def nxUsername = project.hasProperty('nexusUsername') ? nexusUsername : "nexusUsernameNotSet"
def nxPassword = project.hasProperty('nexusPassword') ? nexusPassword : "nexusPasswordNotSet"
repositories {
mavenDeployer {
repository(url: nexusReleaseRepoURL) {
authentication(userName: nxUsername, password: nxPassword)
}
snapshotRepository(url: nexusSnapshotRepoURL) {
authentication(userName: nxUsername, password: nxPassword)
}
}
}
}