-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
42 lines (33 loc) · 1.45 KB
/
build.gradle
File metadata and controls
42 lines (33 loc) · 1.45 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
apply plugin: 'java'
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
group = 'com.yang.httClient'
version = '1.0-SNAPSHOT'
repositories {
mavenCentral()
}
dependencies {
compile group: 'com.google.guava', name: 'guava', version: '19.0'
compile group: 'org.mockito', name: 'mockito-all', version: '1.9.5'
compile "org.springframework:spring-web:4.2.6.RELEASE"
testCompile group: 'junit', name: 'junit', version: '4.11'
}
task uberjar(type: Jar, dependsOn: jar) {
classifier = 'uber'
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
exclude('META-INF/maven/**')
from files(sourceSets.main.output.classesDir)
from files(sourceSets.main.output.resourcesDir)
from configurations.runtime.asFileTree.files.collect { zipTree(it) }
manifest {
attributes 'Main-Class': 'com.yang.httpClient.GenericHttpClient',
'Package': "com.yang.httpClient",
'Implementation-Title': "${project.name}",
'Implementation-Version': "${version}",
'Implementation-Vendor': 'Yang Yang',
'Built-By': 'Yang Yang',
'Built-Date': new Date().getDateTimeString(),
'Built-With': "gradle-${project.getGradle().getGradleVersion()}, groovy-${GroovySystem.getVersion()}",
'Created-By': 'Java ' + System.getProperty('java.version') + ' (' + System.getProperty('java.vendor') + ')'
}
}