-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
46 lines (36 loc) · 812 Bytes
/
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
apply plugin: 'java'
sourceCompatibility = '1.6'
targetCompatibility = '1.6'
project.group = "blacksmyth.teenytyper"
project.version = "1.0"
jar {
manifest {
attributes 'Main-Class' : 'blacksmyth.teenytyper.TeenyTyper'
}
}
// modify the sourceSets to match the layout of my java-only project.
sourceSets {
main {
java {
srcDir 'src'
}
}
}
// the java plugin task uploadArchives, modified as below is equivalent
// to my ant script "dist" target. So, I just got lazy and made a dist
// task dependent on a slightly modified uploadArchives.
uploadArchives {
repositories {
flatDir {
dirs 'dist'
}
}
}
task dist {
dependsOn uploadArchives
}
// the full task is the gradle equivalent of the ant script's
// full target.
task full {
dependsOn clean, dist
}