-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
91 lines (76 loc) · 2.04 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
import org.apache.tools.ant.filters.*
apply plugin: 'java'
apply plugin: 'application'
apply plugin: 'eclipse'
apply plugin: "org.sonarqube"
//for creating DMG file
apply plugin: "edu.sc.seis.macAppBundle"
apply plugin: "net.researchgate.release"
mainClassName="at.fhtw.mcs.Main"
sourceCompatibility=1.8
applicationDefaultJvmArgs=["-Xmx2g"]
repositories {
mavenCentral()
}
dependencies {
compile 'javazoom:jlayer:1.0.1'
compile 'commons-io:commons-io:2.4'
compile 'org.jsoup:jsoup:1.8.1'
compile 'org.controlsfx:controlsfx:8.40.10'
testCompile group: 'junit', name: 'junit', version: '4.+'
}
//Replace @version@ in resources
processResources {
//never skip resources to ensure the latest version number is inserted
outputs.upToDateWhen { false }
filter ReplaceTokens, tokens: [
"version": project.property("version")
]
}
// To get more test output from Travis
test {
testLogging {
exceptionFormat "full" // default is "short"
}
}
buildscript {
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath "org.sonarqube.gradle:gradle-sonarqube-plugin:1.1"
classpath "gradle.plugin.edu.sc.seis:macAppBundle:2.1.5"
classpath "net.researchgate:gradle-release:2.3.5"
}
}
macAppBundle {
mainClassName = "at.fhtw.mcs.Main"
}
// include license and README in distribution package
distZip {
into(project.name + "-" + version) {
from '.'
include 'LICENSE.txt'
include 'LICENSE-3RD-PARTY.txt'
}
// README.md is renamed to README.txt and Images are filtered
into(project.name + "-" + version) {
from '.'
include 'README.md'
filter { String line ->
line.replaceAll('!?\\[.*\\]\\(.*\\)', '')
}
rename { String fileName ->
fileName.replace('.md', '.txt')
}
}
}
//set shorter automated release commit msgs
release {
preCommitText = '[Gradle]'
preTagCommitMessage = 'pre tag commit:'
tagCommitMessage = 'creating tag:'
newVersionCommitMessage = 'new version commit:'
}