Skip to content

Commit

Permalink
updated change log documentation, examples, and properties for 4.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasbehr committed Nov 4, 2022
1 parent e0a892c commit 1f7f317
Show file tree
Hide file tree
Showing 23 changed files with 38 additions and 30 deletions.
12 changes: 10 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions docs/setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
<property name="version" value="3.1.0"/>
<property name="version" value="4.0.0"/>

<target name="yguard">
<taskdef name="yguard" classname="com.yworks.yguard.YGuardTask" classpath="${projectDir}/yguard-${version}.jar"/>
Expand All @@ -23,7 +23,7 @@ You can use `yGuard` directly from `Maven` central. Add the `yGuard` dependency
<dependency>
<groupId>com.yworks</groupId>
<artifactId>yguard</artifactId>
<version>3.1.0</version>
<version>4.0.0</version>
<scope>compile</scope>
</dependency>
```
Expand Down Expand Up @@ -64,7 +64,7 @@ repositories {
}
dependencies {
compileOnly 'com.yworks:yguard:3.1.0'
compileOnly 'com.yworks:yguard:4.0.0'
}
task yguard {
Expand Down
4 changes: 2 additions & 2 deletions examples/annotation/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion examples/annotation/build.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<project>
<property name="projectDir" value="."/>
<property name="libraryDir" value="lib"/>
<property name="version" value="3.1.0-SNAPSHOT"/>
<property name="version" value="4.0.0"/>

<property name="project_name" value="HelloWorld"/>
<property name="jar" value="build/jar/${project_name}.jar"/>
Expand Down
4 changes: 2 additions & 2 deletions examples/annotation/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@
<dependency>
<groupId>com.yworks</groupId>
<artifactId>yguard</artifactId>
<version>3.1.0-SNAPSHOT</version>
<version>4.0.0</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>com.yworks</groupId>
<artifactId>annotation</artifactId>
<version>3.1.0-SNAPSHOT</version>
<version>4.0.0</version>
</dependency>
</dependencies>
<build>
Expand Down
2 changes: 1 addition & 1 deletion examples/application/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ repositories {
}

dependencies {
compile 'com.yworks:yguard:3.1.0-SNAPSHOT'
compile 'com.yworks:yguard:4.0.0'
}

task obfuscate {
Expand Down
2 changes: 1 addition & 1 deletion examples/application/build.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<project>
<property name="projectDir" value="."/>
<property name="libraryDir" value="lib"/>
<property name="version" value="3.1.0-SNAPSHOT"/>
<property name="version" value="4.0.0"/>

<property name="project_name" value="HelloWorld"/>
<property name="jar" value="build/jar/${project_name}.jar"/>
Expand Down
2 changes: 1 addition & 1 deletion examples/application/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<dependency>
<groupId>com.yworks</groupId>
<artifactId>yguard</artifactId>
<version>3.1.0-SNAPSHOT</version>
<version>4.0.0</version>
<scope>compile</scope>
</dependency>
</dependencies>
Expand Down
2 changes: 1 addition & 1 deletion examples/external_library/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
2 changes: 1 addition & 1 deletion examples/external_library/build.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<project>
<property name="projectDir" value="."/>
<property name="libraryDir" value="lib"/>
<property name="version" value="3.1.0-SNAPSHOT"/>
<property name="version" value="4.0.0"/>

<property name="project_name" value="HelloWorld"/>
<property name="jar" value="build/jar/${project_name}.jar"/>
Expand Down
2 changes: 1 addition & 1 deletion examples/external_library/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<dependency>
<groupId>com.yworks</groupId>
<artifactId>yguard</artifactId>
<version>3.1.0-SNAPSHOT</version>
<version>4.0.0</version>
<scope>compile</scope>
</dependency>
<!-- Gson: Java to Json conversion -->
Expand Down
4 changes: 2 additions & 2 deletions examples/fxml/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion examples/library/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ repositories {
}

dependencies {
compile 'com.yworks:yguard:3.1.0-SNAPSHOT'
compile 'com.yworks:yguard:4.0.0'
}

task obfuscate {
Expand Down
2 changes: 1 addition & 1 deletion examples/library/build.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<project>
<property name="projectDir" value="."/>
<property name="libraryDir" value="lib"/>
<property name="version" value="3.1.0-SNAPSHOT"/>
<property name="version" value="4.0.0"/>

<property name="project_name" value="HelloWorld"/>
<property name="jar" value="build/jar/${project_name}.jar"/>
Expand Down
2 changes: 1 addition & 1 deletion examples/library/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<dependency>
<groupId>com.yworks</groupId>
<artifactId>yguard</artifactId>
<version>3.1.0-SNAPSHOT</version>
<version>4.0.0</version>
<scope>compile</scope>
</dependency>
</dependencies>
Expand Down
2 changes: 1 addition & 1 deletion examples/processing/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<dependency>
<groupId>com.yworks</groupId>
<artifactId>yguard</artifactId>
<version>3.1.0-SNAPSHOT</version>
<version>4.0.0</version>
<!--
prevent the spring boot plug-in from bundling yGuard and its
dependencies into the project jar / project build artefact
Expand Down
2 changes: 1 addition & 1 deletion examples/resources/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ repositories {
}

dependencies {
compile 'com.yworks:yguard:3.1.0-SNAPSHOT'
compile 'com.yworks:yguard:4.0.0'
}

task obfuscate {
Expand Down
2 changes: 1 addition & 1 deletion examples/resources/build.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<project>
<property name="projectDir" value="."/>
<property name="libraryDir" value="lib"/>
<property name="version" value="3.1.0-SNAPSHOT"/>
<property name="version" value="4.0.0"/>

<property name="project_name" value="HelloWorld"/>
<property name="jar" value="build/jar/${project_name}.jar"/>
Expand Down
2 changes: 1 addition & 1 deletion examples/resources/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<dependency>
<groupId>com.yworks</groupId>
<artifactId>yguard</artifactId>
<version>3.1.0-SNAPSHOT</version>
<version>4.0.0</version>
<scope>compile</scope>
</dependency>
</dependencies>
Expand Down
2 changes: 1 addition & 1 deletion examples/serializable_exclusion/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ repositories {
}

dependencies {
compile 'com.yworks:yguard:3.1.0-SNAPSHOT'
compile 'com.yworks:yguard:4.0.0'
}

task obfuscate {
Expand Down
2 changes: 1 addition & 1 deletion examples/serializable_exclusion/build.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<project>
<property name="projectDir" value="."/>
<property name="libraryDir" value="lib"/>
<property name="version" value="3.1.0-SNAPSHOT"/>
<property name="version" value="4.0.0"/>

<property name="project_name" value="HelloWorld"/>
<property name="jar" value="build/jar/${project_name}.jar"/>
Expand Down
2 changes: 1 addition & 1 deletion examples/serializable_exclusion/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<dependency>
<groupId>com.yworks</groupId>
<artifactId>yguard</artifactId>
<version>3.1.0-SNAPSHOT</version>
<version>4.0.0</version>
<scope>compile</scope>
</dependency>
</dependencies>
Expand Down
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
VERSION_MAJOR=3.1
VERSION_MINOR=0-SNAPSHOT
VERSION_MAJOR=4.0
VERSION_MINOR=0

POM_DESCRIPTION=The open-source Java obfuscation tool working with Ant and Gradle by yWorks - the diagramming experts
POM_URL=https://github.com/yWorks/yGuard
Expand Down

0 comments on commit 1f7f317

Please sign in to comment.