-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
42 lines (32 loc) · 844 Bytes
/
build.gradle
File metadata and controls
42 lines (32 loc) · 844 Bytes
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'
apply plugin: 'application'
// Redefine where Gradle should expect Java source files (*.java)
sourceSets {
main {
java {
srcDirs 'src'
}
}
}
repositories {
mavenCentral()
}
dependencies {
compile files("/usr/java/jdk1.8.0_92/lib/tools.jar")
compile 'com.google.code.gson:gson:2.7'
}
// Redefine where .class files are written
sourceSets.main.output.classesDir = file("classes")
// Specify main class to be executed
mainClassName = "org.protocoder.docgenerator.DocGenerator"
defaultTasks 'compileJava', 'run'
// Include dependent libraries in archive.
mainClassName = "org.protocoder.documentation.DocGenerator"
jar {
manifest {
attributes "Main-Class": "$mainClassName"
}
from {
configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
}
}