Skip to content

Commit 64fc2f9

Browse files
authored
Merge pull request #300 from thc202/gradle/update-7.6
Update Gradle, plugins, and test dependencies
2 parents 2274f74 + ccc9f87 commit 64fc2f9

File tree

6 files changed

+21
-15
lines changed

6 files changed

+21
-15
lines changed

build.gradle.kts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import org.zaproxy.gradle.addon.misc.ConvertMarkdownToHtml
77
plugins {
88
`java-library`
99
id("org.zaproxy.add-on") version "0.8.0"
10-
id("org.zaproxy.crowdin") version "0.1.0"
11-
id("com.diffplug.spotless") version "6.11.0"
10+
id("org.zaproxy.crowdin") version "0.3.1"
11+
id("com.diffplug.spotless") version "6.14.1"
1212
}
1313

1414
repositories {
@@ -48,16 +48,16 @@ crowdin {
4848
}
4949
}
5050

51-
val jupiterVersion = "5.7.0-M1"
51+
val jupiterVersion = "5.9.2"
5252

5353
dependencies {
5454
testImplementation("org.junit.jupiter:junit-jupiter-api:$jupiterVersion")
5555
testImplementation("org.junit.jupiter:junit-jupiter-params:$jupiterVersion")
5656
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:$jupiterVersion")
5757

58-
testImplementation("commons-io:commons-io:2.6")
59-
testImplementation("org.assertj:assertj-core:3.11.0")
60-
testImplementation("org.apache.commons:commons-lang3:3.8")
58+
testImplementation("commons-io:commons-io:2.11.0")
59+
testImplementation("org.assertj:assertj-core:3.24.2")
60+
testImplementation("org.apache.commons:commons-lang3:3.12.0")
6161

6262
// The following versions should match the ones of the add-ons.
6363
testImplementation("org.codehaus.groovy:groovy-all:2.4.14")
@@ -93,7 +93,7 @@ var scriptTypes = listOf(
9393
"targeted",
9494
"variant",
9595
"websocketfuzzerprocessor",
96-
"websocketpassive"
96+
"websocketpassive",
9797
)
9898

9999
val syncScriptsDirTask by tasks.creating(Sync::class) {

gradle/wrapper/gradle-wrapper.jar

818 Bytes
Binary file not shown.
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionSha256Sum=db9c8211ed63f61f60292c69e80d89196f9eb36665e369e7f00ac4cc841c2219
4-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-all.zip
3+
distributionSha256Sum=312eb12875e1747e05c2f81a4789902d7e4ec5defbd1eefeaccc08acf096505d
4+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6-all.zip
5+
networkTimeout=10000
56
zipStoreBase=GRADLE_USER_HOME
67
zipStorePath=wrapper/dists

gradlew

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
# Darwin, MinGW, and NonStop.
5656
#
5757
# (3) This script is generated from the Groovy template
58-
# https://github.com/gradle/gradle/blob/master/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
58+
# https://github.com/gradle/gradle/blob/HEAD/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
5959
# within the Gradle project.
6060
#
6161
# You can find Gradle at https://github.com/gradle/gradle/.
@@ -80,10 +80,10 @@ do
8080
esac
8181
done
8282

83-
APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit
84-
85-
APP_NAME="Gradle"
83+
# This is normally unused
84+
# shellcheck disable=SC2034
8685
APP_BASE_NAME=${0##*/}
86+
APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit
8787

8888
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
8989
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
@@ -143,12 +143,16 @@ fi
143143
if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
144144
case $MAX_FD in #(
145145
max*)
146+
# In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked.
147+
# shellcheck disable=SC3045
146148
MAX_FD=$( ulimit -H -n ) ||
147149
warn "Could not query maximum file descriptor limit"
148150
esac
149151
case $MAX_FD in #(
150152
'' | soft) :;; #(
151153
*)
154+
# In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked.
155+
# shellcheck disable=SC3045
152156
ulimit -n "$MAX_FD" ||
153157
warn "Could not set maximum file descriptor limit to $MAX_FD"
154158
esac

gradlew.bat

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ if "%OS%"=="Windows_NT" setlocal
2626

2727
set DIRNAME=%~dp0
2828
if "%DIRNAME%"=="" set DIRNAME=.
29+
@rem This is normally unused
2930
set APP_BASE_NAME=%~n0
3031
set APP_HOME=%DIRNAME%
3132

src/test/java/org/zaproxy/VerifyScripts.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ class VerifyScripts {
6868
private static List<Path> files;
6969

7070
@BeforeAll
71-
private static void readScriptDirs() throws Exception {
71+
static void readScriptDirs() throws Exception {
7272
readFiles();
7373
}
7474

@@ -83,7 +83,7 @@ void shouldParseScript(
8383
}
8484

8585
@AfterAll
86-
private static void verifyAllFilesTested() {
86+
static void verifyAllFilesTested() {
8787
assertThat(files).as("Not all files were tested: %s", files).isEmpty();
8888
}
8989

0 commit comments

Comments
 (0)