-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
193 lines (168 loc) · 6.04 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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
/*
* web: build.gradle
* XNAT https://www.xnat.org
* Copyright (c) 2005-2021, Washington University School of Medicine and Howard Hughes Medical Institute
* All Rights Reserved
*
* Released under the Simplified BSD.
*/
buildscript {
ext {
vXnat = "1.8.10"
}
}
plugins {
id "jacoco"
id "java"
id "maven-publish"
id "idea"
id "eclipse"
id "io.spring.dependency-management" version "1.0.11.RELEASE"
id "net.linguica.maven-settings" version "0.5"
}
group "org.nrg.xnat.pipeline"
version vXnat
description = "XNAT Pipeline Client"
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
mavenLocal()
maven { url "https://nrgxnat.jfrog.io/nrgxnat/libs-release" }
maven { url "https://nrgxnat.jfrog.io/nrgxnat/libs-snapshot" }
mavenCentral()
}
configurations.all {
exclude group: "net.sf.saxon"
exclude module: "jmxtools"
exclude module: "jms"
exclude module: "mail"
exclude module: "jmxri"
exclude module: "javax.mail"
}
dependencyManagement.imports {
mavenBom "org.nrg:parent:${project.version}"
}
dependencies {
implementation("org.nrg.xnat.pipeline:xnat-tools") {
transitive = false
}
implementation("org.nrg.xnat.pipeline:xnat-pipeline") {
transitive = false
}
implementation("org.nrg.xnat:xnat-data-models") {
transitive = false
}
implementation("org.nrg.xdat:core") {
transitive = false
}
implementation "org.nrg.xnat:plexiviewer"
implementation "org.nrg.xnat.pipeline:tools:1.6"
implementation "org.nrg:pipelineBase:1.0"
implementation "org.nrg:pipelineWorkflow:1.0"
implementation "org.nrg:pipelineCNDAXNAT:1.0"
implementation "org.ggf:drmaa:1.0"
implementation "org.lsmp:djep:1.1.0"
implementation "net.imagej:ij:1.50e"
implementation "gnu.getopt:java-getopt:1.0.13"
implementation "edu.ucar:netcdf:4.2"
implementation "javax.activation:activation:1.1.1"
implementation "javax.mail:javax.mail-api:1.5.5"
implementation "com.jcraft:jsch:0.1.44-1"
implementation "javax.xml:jsr173:1.0"
implementation "org.ostermiller:utils:1.07.00"
implementation "xml-resolver:xml-resolver:1.2"
implementation "xalan:xalan:2.7.1"
implementation "xerces:xercesImpl:2.9.1"
implementation "org.apache.xmlbeans:xmlbeans-xpath:2.6.0"
implementation "commons-discovery:commons-discovery:0.5"
implementation "commons-logging:commons-logging:1.1.1"
implementation "commons-collections:commons-collections:3.2.1"
implementation "commons-lang:commons-lang:2.6"
implementation "jfree:jcommon:1.0.15"
implementation "axis:axis"
implementation "org.restlet:org.restlet"
implementation "com.noelios.restlet:com.noelios.restlet"
implementation "com.noelios.restlet:com.noelios.restlet.ext.net:1.1.10"
implementation "log4j:log4j"
implementation "org.apache.commons:commons-email:1.4"
implementation "jfree:jfreechart:1.0.13"
testImplementation "junit:junit"
}
jacoco {
toolVersion = dependencyManagement.importedProperties["jacoco.version"] as String
}
jacocoTestReport {
dependsOn test
reports {
xml.enabled = false
csv.enabled = false
}
}
task sourceJar(type: Jar, dependsOn: classes) {
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn: javadoc) {
from javadoc.destinationDir
}
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
artifact sourceJar {
classifier "sources"
}
artifact javadocJar {
classifier "javadoc"
}
pom.withXml {
def root = asNode()
root.appendNode("name", "XNAT Pipeline")
root.appendNode("description", "")
root.appendNode("url", "https://github.com/nrgxnat/pipeline-client")
root.appendNode("inceptionYear", "2019")
def scm = root.appendNode("scm")
scm.appendNode("url", "https://bitbucket.org/xnatdev/plexiviewer")
scm.appendNode("connection", "scm:https://github.com/nrgxnat/pipeline-client.git")
scm.appendNode("developerConnection", "scm:git://github.com/nrgxnat/pipeline-client.git")
def license = root.appendNode("licenses").appendNode("license")
license.appendNode("name", "Simplified BSD 2-Clause License")
license.appendNode("url", "http://xnat.org/about/license.php")
license.appendNode("distribution", "repo")
def developers = root.appendNode("developers")
def rherrick = developers.appendNode("developer")
rherrick.appendNode("id", "rherrick")
rherrick.appendNode("name", "Rick Herrick")
rherrick.appendNode("email", "[email protected]")
def mohanna = developers.appendNode("developer")
mohanna.appendNode("id", "mohannar")
mohanna.appendNode("name", "Mohanna Ramaratnam")
mohanna.appendNode("email", "[email protected]")
def flavin = developers.appendNode("developer")
flavin.appendNode("id", "flavin")
flavin.appendNode("name", "John Flavin")
flavin.appendNode("email", "[email protected]")
}
}
}
repositories {
maven {
if (project.version.endsWith("-SNAPSHOT")) {
url "https://nrgxnat.jfrog.io/nrgxnat/libs-snapshot-local"
} else {
url "https://nrgxnat.jfrog.io/nrgxnat/libs-release-local"
}
// The value for name must match <id> in ~/.m2/settings.xml
name = "XNAT_Artifactory"
}
}
}
def propertyWithDefault(String property, Object value) {
hasProperty(property) ? getProperty(property) : value
}
if (JavaVersion.current().isJava8Compatible()) {
allprojects {
tasks.withType(Javadoc) {
options.addStringOption("Xdoclint:none", "-quiet")
}
}
}