-
Notifications
You must be signed in to change notification settings - Fork 16
/
build.gradle
62 lines (54 loc) · 1.4 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
buildscript {
ext{
odcPluginVersion = project.hasProperty('odcGradlePluginVersion') ? project.getProperty('odcGradlePluginVersion') : '10.0.3'
}
repositories {
mavenCentral()
}
dependencies {
classpath "org.owasp:dependency-check-gradle:$odcPluginVersion"
}
}
apply plugin: 'java'
apply plugin: 'org.owasp.dependencycheck'
group 'eu.righettod'
version '2.0.1'
def burpExtensionHomepage = 'https://github.com/righettod/log-requests-to-sqlite'
def burpExtensionJarName = 'LogRequestsToSQLite.jar'
repositories {
mavenCentral()
}
dependencies {
compile 'org.xerial:sqlite-jdbc:3.47.0.0'
compile 'net.portswigger.burp.extender:burp-extender-api:2.3'
}
sourceSets {
main {
java {
srcDir 'src'
}
resources {
srcDir 'resources'
}
}
}
compileJava {
targetCompatibility '11'
sourceCompatibility '11'
}
dependencyCheck {
autoUpdate = true
failOnError = true
failBuildOnCVSS = 1
cveValidForHours = 12
suppressionFile = "odc-suppress.xml"
format = 'JSON'
}
task fatJar(type: Jar) {
manifest {
attributes("Implementation-Version": project.version, "Implementation-Title": project.name, "Implementation-URL": burpExtensionHomepage)
}
archiveName = burpExtensionJarName
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
with jar
}