forked from gpx-animator/gpx-animator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
102 lines (84 loc) · 2.4 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
plugins {
id 'application'
id 'com.github.johnrengelman.shadow' version '6.0.0'
id 'com.github.spotbugs' version '4.5.0'
id 'pmd'
id 'checkstyle'
}
version = '1.6.0-SNAPSHOT'
group = 'app.gpx-animator'
mainClassName = 'app.gpx_animator.Main'
sourceCompatibility = '15'
targetCompatibility = '15'
repositories {
mavenCentral()
maven { url 'https://www.dcm4che.org/maven2/' }
}
configurations {
developmentOnly
}
dependencies {
compileOnly 'com.github.spotbugs:spotbugs-annotations:4.1.2'
implementation 'xuggle:xuggle-xuggler:5.4'
implementation 'javax.xml.bind:jaxb-api:2.3.1'
implementation 'com.sun.xml.bind:jaxb-core:2.3.0.1'
implementation 'org.glassfish.jaxb:jaxb-runtime:2.3.1'
implementation 'javax.activation:activation:1.1.1'
implementation 'org.slf4j:slf4j-api:1.7.30'
implementation 'org.slf4j:slf4j-simple:1.7.30'
implementation 'com.drewnoakes:metadata-extractor:2.11.0'
implementation 'org.imgscalr:imgscalr-lib:4.2'
implementation 'commons-io:commons-io:2.6'
implementation 'com.jgoodies:jgoodies-forms:1.9.0'
implementation 'com.vladsch.flexmark:flexmark-all:0.50.44'
implementation 'org.jetbrains:annotations:18.0.0'
testImplementation 'org.junit.jupiter:junit-jupiter-engine:5.5.2'
testImplementation 'org.junit.jupiter:junit-jupiter-params:5.5.2'
testImplementation 'org.junit.platform:junit-platform-engine:+'
}
test.classpath += configurations.developmentOnly
run.classpath += configurations.developmentOnly
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
}
task copyChangelog(type: Copy) {
from "."
include "CHANGELOG.md"
into "./src/main/resources"
}
task deleteChangelog(type: Delete) {
delete "./src/main/resources/CHANGELOG.md"
}
task installGitHooks(type: Copy) {
from new File(rootProject.rootDir, 'config/git/pre-push')
into { new File(rootProject.rootDir, '.git/hooks') }
fileMode 0755
}
test {
useJUnitPlatform()
}
shadowJar {
mergeServiceFiles()
}
compileJava {
dependsOn copyChangelog
}
clean.dependsOn deleteChangelog
assemble.dependsOn check
spotbugsMain {
reports {
xml.enabled = false
html.enabled = true
}
}
spotbugsTest {
reports {
xml.enabled = false
html.enabled = true
}
}
pmd {
ruleSets = []
ruleSetFiles = files("${projectDir}/config/pmd/pmd-rules.xml")
}
check.dependsOn installGitHooks