-
-
Notifications
You must be signed in to change notification settings - Fork 12
/
build.gradle.kts
70 lines (57 loc) · 1.87 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
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.39.0"
`java-library`
id("org.zaproxy.add-on") version "0.7.0"
}
repositories {
mavenCentral()
}
java {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
spotless {
java {
licenseHeaderFile("./gradle/spotless/License.java")
googleJavaFormat().aosp()
}
}
tasks.withType<JavaCompile>().configureEach { options.encoding = "utf-8" }
tasks.compileJava {
dependsOn("spotlessApply")
}
version = "1.0.3"
description = "Detect JWT requests and scan them to find related vulnerabilities"
zapAddOn {
addOnName.set("JWT Support")
zapVersion.set("2.11.1")
addOnStatus.set(AddOnStatus.ALPHA)
manifest {
author.set("KSASAN [email protected]")
repo.set("https://github.com/SasanLabs/owasp-zap-jwt-addon/")
dependencies {
addOns {
register("commonlib")
register("fuzz") {
version.set("13.*")
}
}
}
changesFile.set(tasks.named<ConvertMarkdownToHtml>("generateManifestChanges").flatMap { it.html })
}
}
dependencies {
implementation("org.json:json:20210307")
// https://mvnrepository.com/artifact/com.nimbusds/nimbus-jose-jwt
implementation("com.nimbusds:nimbus-jose-jwt:8.3")
compileOnly("org.zaproxy.addon:commonlib:1.0.0")
// https://mvnrepository.com/artifact/org.zaproxy.addon/fuzz
compileOnly("org.zaproxy.addon:fuzz:13.0.0")
testImplementation("org.zaproxy.addon:commonlib:1.0.0")
}