-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathbuild.gradle
43 lines (36 loc) · 1.18 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
plugins {
id 'java'
id 'net.nemerosa.versioning' version '2.14.0'
}
group 'com.1password.burp-analyzer'
repositories {
mavenCentral()
}
dependencies {
implementation group: 'net.portswigger.burp.extender', name: 'burp-extender-api', version: '2.3'
implementation group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.13.4.2'
implementation group: 'com.fifesoft', name: 'rsyntaxtextarea', version: '3.3.0'
testImplementation group: 'junit', name: 'junit', version: '4.12'
}
versioning {
ext.makeVersion = {
if(project.hasProperty('release')) {
def dateFormat = new java.text.SimpleDateFormat("yyyy-MM-dd")
dateFormat.setTimeZone(TimeZone.getTimeZone("UTC"))
def today = dateFormat.format(new Date())
return String.format("%s-%s", versioning.info.full, today)
} else {
return "dev"
}
}
}
version versioning.ext.makeVersion()
task fatJar(type: Jar) {
duplicatesStrategy = 'exclude'
archiveBaseName = "${rootProject.name}"
from { configurations.compileClasspath.collect { it.isDirectory() ? it : zipTree(it) } }
with jar
}
test {
useJUnit()
}