1- install. dependsOn test // make sure that the tests get ran before attempting to install
1+ /*
2+ * ******************************************************************************
3+ * Copyright 2014 Spectra Logic Corporation. All Rights Reserved.
4+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use
5+ * this file except in compliance with the License. A copy of the License is located at
6+ *
7+ * http://www.apache.org/licenses/LICENSE-2.0
8+ *
9+ * or in the "license" file accompanying this file.
10+ * This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
11+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the
12+ * specific language governing permissions and limitations under the License.
13+ * ****************************************************************************
14+ */
15+
16+ buildscript {
17+ repositories { jcenter() }
18+ dependencies {
19+ classpath ' com.github.jengelman.gradle.plugins:shadow:1.1.1'
20+ }
21+ }
22+
23+ apply plugin : ' com.github.johnrengelman.shadow'
24+
25+ shadowJar {
26+ relocate ' com.google' , ' ds3fatjar.com.google'
27+ relocate ' org.apache' , ' ds3fatjar.org.apache'
28+ relocate ' org.codehaus' , ' ds3fatjar.org.codehaus'
29+ relocate ' com.fasterxml' , ' ds3fatjar.com.fasterxml'
30+ dependencies {
31+ exclude(dependency(' org.hamcrest:hamcrest-library:1.3' ))
32+ exclude(dependency(' org.mockito:mockito-all:1.9.5' ))
33+ exclude(dependency(' junit:junit:4.11' ))
34+ }
35+ }
36+
37+ artifacts {
38+ archives shadowJar
39+ }
240
341dependencies {
442 compile ' org.apache.httpcomponents:httpclient:4.3.2'
@@ -7,5 +45,5 @@ dependencies {
745 compile ' org.codehaus.woodstox:woodstox-core-asl:4.2.0'
846 compile ' com.fasterxml.jackson.dataformat:jackson-dataformat-xml:2.2.3'
947 compile ' com.google.guava:guava:16.0.1'
10- compile ' org.hamcrest:hamcrest-library:1.3'
48+ testCompile ' org.hamcrest:hamcrest-library:1.3'
1149}
0 commit comments