-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathbuild.gradle
More file actions
49 lines (41 loc) · 1.05 KB
/
build.gradle
File metadata and controls
49 lines (41 loc) · 1.05 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
apply plugin: 'fatjar'
version = "0.0.1"
allprojects {
apply plugin: 'java'
sourceCompatibility = 1.6
targetCompatibility = 1.6
}
buildscript {
dependencies {
classpath 'eu.appsatori:gradle-fatjar-plugin:0.1.2' // adds fatJar task
}
repositories {
mavenCentral()
}
}
dependencies {
compile 'com.sendgrid:sendgrid-java:1.1.0'
//compile files('/Users/scottmotte/code/active/sendgrid/sendgrid-java/build/libs/sendgrid-1.1.0-jar.jar')
}
repositories {
mavenCentral()
}
// adds 'with-dependencies' to the fatJar name
fatJar {
classifier 'jar'
baseName "scottmotte"
manifest {
attributes("Implementation-Title": "SendgridJavaExample", "Implementation-Version": version)
}
}
// copy fatJar to base project directory so they will be in git (and on github for download)
build << {
copy {
println "Copying ${fatJar.archiveName} to $projectDir/repo/com/github/scottmotte/$version"
from("$buildDir/libs/${fatJar.archiveName}")
into("$projectDir/repo/com/github/scottmotte/$version")
}
}
artifacts {
archives fatJar
}