Skip to content

Commit ffec41f

Browse files
authored
Merge pull request #420 from thc202/gradle/update-8.5
Update Gradle to 8.5 and ZAP to 2.14
2 parents cfa1896 + 18136f1 commit ffec41f

File tree

13 files changed

+31
-58
lines changed

13 files changed

+31
-58
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/codeql.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
language: [ 'java', 'javascript', 'python', 'ruby' ]
2424

2525
steps:
26-
- uses: actions/checkout@v3
26+
- uses: actions/checkout@v4
2727
- uses: github/codeql-action/init@v2
2828
with:
2929
languages: ${{ matrix.language }}

.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
- Remove checks for CFU initiator in HTTP Sender scripts and docs, no longer needed.
1010
- Rename AWS signing script.
1111
- Update descriptions/comments in scripts.

build.gradle.kts

Lines changed: 4 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,10 @@ import org.zaproxy.gradle.addon.misc.ConvertMarkdownToHtml
77

88
plugins {
99
`java-library`
10-
id("org.zaproxy.add-on") version "0.9.0"
10+
id("org.zaproxy.add-on") version "0.10.0"
1111
id("org.zaproxy.crowdin") version "0.3.1"
12-
id("com.diffplug.spotless") version "6.20.0"
13-
}
14-
15-
repositories {
16-
mavenCentral()
12+
id("com.diffplug.spotless")
13+
id("org.zaproxy.common")
1714
}
1815

1916
description = "Useful ZAP scripts written by the ZAP community."
@@ -23,7 +20,7 @@ val scriptsDir = layout.buildDirectory.dir("scripts")
2320
zapAddOn {
2421
addOnId.set("communityScripts")
2522
addOnName.set("Community Scripts")
26-
zapVersion.set("2.13.0")
23+
zapVersion.set("2.14.0")
2724
addOnStatus.set(AddOnStatus.ALPHA)
2825

2926
releaseLink.set("https://github.com/zaproxy/community-scripts/compare/v@[email protected]@CURRENT_VERSION@")
@@ -64,11 +61,6 @@ dependencies {
6461
testImplementation("org.python:jython-standalone:2.7.2")
6562
}
6663

67-
tasks.withType<JavaCompile>().configureEach {
68-
options.encoding = "UTF-8"
69-
options.compilerArgs = listOf("-Xlint:all", "-Xlint:-options", "-Werror")
70-
}
71-
7264
tasks.withType<Test>().configureEach {
7365
useJUnitPlatform()
7466
}
@@ -117,12 +109,6 @@ java {
117109
sourceSets["main"].output.dir(mapOf("builtBy" to syncScriptsDirTask), scriptsDir)
118110

119111
spotless {
120-
java {
121-
licenseHeaderFile("$rootDir/gradle/spotless/license.java")
122-
123-
googleJavaFormat("1.17.0").aosp()
124-
}
125-
126112
kotlinGradle {
127113
ktlint()
128114
}

gradle/spotless/license.java

Lines changed: 0 additions & 19 deletions
This file was deleted.

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

0 commit comments

Comments
 (0)