Skip to content

Commit 1674651

Browse files
committed
Update Gradle to 8.5 and ZAP to 2.14
Update Gradle Wrapper to 8.5 and add-on plugin to latest version. Apply the common plugins and remove now redundant configurations. Update GitHub Actions in workflows. Update ZAP to 2.14. Signed-off-by: thc202 <[email protected]>
1 parent 6d3f3cf commit 1674651

File tree

10 files changed

+30
-26
lines changed

10 files changed

+30
-26
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ jobs:
1414
java: [11]
1515

1616
steps:
17-
- uses: actions/checkout@v3
18-
- uses: actions/setup-java@v3
17+
- uses: actions/checkout@v4
18+
- uses: actions/setup-java@v4
1919
with:
2020
distribution: 'temurin'
2121
java-version: ${{ matrix.java }}

.github/workflows/crowdin-upload-files.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ jobs:
88
name: Upload Files
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@v3
11+
- uses: actions/checkout@v4
1212
- name: Setup Java
13-
uses: actions/setup-java@v3
13+
uses: actions/setup-java@v4
1414
with:
1515
distribution: 'temurin'
1616
java-version: 11

.github/workflows/prepare-release-add-on.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ jobs:
88
name: Prepare Release
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@v3
11+
- uses: actions/checkout@v4
1212
with:
1313
fetch-depth: 0
1414
persist-credentials: false
1515
- name: Setup Java
16-
uses: actions/setup-java@v3
16+
uses: actions/setup-java@v4
1717
with:
1818
distribution: 'temurin'
1919
java-version: 11

.github/workflows/release-add-on.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ jobs:
1212
name: Build and Release Add-On
1313
runs-on: ubuntu-latest
1414
steps:
15-
- uses: actions/checkout@v3
15+
- uses: actions/checkout@v4
1616
with:
1717
fetch-depth: 0
1818
persist-credentials: false
1919
- name: Setup Java
20-
uses: actions/setup-java@v3
20+
uses: actions/setup-java@v4
2121
with:
2222
distribution: 'temurin'
2323
java-version: 11

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
55

66
## [Unreleased]
77
### Changed
8-
- Update minimum ZAP version to 2.13.0.
8+
- Update minimum ZAP version to 2.14.0.
99

1010
## [4] - 2021-06-11
1111
### Changed

build.gradle.kts

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,9 @@ import org.zaproxy.gradle.addon.misc.ConvertMarkdownToHtml
77
plugins {
88
`java-library`
99
eclipse
10-
id("com.diffplug.spotless") version "6.20.0"
11-
id("org.zaproxy.add-on") version "0.9.0"
10+
id("com.diffplug.spotless")
11+
id("org.zaproxy.common")
12+
id("org.zaproxy.add-on") version "0.10.0"
1213
id("org.zaproxy.crowdin") version "0.3.1"
1314
}
1415

@@ -19,10 +20,6 @@ eclipse {
1920
}
2021
}
2122

22-
repositories {
23-
mavenCentral()
24-
}
25-
2623
description = "FuzzDB web backdoors and attack files which can be used with the ZAP fuzzer or for manual penetration testing"
2724

2825
java {
@@ -35,7 +32,7 @@ zapAddOn {
3532
addOnId.set(project.name.replace("-", ""))
3633
addOnName.set("FuzzDB Offensive")
3734
addOnStatus.set(AddOnStatus.RELEASE)
38-
zapVersion.set("2.13.0")
35+
zapVersion.set("2.14.0")
3936

4037
releaseLink.set("https://github.com/zaproxy/fuzzdb-offensive/compare/v@[email protected]@CURRENT_VERSION@")
4138
unreleasedLink.set("https://github.com/zaproxy/fuzzdb-offensive/compare/v@[email protected]")

gradle/wrapper/gradle-wrapper.jar

-19.4 KB
Binary file not shown.

gradle/wrapper/gradle-wrapper.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionSha256Sum=7c3ad722e9b0ce8205b91560fd6ce8296ac3eadf065672242fd73c06b8eeb6ee
4-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.2.1-all.zip
3+
distributionSha256Sum=c16d517b50dd28b3f5838f0e844b7520b8f1eb610f2f29de7e4e04a1b7c9c79b
4+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-all.zip
55
networkTimeout=10000
66
validateDistributionUrl=true
77
zipStoreBase=GRADLE_USER_HOME

gradlew

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,8 @@ done
8383
# This is normally unused
8484
# shellcheck disable=SC2034
8585
APP_BASE_NAME=${0##*/}
86-
APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit
86+
# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
87+
APP_HOME=$( cd "${APP_HOME:-./}" > /dev/null && pwd -P ) || exit
8788

8889
# Use the maximum available, or set MAX_FD != -1 to use that value.
8990
MAX_FD=maximum
@@ -144,15 +145,15 @@ if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
144145
case $MAX_FD in #(
145146
max*)
146147
# In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked.
147-
# shellcheck disable=SC3045
148+
# shellcheck disable=SC2039,SC3045
148149
MAX_FD=$( ulimit -H -n ) ||
149150
warn "Could not query maximum file descriptor limit"
150151
esac
151152
case $MAX_FD in #(
152153
'' | soft) :;; #(
153154
*)
154155
# In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked.
155-
# shellcheck disable=SC3045
156+
# shellcheck disable=SC2039,SC3045
156157
ulimit -n "$MAX_FD" ||
157158
warn "Could not set maximum file descriptor limit to $MAX_FD"
158159
esac
@@ -201,11 +202,11 @@ fi
201202
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
202203
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
203204

204-
# Collect all arguments for the java command;
205-
# * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of
206-
# shell script including quotes and variable substitutions, so put them in
207-
# double quotes to make sure that they get re-expanded; and
208-
# * put everything else in single quotes, so that it's not re-expanded.
205+
# Collect all arguments for the java command:
206+
# * DEFAULT_JVM_OPTS, JAVA_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments,
207+
# and any embedded shellness will be escaped.
208+
# * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be
209+
# treated as '${Hostname}' itself on the command line.
209210

210211
set -- \
211212
"-Dorg.gradle.appname=$APP_BASE_NAME" \

settings.gradle.kts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,7 @@
1+
plugins {
2+
id("org.zaproxy.common.settings") version "0.2.0"
3+
4+
id("com.diffplug.spotless") version "6.20.0" apply false
5+
}
6+
17
rootProject.name = "fuzzdb-offensive"

0 commit comments

Comments
 (0)