-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
45 lines (36 loc) · 973 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
import java.text.SimpleDateFormat
plugins {
id 'application'
}
group 'com.reportmill'
version new SimpleDateFormat("yyyy.MM").format(new Date())
sourceSets.main.java.srcDirs = ['src']
sourceSets.main.resources.srcDirs = ['src']
java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
repositories {
}
dependencies {
// SnapKit project
implementation project(':SnapKit')
}
mainClassName = 'snapbuild.app.App'
/**
* Build executable jar SnapBuilderAll.jar.
*
* We could use the standard jar task just by using jar { ... } and deleting 'baseName' and 'with jar' lines.
*/
task buildFullJar(type: Jar) {
manifest {
attributes 'Main-Class': 'snapbuild.app.App',
'Application-Name': 'SnapBuilder'
}
archiveBaseName = 'SnapBuilderAll'
from {
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
}
with jar
dependsOn build
}