-
-
Notifications
You must be signed in to change notification settings - Fork 152
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Najam Ul Saqib <[email protected]>
- Loading branch information
Showing
21 changed files
with
157 additions
and
132 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
import com.github.gradle.node.npm.task.NpmTask | ||
import org.zaproxy.gradle.addon.AddOnPlugin | ||
import org.zaproxy.gradle.addon.AddOnStatus | ||
import org.zaproxy.gradle.addon.internal.model.ProjectInfo | ||
import org.zaproxy.gradle.addon.internal.model.ReleaseState | ||
|
@@ -14,11 +15,11 @@ import org.zaproxy.gradle.tasks.ZapStart | |
plugins { | ||
`java-library` | ||
jacoco | ||
id("org.zaproxy.add-on") version "0.8.0" | ||
id("org.zaproxy.add-on") version "0.9.0" | ||
id("org.zaproxy.crowdin") version "0.3.1" | ||
id("com.diffplug.spotless") version "6.14.1" | ||
id("com.github.ben-manes.versions") version "0.45.0" | ||
id("com.github.node-gradle.node") version "3.5.1" | ||
id("com.diffplug.spotless") version "6.20.0" | ||
id("com.github.ben-manes.versions") version "0.47.0" | ||
id("com.github.node-gradle.node") version "5.0.0" | ||
} | ||
|
||
apply(from = "$rootDir/gradle/compile.gradle.kts") | ||
|
@@ -48,7 +49,7 @@ zapAddOn { | |
addOnName.set("HUD - Heads Up Display") | ||
addOnStatus.set(AddOnStatus.BETA) | ||
|
||
zapVersion.set("2.12.0") | ||
zapVersion.set("2.13.0") | ||
|
||
releaseLink.set("https://github.com/zaproxy/zap-hud/compare/v@[email protected]@CURRENT_VERSION@") | ||
unreleasedLink.set("https://github.com/zaproxy/zap-hud/compare/v@[email protected]") | ||
|
@@ -127,26 +128,28 @@ val generateI18nJsFile by tasks.creating(GenerateI18nJsFile::class) { | |
|
||
sourceSets["main"].output.dir(generatedI18nJsFileDir, "builtBy" to generateI18nJsFile) | ||
|
||
tasks.named(AddOnPlugin.GENERATE_MANIFEST_TASK_NAME) { | ||
dependsOn(copyNpmDeps) | ||
dependsOn(generateI18nJsFile) | ||
} | ||
|
||
java { | ||
val javaVersion = JavaVersion.VERSION_11 | ||
sourceCompatibility = javaVersion | ||
targetCompatibility = javaVersion | ||
} | ||
|
||
val jupiterVersion = "5.9.2" | ||
|
||
dependencies { | ||
compileOnly("org.zaproxy.addon:network:0.1.0") | ||
compileOnly(files(fileTree("lib").files)) | ||
|
||
testImplementation("org.junit.jupiter:junit-jupiter-api:$jupiterVersion") | ||
testImplementation("org.junit.jupiter:junit-jupiter-params:$jupiterVersion") | ||
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:$jupiterVersion") | ||
testImplementation("org.junit.jupiter:junit-jupiter:5.9.3") | ||
testRuntimeOnly("org.junit.platform:junit-platform-launcher") | ||
|
||
testImplementation("io.github.bonigarcia:selenium-jupiter:4.3.2") | ||
testImplementation("org.seleniumhq.selenium:selenium-java:4.7.2") | ||
testImplementation("io.github.bonigarcia:selenium-jupiter:4.3.6") | ||
testImplementation("org.seleniumhq.selenium:selenium-java:4.10.0") | ||
testImplementation("org.hamcrest:hamcrest-all:1.3") | ||
testImplementation("org.mockito:mockito-all:1.10.19") | ||
testImplementation("org.mockito:mockito-core:5.4.0") | ||
testImplementation("org.zaproxy.addon:network:0.1.0") | ||
testImplementation(files(fileTree("lib").files)) | ||
} | ||
|
@@ -175,7 +178,7 @@ spotless { | |
java { | ||
licenseHeaderFile("gradle/spotless/license.java") | ||
|
||
googleJavaFormat("1.7").aosp() | ||
googleJavaFormat("1.17.0").aosp() | ||
} | ||
|
||
kotlinGradle { | ||
|
@@ -248,7 +251,7 @@ tasks { | |
|
||
doLast { | ||
copy { | ||
from(zipTree(fileTree(zapDownloadDir.asFile).matching { "*.zip" }.singleFile)).eachFile { | ||
from(zipTree(fileTree(zapDownloadDir.asFile).matching { include("*.zip") }.singleFile)).eachFile { | ||
path = path.substring(relativePath.segments[0].length) | ||
} | ||
into(zapInstallDir) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
version=0.17.0 | ||
version=0.18.0 | ||
release=false |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionSha256Sum=312eb12875e1747e05c2f81a4789902d7e4ec5defbd1eefeaccc08acf096505d | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6-all.zip | ||
distributionSha256Sum=7c3ad722e9b0ce8205b91560fd6ce8296ac3eadf065672242fd73c06b8eeb6ee | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.2.1-all.zip | ||
networkTimeout=10000 | ||
validateDistributionUrl=true | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.