-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
executable file
·81 lines (65 loc) · 2.39 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
/**
* Copyright (C) 2017 S. van der Baan
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero 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 Affero General Public License for more details.
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
apply plugin: 'java'
apply plugin: 'groovy'
apply plugin: 'distribution'
//apply plugin: 'antlr'
def getVersionName = { ->
try {
def stdout = new ByteArrayOutputStream()
exec {
commandLine 'git', 'describe', '--tags', '--abbrev=0'
standardOutput = stdout
}
return stdout.toString().trim()
}
catch (ignored) {
return null
}
}
version=getVersionName()
repositories {
jcenter()
}
dependencies {
compile 'org.antlr:antlr4-runtime:4.7'
compile 'org.codehaus.groovy:groovy-all:2.4.8'
// compile 'org.codehaus.groovy:groovy-xml:2.4.8'
// compile 'org.codehaus.groovy:groovy-json:2.4.8'
compile 'org.apache.commons:commons-pool2:2.4.2'
compile 'org.groovyfx:groovyfx:8.0.0'
// compile group: 'org.apache.commons', name: 'commons-pool2', version: '2.4.2'
// compile 'org.codehaus.groovy:groovy-swing:2.4.8'
// compile 'net.java.dev.glazedlists:glazedlists_java15:1.9.1'
// compile 'com.miglayout:miglayout-swing:5.0'
// compile 'org.slf4j:slf4j-api:1.7.22'
// https://mvnrepository.com/artifact/org.apache.commons/commons-pool2
// https://mvnrepository.com/artifact/org.json/json
compile group: 'org.json', name: 'json', version: '20170516'
testCompile 'junit:junit:4.12'
// testCompile 'org.assertj:assertj-swing-junit:3.5.0'
}
jar {
baseName = 'IF'
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
manifest {
attributes 'Main-Class':' net.vdbaan.issuefinder.Runner',
// 'Class-Path':'.',
'version':project.version
}
}
test {
// Until generic (Metasploitable) test are uploaded
exclude '**/*Test*'
}