{"id":18327973,"url":"https://github.com/gianttreelp/proguard-services-mapper","last_synced_at":"2025-04-06T01:32:15.719Z","repository":{"id":37977228,"uuid":"440942103","full_name":"GiantTreeLP/proguard-services-mapper","owner":"GiantTreeLP","description":"A solution to fix obfuscated Java services after ProGuard has run.","archived":false,"fork":false,"pushed_at":"2025-03-21T01:15:22.000Z","size":312,"stargazers_count":3,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-21T15:10:59.011Z","etag":null,"topics":["cli","gradle-plugin","java","kotlin","maven-plugin","obfuscation","proguard"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/GiantTreeLP.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-12-22T17:56:13.000Z","updated_at":"2025-02-24T16:39:56.000Z","dependencies_parsed_at":"2023-02-18T12:03:48.443Z","dependency_job_id":"26c45838-a7d9-4503-b30b-f5907a70fd18","html_url":"https://github.com/GiantTreeLP/proguard-services-mapper","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GiantTreeLP%2Fproguard-services-mapper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GiantTreeLP%2Fproguard-services-mapper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GiantTreeLP%2Fproguard-services-mapper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GiantTreeLP%2Fproguard-services-mapper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GiantTreeLP","download_url":"https://codeload.github.com/GiantTreeLP/proguard-services-mapper/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247423478,"owners_count":20936621,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","gradle-plugin","java","kotlin","maven-plugin","obfuscation","proguard"],"created_at":"2024-11-05T19:12:49.065Z","updated_at":"2025-04-06T01:32:13.886Z","avatar_url":"https://github.com/GiantTreeLP.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ProGuard Service Mapper\n[![GitHub license](https://img.shields.io/github/license/GiantTreeLP/proguard-services-mapper)](https://github.com/GiantTreeLP/proguard-services-mapper/blob/main/LICENSE)\n[![Maven Package](https://github.com/GiantTreeLP/proguard-services-mapper/actions/workflows/publish.yml/badge.svg)](https://github.com/GiantTreeLP/proguard-services-mapper/actions/workflows/maven-publish.yml)\n[![Maven Central](https://img.shields.io/maven-central/v/com.github.gianttreelp.proguardservicesmapper/proguard-services-mapper-common)](https://search.maven.org/artifact/com.github.gianttreelp.proguardservicesmapper/proguard-services-mapper-common)\n[![Sonatype Nexus (Snapshots)](https://img.shields.io/nexus/s/com.github.gianttreelp.proguardservicesmapper/proguard-services-mapper-common?server=https%3A%2F%2Foss.sonatype.org)](https://oss.sonatype.org/content/repositories/snapshots/com/github/gianttreelp/proguardservicesmapper/)\n[![GitHub stars](https://img.shields.io/github/stars/GiantTreeLP/proguard-services-mapper)](https://github.com/GiantTreeLP/proguard-services-mapper/stargazers)\n\nThis is a service mapper for the [ProGuard](https://proguard.sourceforge.io/)\nJava bytecode obfuscator.\n\nIt fixes the issue that files in the `META-INF/services` directory are not renamed or adapted to the new class names.\n\nIt replaces the original Jar file with a new one that contains the renamed services.\n\nIt consists of the following modules:\n\n* [`proguard-service-mapper`](#proguard-service-mapper):\n  The service mapper itself.\n* [`proguard-service-mapper-cli`](#proguard-service-mapper-cli):\n  The command line interface.\n* [`proguard-service-mapper-maven`](#proguard-service-mapper-maven):\n  The Maven plugin.\n* [`proguard-service-mapper-gradle`](#proguard-service-mapper-gradle):\n  The Gradle plugin.\n\n## ProGuard Service Mapper CLI\n\nFor convenience, the service mapper can be run from the command line. Withouth any additional arguments, it will print\nhelp information.\n\n### Usage\n\n```shell\n$ java -jar proguard-service-mapper-cli-\u003cversion\u003e.jar -i \u003cinput-file\u003e -m \u003cmapping-file\u003e\n```\n\n## ProGuard Service Mapper Maven\n\nThis plugin is intended to be integrated into your Maven build process and run after\nthe [ProGuard Maven plugin](https://wvengen.github.io/proguard-maven-plugin/).\n\n### Usage in Maven\n\n```xml\n\u003cplugin\u003e\n  \u003cgroupId\u003ecom.github.gianttreelp.proguardservicesmapper\u003c/groupId\u003e\n  \u003cartifactId\u003eproguard-service-mapper-maven-plugin\u003c/artifactId\u003e\n  \u003cversion\u003e1.2-SNAPSHOT\u003c/version\u003e \u003c!-- Update with the version you want to use, preferably the latest --\u003e\n  \u003cexecutions\u003e\n    \u003cexecution\u003e\n      \u003cphase\u003epackage\u003c/phase\u003e\n      \u003cgoals\u003e\n        \u003cgoal\u003emap-proguard\u003c/goal\u003e\n      \u003c/goals\u003e\n    \u003c/execution\u003e\n  \u003c/executions\u003e\n  \u003cconfiguration\u003e\n    \u003cinput\u003e\u003c!-- The obfuscated input file --\u003e\u003c/input\u003e\n    \u003cmapping\u003e\u003c!-- The mapping file from ProGuard --\u003e\u003c/mapping\u003e\n  \u003c/configuration\u003e\n\u003c/plugin\u003e\n```\n\n## ProGuard Service Mapper Gradle\n\nThis plugin is intended to be integrated into your Gradle build process and run after\nthe [ProGuard Gradle plugin](https://github.com/Guardsquare/proguard).\n\n### Example usage in Gradle with the ProGuard Gradle plugin and the Shadow plugin\n\n```kotlin\nbuildscript {\n  dependencies {\n    classpath(\"com.github.gianttreelp.proguardservicesmapper:proguard-services-mapper-gradle:1.2-SNAPSHOT\")\n  }   \n}\n\nregister\u003ccom.github.gianttreelp.proguardservicesmapper.gradle.ProguardServicesMapperTask\u003e(\"mapServices\") {\n  this.dependsOn(\"proguard\")\n  \n  val shadowTask = project.tasks.shadowJar.orNull ?: throw IllegalStateException(\"No shadow jar task found\")\n  \n  this.mappingFile.set(project.buildDir.resolve(\"mapping.txt\"))\n  this.inputFile.set(shadowTask.outputs.files.files.single().let {\n    File(it.path.substringBeforeLast('.') + \"-obf.\" + it.path.substringAfterLast('.'))\n  })\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgianttreelp%2Fproguard-services-mapper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgianttreelp%2Fproguard-services-mapper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgianttreelp%2Fproguard-services-mapper/lists"}