From 1f7f317f62804e4f1c910ca2410593a8bfee55be Mon Sep 17 00:00:00 2001 From: Thomas Behr Date: Fri, 4 Nov 2022 16:45:08 +0100 Subject: [PATCH] updated change log documentation, examples, and properties for 4.0.0 --- CHANGELOG.md | 12 ++++++++++-- docs/setup.md | 6 +++--- examples/annotation/build.gradle | 4 ++-- examples/annotation/build.xml | 2 +- examples/annotation/pom.xml | 4 ++-- examples/application/build.gradle | 2 +- examples/application/build.xml | 2 +- examples/application/pom.xml | 2 +- examples/external_library/build.gradle | 2 +- examples/external_library/build.xml | 2 +- examples/external_library/pom.xml | 2 +- examples/fxml/build.gradle | 4 ++-- examples/library/build.gradle | 2 +- examples/library/build.xml | 2 +- examples/library/pom.xml | 2 +- examples/processing/pom.xml | 2 +- examples/resources/build.gradle | 2 +- examples/resources/build.xml | 2 +- examples/resources/pom.xml | 2 +- examples/serializable_exclusion/build.gradle | 2 +- examples/serializable_exclusion/build.xml | 2 +- examples/serializable_exclusion/pom.xml | 2 +- gradle.properties | 4 ++-- 23 files changed, 38 insertions(+), 30 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9b3d350..0923473 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,11 +4,18 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). -## [Unreleased] +## [4.0.0] + +### Added +- Added `replaceContentPolicy` and `replacePathPolicy` configuration options for adjusting resource files. + With these policies it is possible to choose between the lenient behavior from yGuard 3.x and the strict behavior from yGuard 2.x. ### Fixed - Fixed treatment of NestHost and NestMembers attributes when shrinking. +### Changed +- Updated gson dependency in examples from 2.8.6 to 2.8.9 + ## [3.1.0] ### Added @@ -343,7 +350,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Implemented more robust handling of Manifest files. Implementation now makes use of `java.util.jar.Manifest`. - The `conserveManifest` attribute of the obfuscate task now conserves the manifest in a better way. -[Unreleased]: https://github.com/yworks/yguard/compare/3.1.0...HEAD +[Unreleased]: https://github.com/yworks/yguard/compare/4.0.0...HEAD +[4.0.0]: https://github.com/yworks/yguard/compare/3.1.0...4.0.0 [3.1.0]: https://github.com/yworks/yguard/compare/3.0.0...3.1.0 [3.0.0]: https://github.com/yworks/yguard/compare/2.10.0...3.0.0 [2.10.0]: https://github.com/yworks/yguard/compare/2.9.2...2.10.0 diff --git a/docs/setup.md b/docs/setup.md index 4c2ff84..54251ac 100644 --- a/docs/setup.md +++ b/docs/setup.md @@ -6,7 +6,7 @@ Depending on your build system, you will use [`AntRun`](http://maven.apache.org/ Download the bundle from the [Github release page](https://github.com/yWorks/yguard/releases/latest). After downloading and extracting the `jar` files, place them in a path near to your build script. You may use absolute paths, but our examples expect the jar file to lie in the same directory as your build file. Once extracted, you can use the `yguard` element like so: ```xml - + @@ -23,7 +23,7 @@ You can use `yGuard` directly from `Maven` central. Add the `yGuard` dependency com.yworks yguard - 3.1.0 + 4.0.0 compile ``` @@ -64,7 +64,7 @@ repositories { } dependencies { - compileOnly 'com.yworks:yguard:3.1.0' + compileOnly 'com.yworks:yguard:4.0.0' } task yguard { diff --git a/examples/annotation/build.gradle b/examples/annotation/build.gradle index 9a77180..77b3291 100644 --- a/examples/annotation/build.gradle +++ b/examples/annotation/build.gradle @@ -9,8 +9,8 @@ repositories { } dependencies { - compile 'com.yworks:yguard:3.1.0-SNAPSHOT' - compile 'com.yworks:annotation:3.1.0-SNAPSHOT' + compile 'com.yworks:yguard:4.0.0' + compile 'com.yworks:annotation:4.0.0' } task obfuscate { diff --git a/examples/annotation/build.xml b/examples/annotation/build.xml index 9c82c6a..a2c6f16 100644 --- a/examples/annotation/build.xml +++ b/examples/annotation/build.xml @@ -1,7 +1,7 @@ - + diff --git a/examples/annotation/pom.xml b/examples/annotation/pom.xml index fdab229..daeb7a4 100644 --- a/examples/annotation/pom.xml +++ b/examples/annotation/pom.xml @@ -16,13 +16,13 @@ com.yworks yguard - 3.1.0-SNAPSHOT + 4.0.0 compile com.yworks annotation - 3.1.0-SNAPSHOT + 4.0.0 diff --git a/examples/application/build.gradle b/examples/application/build.gradle index 28a4469..077967c 100644 --- a/examples/application/build.gradle +++ b/examples/application/build.gradle @@ -21,7 +21,7 @@ repositories { } dependencies { - compile 'com.yworks:yguard:3.1.0-SNAPSHOT' + compile 'com.yworks:yguard:4.0.0' } task obfuscate { diff --git a/examples/application/build.xml b/examples/application/build.xml index 9e14f0c..136fac5 100644 --- a/examples/application/build.xml +++ b/examples/application/build.xml @@ -1,7 +1,7 @@ - + diff --git a/examples/application/pom.xml b/examples/application/pom.xml index 40b5c59..b45b771 100644 --- a/examples/application/pom.xml +++ b/examples/application/pom.xml @@ -16,7 +16,7 @@ com.yworks yguard - 3.1.0-SNAPSHOT + 4.0.0 compile diff --git a/examples/external_library/build.gradle b/examples/external_library/build.gradle index 477dbbc..712d2d0 100644 --- a/examples/external_library/build.gradle +++ b/examples/external_library/build.gradle @@ -30,7 +30,7 @@ configurations { } dependencies { - compile 'com.yworks:yguard:3.1.0-SNAPSHOT' + compile 'com.yworks:yguard:4.0.0' gson 'com.google.code.gson:gson:2.8.9' implementation configurations.gson.dependencies } diff --git a/examples/external_library/build.xml b/examples/external_library/build.xml index 0e698bd..15286c7 100644 --- a/examples/external_library/build.xml +++ b/examples/external_library/build.xml @@ -1,7 +1,7 @@ - + diff --git a/examples/external_library/pom.xml b/examples/external_library/pom.xml index 7441c9d..3dbf64f 100644 --- a/examples/external_library/pom.xml +++ b/examples/external_library/pom.xml @@ -16,7 +16,7 @@ com.yworks yguard - 3.1.0-SNAPSHOT + 4.0.0 compile diff --git a/examples/fxml/build.gradle b/examples/fxml/build.gradle index e5f5808..01d7c2f 100644 --- a/examples/fxml/build.gradle +++ b/examples/fxml/build.gradle @@ -27,8 +27,8 @@ repositories { } dependencies { - compile 'com.yworks:yguard:3.1.0-SNAPSHOT' - compile 'com.yworks:annotation:3.1.0-SNAPSHOT' + compile 'com.yworks:yguard:4.0.0' + compile 'com.yworks:annotation:4.0.0' } task obfuscate { diff --git a/examples/library/build.gradle b/examples/library/build.gradle index 6be53b4..1214beb 100644 --- a/examples/library/build.gradle +++ b/examples/library/build.gradle @@ -26,7 +26,7 @@ repositories { } dependencies { - compile 'com.yworks:yguard:3.1.0-SNAPSHOT' + compile 'com.yworks:yguard:4.0.0' } task obfuscate { diff --git a/examples/library/build.xml b/examples/library/build.xml index 53b83e6..289ad5d 100644 --- a/examples/library/build.xml +++ b/examples/library/build.xml @@ -1,7 +1,7 @@ - + diff --git a/examples/library/pom.xml b/examples/library/pom.xml index cf77874..160eada 100644 --- a/examples/library/pom.xml +++ b/examples/library/pom.xml @@ -16,7 +16,7 @@ com.yworks yguard - 3.1.0-SNAPSHOT + 4.0.0 compile diff --git a/examples/processing/pom.xml b/examples/processing/pom.xml index a01f748..17cc070 100644 --- a/examples/processing/pom.xml +++ b/examples/processing/pom.xml @@ -25,7 +25,7 @@ com.yworks yguard - 3.1.0-SNAPSHOT + 4.0.0