-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
130 lines (108 loc) · 3.78 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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
/*
*
* Copyright 2015-2022 Martin Goellnitz
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
plugins {
id 'net.ossindex.audit' version '0.4.11'
id 'io.franzbecker.gradle-lombok' version '4.0.0'
}
apply plugin: 'java'
apply plugin: 'application'
apply plugin: 'jacoco'
apply plugin: 'pmd'
defaultTasks 'clean', 'build'
println "Gradle: ${gradle.gradleVersion}"
version='0.1-SNAPSHOT'
repositories {
mavenCentral()
}
dependencies {
implementation 'org.slf4j:slf4j-api:1.7.36'
runtimeOnly 'ch.qos.logback:logback-classic:1.2.11'
// output is achieved via logging through special logback.groovy - this is why groovy is needed here
runtimeOnly 'org.codehaus.groovy:groovy:3.0.12'
implementation 'org.apache.commons:commons-lang3:3.12.0'
implementation 'org.apache.commons:commons-collections4:4.4'
implementation 'commons-cli:commons-cli:1.5.0'
implementation 'org.graphstream:gs-core:1.3'
implementation 'org.graphstream:gs-ui:1.3'
implementation 'org.scala-lang:scala-library:2.13.8' // override scala lib for graphstream due to vulnerability
implementation 'junit:junit:4.13.2' // introduce overriden junit lib for graphstream due to vulnerability
implementation 'net.sf.jung:jung-api:2.1.1'
implementation 'net.sf.jung:jung-graph-impl:2.1.1'
implementation 'net.sf.jung:jung-visualization:2.1.1'
implementation 'net.sf.jung:jung-algorithms:2.1.1'
implementation 'net.sf.jung:jung-io:2.1.1'
implementation 'net.sf.jung:jung-graph-impl:2.1.1'
implementation 'com.google.guava:guava:31.0.1-jre' // override guava for jung due to vulnerability
implementation 'org.javabits.jgrapht:jgrapht-core:0.9.3'
// audit does not know 7.6.0
testImplementation 'org.testng:testng:7.6.1'
// security overrides for testng and audit
testImplementation 'junit:junit:4.13.2'
}
lombok {
version = "1.18.24"
sha256 = "39f3922deb679b1852af519eb227157ef2dd0a21eec3542c8ce1b45f2df39742"
}
pmd {
ruleSets = []
ruleSetFiles = files('pmd.xml')
sourceSets = [sourceSets.main]
toolVersion = '6.48.0'
}
test {
useTestNG() {
}
}
audit {
// PMD still references this one - so please update PMD once it is possible
ignore = [ 'commons-io:commons-io:2.6', 'com.beust:jcommander:1.48' , 'net.sf.jung:jung-graph-impl:2.1.1', 'com.google.guava:guava:31.0.1-jre' ]
user = "$ossindexUser"
token = "$ossindexToken"
}
jacoco {
toolVersion = '0.8.8'
}
jacocoTestReport {
reports {
xml.enabled = true // coveralls plugin depends on xml format report
html.enabled = true
}
}
mainClassName='de.provocon.stratigraph.command.Analyse'
application {
applicationName = 'stg'
}
startScripts {
doLast {
// Add more reasonable memory
unixScript.text = unixScript.text.replace('DEFAULT_JVM_OPTS=""', 'DEFAULT_JVM_OPTS="-ms1280m -mx1536m -Xms1280m -Xmx1536m"')
windowsScript.text = windowsScript.text.replace('DEFAULT_JVM_OPTS=', 'DEFAULT_JVM_OPTS=-ms1280m -mx1536m -Xms1280m -Xmx1536m')
}
}
// Just my test target
run {
args "-j", "-i", "-d", "/home/martin/proj/tangram/system"
}
// Basic code setup
sourceCompatibility = 11
targetCompatibility = 11
compileJava.options.encoding = 'UTF-8'
compileJava.options.deprecation = true
// Don't issue tar archive
distTar.enabled = false