-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnext-gen-automation-framework.gradle.kts
116 lines (97 loc) · 3.78 KB
/
next-gen-automation-framework.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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
val ktorVersion = "2.0.0"
val kotlinVersion = "1.6.20"
val kotlinxSerializationVersion = "1.3.2"
val coroutinesVersion = "1.6.0"
val decomposeVersion = "0.6.0"
val h2Version = "2.1.212"
val hikariCpVersion = "5.0.1"
val exposedVersion = "0.38.1"
description = "Next gen automation framework addon for ZAP"
zapAddOn {
addOnName.set("Next gen automation framework")
zapVersion.set("2.11.1")
manifest {
author.set("NDBien from UET/VNU")
extensions {
register("org.zaproxy.addon.naf.ExtensionNaf") {
dependencies {
addOns {
register("selenium") {
version.set(">= 15.6.0")
}
register("spiderAjax") {
version.set(">= 23.0.0")
}
register("bruteforce") {
version.set(">= 11.0.0")
}
}
}
}
}
}
}
crowdin {
configuration {
val resourcesPath = "org/zaproxy/addon/${zapAddOn.addOnId.get()}/resources/"
tokens.put("%messagesPath%", resourcesPath)
tokens.put("%helpPath%", resourcesPath)
}
}
repositories {
mavenCentral()
gradlePluginPortal()
maven { url = uri("https://maven.pkg.jetbrains.space/public/p/ktor/eap") }
maven("https://maven.pkg.jetbrains.space/public/p/compose/dev")
}
plugins {
kotlin("jvm") version "1.6.10"
kotlin("plugin.serialization") version "1.6.20"
id("org.jetbrains.compose") version "1.1.1"
}
dependencies {
// Runtime
api("org.slf4j:slf4j-nop:1.7.36")
// Classpath
implementation(kotlin("stdlib"))
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutinesVersion")
implementation("eu.jrie.jetbrains:kotlin-shell-core:0.2.1")
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:$kotlinxSerializationVersion")
// Web client dependencies
implementation("io.ktor:ktor-client-core:$ktorVersion")
implementation("io.ktor:ktor-client-cio:$ktorVersion")
implementation("io.ktor:ktor-client-content-negotiation:$ktorVersion")
implementation("io.ktor:ktor-serialization-kotlinx-json:$ktorVersion")
// Ui dependencies
implementation(compose.desktop.currentOs)
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-swing:$coroutinesVersion")
implementation("com.arkivanov.decompose:decompose:$decomposeVersion")
implementation("com.arkivanov.decompose:extensions-compose-jetbrains:$decomposeVersion")
// Docker
implementation("com.github.docker-java:docker-java-core:3.2.13")
implementation("com.github.docker-java:docker-java-transport-httpclient5:3.2.13")
// Database
implementation("org.jetbrains.exposed:exposed-core:$exposedVersion")
implementation("org.jetbrains.exposed:exposed-dao:$exposedVersion")
implementation("org.jetbrains.exposed:exposed-jdbc:$exposedVersion")
implementation("com.h2database:h2:$h2Version")
implementation("com.zaxxer:HikariCP:$hikariCpVersion")
// Markdown
implementation("com.mikepenz:multiplatform-markdown-renderer:0.4.0")
implementation("eu.de-swaef.pdf:Markdown2Pdf:2.0.1")
implementation("org.jetbrains.kotlin:kotlin-reflect:1.6.21")
// Testing
testImplementation(kotlin("test"))
testImplementation("org.jetbrains.kotlinx:kotlinx-coroutines-test:1.6.0")
compileOnly(parent!!.childProjects["selenium"]!!)
compileOnly(parent!!.childProjects["spiderAjax"]!!)
compileOnly(parent!!.childProjects["bruteforce"]!!)
}
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().all {
kotlinOptions {
freeCompilerArgs += "-opt-in=kotlin.RequiresOptIn"
}
}
// tasks.test {
// useJUnitPlatform()
// }