{"id":16374354,"url":"https://github.com/raphimc/classtokenreplacer","last_synced_at":"2025-03-23T03:32:36.305Z","repository":{"id":192890404,"uuid":"687621371","full_name":"RaphiMC/ClassTokenReplacer","owner":"RaphiMC","description":"Gradle plugin to replace string tokens in class files during compile time","archived":false,"fork":false,"pushed_at":"2024-05-22T17:31:20.000Z","size":132,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-05-22T18:38:28.943Z","etag":null,"topics":["gradle-plugin","gradle-plugin-java","java-bytecode"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RaphiMC.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"ko_fi":"rk_01"}},"created_at":"2023-09-05T16:49:53.000Z","updated_at":"2024-06-19T19:41:59.693Z","dependencies_parsed_at":null,"dependency_job_id":"d6524c7e-7c3a-4a6a-9944-e8af5992cb9a","html_url":"https://github.com/RaphiMC/ClassTokenReplacer","commit_stats":null,"previous_names":["raphimc/classtokenreplacer"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RaphiMC%2FClassTokenReplacer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RaphiMC%2FClassTokenReplacer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RaphiMC%2FClassTokenReplacer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RaphiMC%2FClassTokenReplacer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RaphiMC","download_url":"https://codeload.github.com/RaphiMC/ClassTokenReplacer/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245052619,"owners_count":20553161,"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":["gradle-plugin","gradle-plugin-java","java-bytecode"],"created_at":"2024-10-11T03:16:59.500Z","updated_at":"2025-03-23T03:32:35.908Z","avatar_url":"https://github.com/RaphiMC.png","language":"Java","funding_links":["https://ko-fi.com/rk_01"],"categories":[],"sub_categories":[],"readme":"# ClassTokenReplacer\nGradle plugin to replace string tokens in class files during compile time.\n\nClassTokenReplacer allows you to replace string placeholders in your code with actual values during the building process.\nThis can be used to replace tokens like ``${version}`` with the actual version of the project.\n\n## Releases\n### Gradle\nTo use ClassTokenReplacer in your Gradle project you can follow the instructions on the [Gradle Plugin Portal](https://plugins.gradle.org/plugin/net.raphimc.class-token-replacer).\n\n## Usage\nThe plugin extends all source sets with a new extension called ``classTokenReplacer``. This allows you to specify replacements for your source sets:\n```groovy\nsourceSets {\n    main {\n        classTokenReplacer {\n            property(\"\\${version}\", project.version)\n        }\n    }\n}\n```\n\nThat's it! Now all compiled class files in the main source set will be scanned for the token ``${version}`` and have it replaced with the value specified in the ``property`` method.\nBe careful to choose placeholders in a way where don't accidentally match some other strings in your code.\n\n## Contact\nIf you encounter any issues, please report them on the\n[issue tracker](https://github.com/RaphiMC/ClassTokenReplacer/issues).  \nIf you just want to talk or need help implementing ClassTokenReplacer feel free to join my\n[Discord](https://discord.gg/dCzT9XHEWu).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraphimc%2Fclasstokenreplacer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fraphimc%2Fclasstokenreplacer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraphimc%2Fclasstokenreplacer/lists"}