-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.gradle
65 lines (53 loc) · 1.45 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
apply plugin: 'java'
apply plugin: 'application'
repositories {
mavenCentral()
}
dependencies {
implementation 'org.freehep:freehep-graphicsbase:2.4'
implementation 'org.freehep:freehep-graphics2d:2.4'
implementation 'org.freehep:freehep-graphicsio:2.4'
implementation 'org.freehep:freehep-graphicsio-pdf:2.4'
implementation 'org.freehep:freehep-graphicsio-svg:2.4'
implementation 'org.freehep:freehep-graphicsio-ps:2.4'
implementation 'org.freehep:freehep-vectorgraphics:2.4'
implementation 'org.jfree:jfreechart:1.5.0'
}
mainClassName = 'projections.analysis.ProjMain'
sourceCompatibility = 1.8
targetCompatibility = 1.8
version = '6.10.0'
sourceSets {
main {
java {
srcDir 'src'
}
}
}
task fatJar(type: Jar) {
manifest {
attributes 'Implementation-Title': 'Projections',
'Implementation-Version': project.version
}
project.archivesBaseName = 'projections-all'
duplicatesStrategy = DuplicatesStrategy.INCLUDE
from {
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
}
into ('projections/images') {
from('src/projections/images') {
include '*'
}
}
into ('META-INF/services/') {
from ('src/projections/resources') {
include 'org.freehep.graphicsbase.util.export.ExportFileType'
}
}
with jar
}
task copyJarToBin(type: Copy) {
from fatJar
into 'bin/'
rename 'projections-all-' + version + '.jar', 'projections.jar'
}