{"id":17881332,"url":"https://github.com/col-e/class-version-patcher","last_synced_at":"2025-07-02T12:32:47.130Z","repository":{"id":56711498,"uuid":"316651814","full_name":"Col-E/Class-Version-Patcher","owner":"Col-E","description":"For when you are stuck in Java 8 but want to use new language features and dependencies","archived":false,"fork":false,"pushed_at":"2022-08-23T12:26:44.000Z","size":59,"stargazers_count":31,"open_issues_count":4,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-04T06:11:21.681Z","etag":null,"topics":["gradle","gradle-plugin","java","maven","maven-plugin"],"latest_commit_sha":null,"homepage":"","language":"Java","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/Col-E.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}},"created_at":"2020-11-28T03:53:37.000Z","updated_at":"2024-09-20T10:35:36.000Z","dependencies_parsed_at":"2022-08-16T00:00:13.647Z","dependency_job_id":null,"html_url":"https://github.com/Col-E/Class-Version-Patcher","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/Col-E/Class-Version-Patcher","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Col-E%2FClass-Version-Patcher","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Col-E%2FClass-Version-Patcher/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Col-E%2FClass-Version-Patcher/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Col-E%2FClass-Version-Patcher/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Col-E","download_url":"https://codeload.github.com/Col-E/Class-Version-Patcher/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Col-E%2FClass-Version-Patcher/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263140573,"owners_count":23419906,"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","gradle-plugin","java","maven","maven-plugin"],"created_at":"2024-10-28T12:36:37.300Z","updated_at":"2025-07-02T12:32:46.990Z","avatar_url":"https://github.com/Col-E.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Class Version Patcher\n\nThis plugin allows you to utilize all the new language features of Java while targeting an older version's bytecode. \n\n## Usage - Maven\n\nTo integrate into your project:\n\n1. Install the plugin locally\n2. Add the plugin to your project\n    - Update the scope of any dependency that is future-versioned to `\u003cscope\u003eprovided\u003c/scope\u003e`\n3. Run `compile` on your project to generate the modified classes in the `%PROJECT%/target/classes` directory\n4. Run any phase you like, such as `test` _(They should now see the modified classes)_\n\n\n### Installing the plugin locally\n\n```\ngit clone https://github.com/Col-E/Class-Version-Patcher.git\ncd Maven-Class-Patcher\nmvn install\n```\n\n### Using the plugin in your `pom.xml`\n```xml\n\u003cbuild\u003e\n    \u003cplugins\u003e\n        \u003cplugin\u003e\n            \u003cgroupId\u003esoftware.coley\u003c/groupId\u003e\n            \u003cartifactId\u003eclass-version-patcher-maven\u003c/artifactId\u003e\n            \u003cversion\u003e2.1.0\u003c/version\u003e\n            \u003cconfiguration\u003e\n                \u003c!-- Target Java 8, can swap for other version such as 11 --\u003e\n                \u003ctargetVersion\u003e8\u003c/targetVersion\u003e\n                \u003cartifacts\u003e\n                    \u003c!-- The parameters are the group + artifact identifiers of any dependency separated by a colon \":\"\n                         You can include any number of values here.\n                     --\u003e\n                    \u003cparam\u003egroup_id:artifact_id\u003c/param\u003e\n                    \u003cparam\u003eorg.jgroups:jgroups\u003c/param\u003e\n                \u003c/artifacts\u003e\n            \u003c/configuration\u003e\n            \u003c!-- Required to run --\u003e\n            \u003cexecutions\u003e\n                \u003cexecution\u003e\n                    \u003cgoals\u003e\n                        \u003cgoal\u003epatch-compiled\u003c/goal\u003e\n                        \u003cgoal\u003epatch-dependencies\u003c/goal\u003e\n                        \u003cgoal\u003epatch-postprocess\u003c/goal\u003e\n                    \u003c/goals\u003e\n                \u003c/execution\u003e\n            \u003c/executions\u003e\n        \u003c/plugin\u003e\n    \u003c/plugins\u003e\n\u003c/build\u003e\n```\n\n## Usage - Gradle\n\n\u003e NOTE: The gradle plugin is not yet developed, however you can add the `core` module of this project as a dependency to your buildscript.\n\u003e From there, you can invoke `software.coley.versionpatcher.VersionPatcher` as you see fit.\n\n## This doesn't properly downgrade Java X's \"xyz-feature\" to Java Y's version!\n\nPlease open an issue with an example of how to replicate your problem.\n\nFor example:\n\n- Providing a class file\n- Listing a [maven dependency](https://mvnrepository.com/artifact/org.jgroups/jgroups/5.1.2.Final)\n- Listing an [open source project](https://github.com/belaban/JGroups)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcol-e%2Fclass-version-patcher","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcol-e%2Fclass-version-patcher","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcol-e%2Fclass-version-patcher/lists"}