-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
68 lines (59 loc) · 2.5 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
65
66
67
68
plugins {
id 'java'
id 'application'
id 'net.nemerosa.versioning' version '3.1.0'
}
mainClassName = 'info.kriese.sopra.SoPraLOP'
def title = 'Software-Praktikum Lineare Optimierung'
def author = 'Michael Kriese & Peer Sterner'
version = '2.0.0-beta.1'
repositories {
mavenCentral()
maven {
url = uri('https://jogamp.org/deployment/maven/')
}
maven {
url = uri('https://jogamp.org/deployment/maven-java3d/')
}
}
dependencies {
implementation 'org.jogamp.java3d:java3d-core:1.7.2'
implementation 'org.jogamp.java3d:java3d-utils:1.7.2'
implementation 'org.jogamp.java3d:vecmath:1.7.2'
runtimeOnly 'org.jogamp.gluegen:gluegen-rt:2.5.0:natives-android-aarch64'
runtimeOnly 'org.jogamp.gluegen:gluegen-rt:2.5.0:natives-linux-amd64'
runtimeOnly 'org.jogamp.gluegen:gluegen-rt:2.5.0:natives-linux-armv6hf'
runtimeOnly 'org.jogamp.gluegen:gluegen-rt:2.5.0:natives-macosx-universal'
runtimeOnly 'org.jogamp.gluegen:gluegen-rt:2.5.0:natives-windows-amd64'
runtimeOnly 'org.jogamp.jogl:jogl-all:2.5.0:natives-android-aarch64'
runtimeOnly 'org.jogamp.jogl:jogl-all:2.5.0:natives-linux-amd64'
runtimeOnly 'org.jogamp.jogl:jogl-all:2.5.0:natives-linux-armv6hf'
runtimeOnly 'org.jogamp.jogl:jogl-all:2.5.0:natives-macosx-universal'
runtimeOnly 'org.jogamp.jogl:jogl-all:2.5.0:natives-windows-amd64'
}
jar {
manifest {
attributes(
'Main-Class' : mainClassName,
'Built-By' : System.properties['user.name'],
'Build-Timestamp': new java.text.SimpleDateFormat('yyyy-MM-dd\'T\'HH:mm:ss.SSSZ').format(new Date()),
'Build-Revision' : "${versioning.info.full}",
'Created-By' : "Gradle ${gradle.gradleVersion}",
'Build-Jdk' : "${System.properties['java.version']} (${System.properties['java.vendor']} ${System.properties['java.vm.version']})",
'Build-OS' : "${System.properties['os.name']} ${System.properties['os.arch']} ${System.properties['os.version']}",
'Specification-Title': title,
'Specification-Vendor': author,
'Specification-Version': '2.0',
'Implementation-Title': title,
'Implementation-Vendor': author,
'Implementation-Version': version
)
}
}
processResources {
with copySpec {
from 'sopra.properties'
filter(ReplaceTokens, tokens: [version: version, title: title, author: author])
}
}
import org.apache.tools.ant.filters.ReplaceTokens