forked from EMCECS/ecs-sync
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
132 lines (119 loc) · 3.62 KB
/
build.gradle
File metadata and controls
132 lines (119 loc) · 3.62 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
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
/*
* Copyright 2013-2015 EMC Corporation. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://www.apache.org/licenses/LICENSE-2.0.txt
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
allprojects {
group = 'com.emc.ecs'
version = '3.1.4'
}
ext.mainClass = 'com.emc.ecs.sync.EcsSync'
defaultTasks ':distZip'
buildscript {
repositories {
jcenter { url "https://jcenter.bintray.com/" }
}
dependencies {
classpath 'com.github.jengelman.gradle.plugins:shadow:1.2.3'
}
}
apply plugin: 'java'
apply plugin: 'com.github.johnrengelman.shadow'
apply plugin: 'distribution'
apply plugin: 'idea'
apply plugin: 'eclipse'
repositories {
mavenCentral()
mavenLocal()
}
dependencies {
// https://mvnrepository.com/artifact/org.mongodb/mongo-java-driver
compile group: 'org.mongodb', name: 'mongo-java-driver', version: '3.4.2'
compile files('lib/fplibrary-3.4.757.jar'),
files('lib/security-1.1.jar'),
"commons-cli:commons-cli:1.3.1",
"com.zaxxer:HikariCP-java7:2.4.11",
"com.amazonaws:aws-java-sdk-s3:1.11.53",
"com.google.code.gson:gson:2.0",
"com.emc.ecs:atmos-client:3.0.1",
"com.emc.ecs:nfs-client:1.0.3",
"com.emc.ecs:object-client:3.0.0",
"com.sun.jersey:jersey-server:1.19",
"mysql:mysql-connector-java:5.1.37",
"net.java.truevfs:truevfs-profile-default:0.11.0",
"org.apache.commons:commons-csv:1.4",
"org.slf4j:slf4j-api:1.7.12",
"org.slf4j:slf4j-log4j12:1.7.12",
"org.springframework:spring-jdbc:3.2.17.RELEASE",
"org.xerial:sqlite-jdbc:3.8.11.1",
project(':ecs-sync-model')
testCompile "junit:junit:4.11",
"org.hsqldb:hsqldb:2.3.2"
}
compileJava {
sourceCompatibility = 1.7
targetCompatibility = 1.7
if (project.hasProperty('java7Lib')) {
options.fork = true
options.bootClasspath = new File(java7Lib).listFiles(
[accept:{d, f-> f ==~ /.*\.jar/ }] as FilenameFilter
).join(File.pathSeparator)
}
}
javadoc {
options.quiet()
}
shadowJar {
classifier ''
mergeServiceFiles()
append('META-INF/spring.handlers')
append('META-INF/spring.schemas')
manifest {
attributes 'Main-Class': mainClass,
'Implementation-Version': project.version,
'Class-Path': { configurations.runtime.collect { it.getName() }.join(' ') }
}
}
/*task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from "${docsDir}/javadoc"
}*/
task sourcesJar(type: Jar) {
classifier = 'sources'
from sourceSets.main.allSource
}
distributions {
main {
contents {
from 'readme.txt'
from 'license.txt'
from shadowJar
from { project(':ecs-sync-ctl').shadowJar }
from 'script'
into('sample') {
from 'sample'
}
into('docker') {
from 'docker'
}
/*into('doc') {
from javadocJar
}*/
into('src') {
from sourcesJar
}
}
}
}
task wrapper(type: Wrapper) {
gradleVersion = '2.9'
}