forked from qcif/xnat-openid-auth-plugin
-
Notifications
You must be signed in to change notification settings - Fork 13
/
build.gradle
170 lines (146 loc) · 4.95 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
/*
* xnat-openid-auth-plugin: build.gradle
*
*/
buildscript {
ext {
vXnat = "1.8.0"
}
}
plugins {
id "application"
id "eclipse"
id "groovy"
id "idea"
id "jacoco"
id "java"
id "maven-publish"
id "com.dorongold.task-tree" version "1.5"
id "com.palantir.git-version" version "0.12.3"
id "io.franzbecker.gradle-lombok" version "4.0.0"
id "io.spring.dependency-management" version "1.0.11.RELEASE"
id "org.nrg.xnat.build.xnat-data-builder" version "1.8.0"
}
group "au.edu.qcif.xnat.openid"
version "1.2.0-SNAPSHOT"
description "XNAT OpenID Authentication Provider"
repositories {
mavenLocal()
mavenCentral()
maven { url "https://nrgxnat.jfrog.io/nrgxnat/libs-release" }
maven { url "https://nrgxnat.jfrog.io/nrgxnat/libs-snapshot" }
}
mainClassName = "ValidateLdap"
configurations {
implementation.extendsFrom(implementAndInclude)
all {
exclude group: "com.sun.media", module: "jai_imageio"
exclude group: "javax.sql", module: "jdbc-stdext"
exclude group: "javax.transaction", module: "jta"
exclude group: "edu.ucar", module: "netcdf"
exclude group: "org.dcm4che"
}
}
dependencyManagement.imports {
mavenBom "org.nrg:parent:${vXnat}"
}
dependencies {
compile group: 'commons-io', name: 'commons-io', version: '2.6'
compile("org.nrg.xnat:web") {
exclude group: "com.fasterxml.jackson.module", module: "jackson-module-parameter-names"
exclude group: "com.fasterxml.jackson.datatype", module: "jackson-datatype-jdk8"
exclude group: "com.fasterxml.jackson.datatype", module: "jackson-datatype-jsr310"
exclude group: "org.apache.activemq", module: "activemq-broker"
exclude group: "org.apache.activemq", module: "activemq-jaas"
exclude group: "org.apache.activemq", module: "activemq-jdbc-store"
exclude group: "org.apache.activemq", module: "activemq-kahadb-store"
exclude group: "org.apache.activemq", module: "activemq-mqtt"
exclude group: "org.apache.activemq", module: "activemq-openwire-legacy"
exclude group: "org.apache.activemq", module: "activemq-spring"
exclude group: "org.apache.activemq", module: "activemq-stomp"
exclude group: "org.apache.activemq.protobuf", module: "activemq-protobuf"
exclude group: "org.apache.activemq", module: "activemq-client"
}
compile "org.nrg:prefs"
compile "org.nrg:framework"
compile "org.springframework:spring-web"
compile "org.springframework.security:spring-security-config"
compile "org.springframework.security:spring-security-web"
compile "org.springframework.security.oauth:spring-security-oauth2"
compile "org.springframework.security:spring-security-jwt"
compile "org.apache.commons:commons-lang3"
compile "org.slf4j:slf4j-api"
testImplementation "junit:junit"
testImplementation "org.springframework:spring-test"
// testImplementation "org.nrg.xnat:web:${vXnat}"
testImplementation "com.github.tomakehurst:wiremock:2.21.0"
testImplementation "org.mockito:mockito-core:2.25.0"
}
java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
jar {
manifest {
attributes "Application-Name": project.description,
"Build-Date": new Date(),
"Implementation-Sha": gitVersion(),
"Implementation-Version": project.version
}
}
compileJava {
options.fork = false
}
jacoco {
toolVersion = dependencyManagement.importedProperties["jacoco.version"]
}
jacocoTestReport {
reports {
xml.enabled = false
csv.enabled = false
html.enabled = true
}
}
task fatJar(type: Jar) {
zip64 true
archiveBaseName.set project.name + "-all"
from {
configurations.implementAndInclude.collect { it.isDirectory() ? it : zipTree(it) }
} {
exclude "META-INF/*.SF", "META-INF/*.DSA", "META-INF/*.RSA"
}
with jar
}
sourceSets {
main {
java {
srcDir "build/xnat-generated/src/main/java"
}
resources {
srcDir "build/xnat-generated/src/main/resources"
}
}
}
def propertyWithDefault(String name, Object value) {
hasProperty(name) ? property(name) : value
}
/*
def sonatypeUsername = hasProperty("SONATYPE_USERNAME") ? sonatypeUsername : System.getProperty("SONATYPE_USERNAME")
def sonatypePassword = hasProperty("SONATYPE_USERNAME") ? sonatypePassword : System.getProperty("SONATYPE_PASSWORD")
uploadArchives {
repositories {
mavenDeployer {
repository(url: "http://dev.redboxresearchdata.com.au/nexus/content/repositories/snapshots/") {
authentication(userName: sonatypeUsername, password: sonatypePassword)
}
pom.version = project.version
pom.artifactId = rootProject.name
pom.groupId = project.group
}
}
}
*/
test {
useJUnit()
maxHeapSize = '1G'
}