-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
87 lines (68 loc) · 2.31 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
group 'athena'
version '1.0-SNAPSHOT'
apply plugin: 'java'
sourceCompatibility = 1.7
repositories {
mavenCentral()
flatDir {
dirs 'libs'
}
maven{
url "http://maven.twttr.com"
}
maven {
url "http://clojars.org/repo/"
}
}
dependencies {
compile fileTree(dir: 'libs', include: '*.jar')
}
dependencies {
// compile group: 'com.amazonaws', name: 'aws-lambda-java-core', version: '1.1.0'
compile group: 'com.amazonaws', name: 'aws-java-sdk', version: '1.11.86'
//compile group: 'com.amazonaws', name: 'aws-java-sdk-dynamodb', version: '1.11.86'
compile group: 'com.amazonaws', name: 'aws-java-sdk-lambda', version: '1.9.22'
compile group: 'com.amazonaws', name: 'aws-lambda-java-core', version: '1.1.0'
compile group: 'mysql', name: 'mysql-connector-java', version: '6.0.6'
// compile group: 'org.apache.httpcomponents', name: 'httpclient', version: '4.3.4'
// compile group: 'com.amazonaws', name: 'amazon-kinesis-client', version: '1.7.5'
// compile group: 'org.apache.httpcomponents', name: 'httpclient', version: '4.5.2'
// compile group: 'com.microsoft.sqlserver', name: 'sqljdbc4', version: '4.0'
// compile 'com.google.guava:guava:21.0'
// testCompile group: 'junit', name: 'junit', version: '4.11'
}
task buildZip(type: Zip) {
from compileJava
from processResources
into('lib') {
from configurations.runtime
}
}
//build.dependsOn buildZip
task fatJar(type: Jar) {
baseName = project.name + '-all'
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
with jar
manifest {
attributes 'Implementation-Title': 'Gradle Quickstart', 'Implementation-Version': version
attributes 'Main-Class': 'com.organization.project.package.mainClassName'
}
}
task wdep(type: Jar) {
baseName = project.name + 'name'
with jar
manifest {
attributes 'Implementation-Title': 'Gradle Quickstart', 'Implementation-Version': version
attributes 'Main-Class': 'com.organization.project.package.mainClassName'
}
}
tasks.addRule("Pattern : ping<ID>") {
String taskName -> if(taskName.startsWith("ping")){
task(taskName) <<{
println("pinging: "+(taskName-'ping'))
}
}
}
task lazy(dependsOn: 'count')<<{
println('so lazy')
}