forked from opencodeiiita/PanoViewer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
62 lines (53 loc) · 1.41 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
plugins {
id "com.diffplug.spotless" version "5.17.0"
id "de.undercouch.download" version "4.1.2"
}
apply plugin: 'java-library'
apply plugin: 'jacoco'
apply plugin: 'application'
mainClassName = "PanoViewer.PanoViewer"
configurations {
// configuration that holds jars to include in the jar
extraLibs
}
download {
mkdir "libs"
src 'https://jogamp.org/deployment/archive/rc/v2.4.0-rc-20210111/fat/jogamp-fat.jar'
dest "libs"
overwrite false
}
spotless {
java {
target "**/*.java"
//ratchetFrom("origin/master")
//importOrder()
trimTrailingWhitespace()
indentWithSpaces(2)
endWithNewline()
removeUnusedImports()
}
}
repositories {
jcenter()
mavenCentral()
}
java.sourceCompatibility = JavaVersion.VERSION_1_8
java.targetCompatibility = JavaVersion.VERSION_1_8
dependencies {
extraLibs files("libs/jogamp-fat.jar")
extraLibs group: 'org.joml', name: 'joml', version: '1.10.1'
//extraLibs group: 'org.jogamp.jogl', name: 'jogl-all-main', version: '2.3.2', classifier: 'sources'
//extraLibs group: 'org.jogamp.gluegen', name: 'gluegen-rt-main', version: '2.3.2', classifier: 'sources'
testImplementation 'junit:junit:4.13.2'
configurations.api.extendsFrom(configurations.extraLibs)
}
jar {
manifest {
attributes(
'Main-Class': "$mainClassName"
)
}
from {
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
}
}