-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathbuild.gradle.kts
40 lines (33 loc) · 1.13 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
import org.zaproxy.gradle.addon.AddOnStatus
import org.zaproxy.gradle.addon.misc.ConvertMarkdownToHtml
plugins {
`java-library`
id("org.zaproxy.add-on") version "0.11.0"
id("com.diffplug.spotless")
id("org.zaproxy.common")
}
description = "A template for a 3rd party ZAP Java add-on."
zapAddOn {
addOnId.set("addonjava")
addOnName.set("A Template Java Add-on")
zapVersion.set("2.15.0")
addOnStatus.set(AddOnStatus.ALPHA)
releaseLink.set("https://github.com/youruser/javaexample/compare/v@[email protected]@CURRENT_VERSION@")
unreleasedLink.set("https://github.com/youruser/javaexample/compare/v@[email protected]")
manifest {
author.set("ZAP Dev Team")
url.set("https://www.zaproxy.org/docs/desktop/addons/addonjava/")
repo.set("https://github.com/zaproxy/addon-java")
changesFile.set(tasks.named<ConvertMarkdownToHtml>("generateManifestChanges").flatMap { it.html })
}
}
java {
val javaVersion = JavaVersion.VERSION_11
sourceCompatibility = javaVersion
targetCompatibility = javaVersion
}
spotless {
kotlinGradle {
ktlint()
}
}