Skip to content

Commit 8e8820c

Browse files
authored
Merge pull request #77 from thc202/release-1.7.0
Release 1.7.0
2 parents eb35ef2 + b9f7005 commit 8e8820c

39 files changed

+1075
-513
lines changed

.gitattributes

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
* text=auto
1+
* text=auto eol=lf
22

33
*.java text
44
*.properties text
55
*.md text
66
*.xml text
77
*.gradle text
88

9-
*.bat text eol=crlf
10-
*.sh text eol=lf
11-
gradlew text eol=lf
9+
*.bat eol=crlf
10+
*.sh text
11+
gradlew text
1212

1313
*.jar binary

.travis.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
language: java
2-
sudo: false
32

43
jdk:
54
- oraclejdk8
6-
- oraclejdk9
5+
- openjdk11
76

87
before_cache:
98
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock

CHANGELOG.md

Lines changed: 110 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,110 @@
1+
# Changelog
2+
All notable changes to this project will be documented in this file.
3+
4+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
5+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6+
7+
## [1.7.0] - 2019-06-13
8+
### Added
9+
- Add API for SOAP Scanner add-on, version 3.
10+
11+
### Changed
12+
- Core APIs updated for ZAP version 2.8.0.
13+
- Update Replacer API, per release of version 7.
14+
- Update Websocket API, per release of version 19.
15+
- Update Selenium API, per release of version 15.0.0.
16+
- Add description to Importurls and AlertFilter API endpoints.
17+
18+
### Fixed
19+
- Disable XXE processing when parsing ZAP API responses.
20+
- Ensure alerts file is always closed.
21+
22+
## [1.6.0] - 2018-04-10
23+
### Added
24+
- WebSockets ("websocket").
25+
26+
### Fixed
27+
- Explicitly disable HTTP caching, to always obtain a fresh response from ZAP.
28+
29+
## [1.5.0] - 2017-11-30
30+
### Changed
31+
- Core APIs updated for ZAP version 2.7.0.
32+
33+
## [1.4.0] - 2017-07-13
34+
### Added
35+
- New Ant task to create ZAP reports:
36+
```XML
37+
<!-- Defined the task: -->
38+
<taskdef name="reportTask" classname="org.zaproxy.clientapi.ant.ReportTask" />
39+
<!-- Call the task: -->
40+
<reportTask zapAddress="localhost" zapPort="8080" apikey="API-KEY"
41+
type="html" file="report.html" overwrite="true" />
42+
<!--
43+
type - the type/format of the report (e.g. HTML, XML, MD), defaults to HTML.
44+
file - where the report should be created (can be an absolute path, if relative it is resolved against the build directory).
45+
overwrite - if the file should be overwritten.
46+
-->
47+
```
48+
49+
## [1.3.0] - 2017-06-23
50+
### Added
51+
- Import files containing URLs ("importurls").
52+
- OpenAPI Support ("openapi").
53+
- Replacer ("replacer").
54+
55+
### Changed
56+
- Update scan Ant tasks to wait for the corresponding scan to finish.
57+
58+
## [1.2.0] - 2017-03-29
59+
### Changed
60+
- Core APIs updated for ZAP version 2.6.0.
61+
- Update AJAX Spider API
62+
- Allows to obtain the full results of a scan, messages in/out of scope
63+
and message with I/O errors.
64+
65+
## [1.1.1] - 2017-03-09
66+
### Fixed
67+
- Fixed a bug that prevented the new API methods (that don't require
68+
the API key) from being used with ZAP versions <= 2.5.0.
69+
70+
## [1.1.0] - 2017-03-09
71+
### Added
72+
- Context Alert Filters API, for more information refer to the help page:
73+
https://github.com/zaproxy/zap-extensions/wiki/HelpAddonsAlertFiltersAlertFilter
74+
- The `Alert` now exposes the alert ID, message ID, and scanner ID.
75+
- Added confidence "False Positive" (enum `Alert.Confidence`).
76+
77+
### Changed
78+
- The `ClientApi` now allows to set the API key through the constructor,
79+
which ensures that the API key is sent whenever required.
80+
- It's now possible to obtain the keys of the values of an `ApiResponseSet`
81+
(also, deprecated unused/unnecessary constructor and method).
82+
- It's now possible to specify the API key in all Ant tasks.
83+
- Update AJAX Spider API
84+
- Allows to scan a context, as a user and just a subtree.
85+
- Update Selenium API
86+
- Allows to choose which Firefox binary is used and set the path to geckodriver.
87+
88+
### Deprecated
89+
- The API methods that allowed to pass the API key were deprecated in
90+
favour of using the new `ClientApi` constructor.
91+
- `Alert` and `AlertTask` now use `name` instead of `alert` for the name
92+
of the alert (zaproxy/zaproxy#1341), older methods were deprecated.
93+
94+
### Fixed
95+
- `ApiResponseSet` now has as values `ApiResponse` (zaproxy/zaproxy#3228).
96+
97+
## [1.0.0] - 2016-06-03
98+
### Added
99+
- First version as "stand alone library", it was migrated from the [zaproxy repository](https://github.com/zaproxy/zaproxy)
100+
and released to Maven Central.
101+
102+
[1.7.0]: https://github.com/zaproxy/zap-api-java/compare/v1.6.0...v1.7.0
103+
[1.6.0]: https://github.com/zaproxy/zap-api-java/compare/v1.5.0...v1.6.0
104+
[1.5.0]: https://github.com/zaproxy/zap-api-java/compare/v1.4.0...v1.5.0
105+
[1.4.0]: https://github.com/zaproxy/zap-api-java/compare/v1.3.0...v1.4.0
106+
[1.3.0]: https://github.com/zaproxy/zap-api-java/compare/v1.2.0...v1.3.0
107+
[1.2.0]: https://github.com/zaproxy/zap-api-java/compare/v1.1.1...v1.2.0
108+
[1.1.1]: https://github.com/zaproxy/zap-api-java/compare/v1.1.0...v1.1.1
109+
[1.1.0]: https://github.com/zaproxy/zap-api-java/compare/v1.0.0...v1.1.0
110+
[1.0.0]: https://github.com/zaproxy/zap-api-java/compare/6c778f77a817e1ff71e9279e4759535d482e8393...v1.0.0

CHANGES.md

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

README.md

Lines changed: 5 additions & 89 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[![Version](https://maven-badges.herokuapp.com/maven-central/org.zaproxy/zap-clientapi/badge.svg)](https://maven-badges.herokuapp.com/maven-central/org.zaproxy/zap-clientapi/)
44
[![License](https://img.shields.io/badge/license-Apache%202-4EB1BA.svg)](https://www.apache.org/licenses/LICENSE-2.0.html)
5-
[![Build Status](https://api.travis-ci.org/zaproxy/zap-api-java.svg?branch=develop)](https://travis-ci.org/zaproxy/zap-api-java)
5+
[![Build Status](https://api.travis-ci.com/zaproxy/zap-api-java.svg?branch=develop)](https://travis-ci.com/zaproxy/zap-api-java)
66
[![Known Vulnerabilities](https://snyk.io/test/github/zaproxy/zap-api-java/badge.svg)](https://snyk.io/test/github/zaproxy/zap-api-java)
77

88
The Java implementation to access the [OWASP ZAP API](https://github.com/zaproxy/zaproxy/wiki/ApiDetails). For more information
@@ -17,14 +17,14 @@ This project produces two libraries:
1717

1818
The latest released versions can be downloaded from the [Releases page](https://github.com/zaproxy/zap-api-java/releases).
1919

20-
Or, if using a dependency management tool, for example [Maven](https://maven.apache.org/), the `zap-clientapi` library
21-
can be obtained from [Maven Central](http://search.maven.org/) with following coordinates:
20+
Or, if using a dependency management tool, for example [Maven](https://maven.apache.org/) or [Gradle](https://gradle.org/), the `zap-clientapi` library
21+
can be obtained from [Maven Central](https://search.maven.org/) with following coordinates:
2222

2323
* GroupId: `org.zaproxy`
2424
* ArtifactId: `zap-clientapi`
25-
* Version: `1.6.0`
25+
* Version: `1.7.0`
2626

27-
Previous releases are also available, more details can be found in [Maven Central](http://search.maven.org/#search|ga|1|org.zaproxy).
27+
Previous releases are also available, more details can be found in [Maven Central](https://search.maven.org/search?q=g:org.zaproxy%20AND%20a:zap-clientapi&core=gav).
2828

2929
## Getting Help
3030

@@ -53,87 +53,3 @@ To install the artifacts to the local Maven repository you can run the following
5353
./gradlew install
5454

5555
The installed artifacts (`zap-clientapi`) are then available for other (local) projects to use.
56-
57-
## Releasing
58-
59-
In the following sections it will be explained the steps necessary to release a new version of the libraries. In all steps the
60-
version to be released is referred to as `<version-to-release>`, which should be replaced with appropriate version number
61-
(e.g. 2.1.0).
62-
63-
### Release Branching
64-
65-
The project follows the [git-flow branching model](http://nvie.com/posts/a-successful-git-branching-model/). To release a new version it needs to be created a new release branch, update the version, and tag:
66-
1. Create a release branch:
67-
`git checkout -b release-<version-to-release> develop`;
68-
2. Update version in:
69-
1. `build.gradle` file (e.g. remove `-SNAPSHOT`);
70-
2. source code (e.g. `@since` and `@deprecated` JavaDoc tags);
71-
3. `README.md` file (in `How to Obtain` section);
72-
3. Review that everything is correct and commit the changes:
73-
`git commit -S -m "Bump version number to <version-to-release>"`
74-
4. Checkout `master` and merge the release branch:
75-
1. `git checkout master`
76-
2. `git merge -S --no-ff release-<version-to-release> -m "Merge branch 'release-<version-to-release>' into master"`
77-
5. Tag the new version:
78-
`git tag -s v<version-to-release> -m "Version <version-to-release>"`
79-
80-
Reintegrate the changes into `develop` branch:
81-
1. Checkout develop branch:
82-
`git checkout develop`
83-
2. Merge the `release-<version-to-release>` branch:
84-
`git merge -S --no-ff release-<version-to-release> -m "Merge branch 'release-<version-to-release>' into develop"`
85-
1. Resolve possible conflicts;
86-
1. The version can be bumped to the next developing version (e.g. increase the minor version and add `-SNAPSHOT`);
87-
2. Continue with the merge (if the version was bumped mention it in the commit message);
88-
3. Bump to the next developing version now (e.g. increase the minor version and add `-SNAPSHOT`), if not done during the merge:
89-
`git commit -S -m "Bump version number to <developing-version>-SNAPSHOT"`
90-
91-
Delete the release branch:
92-
93-
git branch -d release-<version-to-release>
94-
95-
Push the branches (`develop` and `master`) and tag:
96-
97-
git push upstream develop master v<version-to-release>
98-
99-
(Assuming `upstream` is the zaproxy repo.)
100-
101-
### Build for Release
102-
103-
Checkout the tagged version:
104-
105-
git checkout v<version-to-release>
106-
107-
Create the artifacts/libraries necessary for the release:
108-
109-
./gradlew clean build
110-
111-
### Release to Maven Central
112-
113-
To upload the built artifacts to OSSRH you can run the following:
114-
115-
./gradlew uploadArchives
116-
117-
Once uploaded continue with the release process in OSSRH:
118-
http://central.sonatype.org/pages/releasing-the-deployment.html
119-
120-
NOTE: The following properties must be defined (e.g. in file `GRADLE_HOME/gradle.properties` ) to successfully sign and
121-
upload the artifacts:
122-
- `signing.keyId` - the ID of the GPG key, used to sign the artifacts;
123-
- `ossrhUsername` - the OSSRH username;
124-
- `ossrhPassword` - the OSSRH password for above username.
125-
126-
Also, the user must have permissions to upload to GroupId `org.zaproxy`.
127-
128-
### GitHub Release
129-
130-
Release in GitHub:
131-
1. Draft a [new release](https://github.com/zaproxy/zap-api-java/releases/new):
132-
- Tag: `v<version-to-release>`
133-
- Title: `Version <version-to-release>`
134-
- Description: (Add a summary of the changes done in the new version and mention the artifacts/libraries available.)
135-
2. Upload the libraries:
136-
- `zap-api-<version-to-release>.jar`
137-
- `zap-clientapi-<version-to-release>.jar`
138-
- `zap-clientapi-ant-<version-to-release>.jar`
139-
3. Publish release.

0 commit comments

Comments
 (0)