Skip to content

Releases: MJaroslav/Bon2Gradle

0.5.0

17 Mar 22:47
ca6be6f
Compare
Choose a tag to compare

0.5.0 - 2024-03-18

Added

  • deobf function variant with Closure for "pure" dependency.
  • deobf function with Dependency object as argument.
  • Clean tasks:
    • cleanDeobfCache - remove all deobfuscated artifacts cache (just run next two tasks).
    • cleanLocalDeobfCache - remove local (in project build directory) deobfuscated artifacts cache.
    • cleanGlobalDeobfCache - remove global (in Gradle home caches) deobfuscated artifacts cache.
  • Deobfuscated dependencies now have version
    suffix: _deobfuscated_with_{MAPPINGS_CHANNEL}_{MAPPINGS_VERSION}-{MC_VERSION} for "pure" artifacts
    and _deobfuscated_with_DIRTY for "dirty" artifacts.
  • Now deobfuscated artifacts location contains subdirectories with group, name and version like as in maven.
  • Bon2Task now have "reverse" option (maybe buggy).
  • All deobfuscation performs after project evaluation or on resolve request (extension option).
  • Extension option for forcing saving all deobfuscated artifacts locally in project (mark all as "dirty").

Fixed

Changed

  • Support Gradle 8.5 (tested).
  • deobf function now create Dependency object instead of Provider<Dependency>.
  • MappingProvider:
    • Some helper functions: CSV file to Map<String, String> parser and task executor.
    • Now contains two functions: one for "pure" mapping name and second for "dirty" mapping Map<String, String>.
      "pure" has a higher priority than "dirty" function.
  • force options in extension changed like as MappingProvider.
  • Maximum abstraction from Internal classes (but not fully).
  • Some additions in tests.

Removed

  • Internal implementation of Provider<Dependency>.

0.4.0

17 Oct 20:27
07f2ab6
Compare
Choose a tag to compare

0.4.0 - 2022-10-17

Edited

  • Full switch to using kotlin as build script and source language.

0.3.1

16 Oct 18:27
54722e2
Compare
Choose a tag to compare

0.3.1 - 2022-10-16

Fixed

  • Project configuration error with "Plugin class is abstract" error on some versions of Gradle. (But not sure in this).

0.3.0

14 Oct 13:47
151ec3d
Compare
Choose a tag to compare

0.3.0 - 2022-10-14

Fixed

  • Sometimes deobfuscated jars not appear in their dir. Task clean just removes it. Now, deobfuscated jars directory
    moved to caches in gradle home.

Added

  • Parallel dependency deobfuscation.
    • With toggle option in bon2 extension.

Edited

  • Package structure refactor.
  • Using GradleException based exceptions in "dependency resolving/deobfuscation code".

0.2.0

10 Oct 05:35
20d082f
Compare
Choose a tag to compare

0.2.0 - 2022-10-10

Fixed

  • BON resolving problem by using my own fork of this library.

0.1.0

09 Oct 02:23
5291c5d
Compare
Choose a tag to compare

0.1.0 - 2022-10-09

Added

  • You can wrap your dependency in bon2.deobf method for deobfuscate it.
  • Gradle extension with configuration.
    • Force mappings.
    • Mappings provider (if you use another MC dev plugin).
  • Bon2Task for use BON2 in Gradle.