-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbuild.gradle
47 lines (37 loc) · 1.33 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
/*
* This build file was auto generated by running the Gradle 'init' task
* by 'florin' at '6/24/16 4:43 PM' with Gradle 2.14
*
* This generated file contains a sample Java project to get you started.
* For more details take a look at the Java Quickstart chapter in the Gradle
* user guide available at https://docs.gradle.org/2.14/userguide/tutorial_java_projects.html
*/
apply plugin: 'java'
repositories {
jcenter()
}
version = '0.1'
task buildJar(type: Jar){
manifest {
attributes 'Implementation-Title': 'Gradle Jar File Example',
'Implementation-Version': version
}
baseName = project.name
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
with jar
}
dependencies {
testCompile 'junit:junit:4.12'
compile 'com.google.code.findbugs:jsr305:3.0.0'
compile 'com.google.code.gson:gson:2.6.2'
compile 'org.asynchttpclient:async-http-client-extras-simple:2.0.7'
compile 'org.apache.commons:commons-lang3:3.0'
compile group: 'org.slf4j', name: 'slf4j-api', version: '1.7.21'
compile "ch.qos.logback:logback-classic:1.1.3"
compile group: 'ch.qos.logback', name:'logback-core', version: '1.0.9'
}
configurations.all {
exclude group: "org.slf4j", module: "slf4j-log4j12"
exclude group: "log4j", module: "log4j"
}
sourceCompatibility = JavaVersion.VERSION_1_8