-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathbuild.gradle.kts
52 lines (43 loc) · 1.33 KB
/
build.gradle.kts
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
import org.zaproxy.gradle.addon.AddOnPlugin
import org.zaproxy.gradle.addon.AddOnStatus
import org.zaproxy.gradle.addon.misc.ConvertMarkdownToHtml
import org.zaproxy.gradle.addon.misc.CreateGitHubRelease
import org.zaproxy.gradle.addon.misc.ExtractLatestChangesFromChangelog
plugins {
id("com.diffplug.spotless") version "6.25.0"
id("com.github.ben-manes.versions") version "0.38.0"
`java-library`
id("org.zaproxy.add-on") version "0.5.0"
}
repositories {
mavenCentral()
}
java {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
spotless {
java {
licenseHeaderFile("./gradle/spotless/License.java")
googleJavaFormat().aosp()
}
}
tasks.compileJava {
dependsOn("spotlessApply")
}
tasks.withType<JavaCompile>().configureEach { options.encoding = "utf-8"}
version = "1.2.1"
description = "Detect File upload requests and scan them to find related vulnerabilities"
zapAddOn {
addOnName.set("FileUpload")
addOnStatus.set(AddOnStatus.ALPHA)
zapVersion.set("2.11.0")
manifest {
author.set("KSASAN [email protected]")
repo.set("https://github.com/SasanLabs/owasp-zap-fileupload-addon/")
url.set("https://www.zaproxy.org/blog/2021-08-20-zap-fileupload-addon/")
}
}
dependencies {
zap("org.zaproxy:zap:2.11.0")
}