-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
126 lines (104 loc) · 3.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
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
/*
*
* Copyright 2015-2024 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 '5.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:2.0.16'
runtimeOnly 'ch.qos.logback:logback-classic:1.5.11'
implementation 'org.apache.commons:commons-lang3:3.17.0'
implementation 'org.apache.commons:commons-collections4:4.4'
implementation 'commons-cli:commons-cli:1.9.0'
implementation 'org.graphstream:gs-core:2.0'
implementation 'org.graphstream:gs-ui-swing:2.0'
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:33.2.1-jre' // override guava for jung due to vulnerability
implementation 'org.javabits.jgrapht:jgrapht-core:0.9.3'
testImplementation 'org.testng:testng:7.10.2'
// security overrides for testng and audit
testImplementation 'junit:junit:4.13.2'
}
lombok {
version = "1.18.34"
sha256 = "2af1fa836848761b6e51440ec628b49dc38080e9871bb352701fb8c8358087cf"
}
pmd {
ruleSets = []
ruleSetFiles = files('pmd.xml')
sourceSets = [sourceSets.main]
toolVersion = '6.55.0'
}
test {
useTestNG() {
}
}
audit {
// PMD still references this one - so please update PMD once it is possible
ignore = [ 'com.beust:jcommander:1.48' ]
user = "$ossindexUser"
token = "$ossindexToken"
}
jacoco {
toolVersion = '0.8.12'
}
jacocoTestReport {
reports {
xml.required = true // coveralls plugin depends on xml format report
html.required = 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 "-g", "-i", "-d", "/home/martin/proj/development/analyze/source"
}
// Basic code setup
sourceCompatibility = 11
targetCompatibility = 11
compileJava.options.encoding = 'UTF-8'
compileJava.options.deprecation = true
// Don't issue tar archive
distTar.enabled = false