{"id":16416073,"url":"https://github.com/phax/ph-forbidden-apis","last_synced_at":"2025-06-24T14:33:41.536Z","repository":{"id":57724917,"uuid":"59232528","full_name":"phax/ph-forbidden-apis","owner":"phax","description":"Forbidden APIs signature for my projects","archived":false,"fork":false,"pushed_at":"2025-01-21T10:15:09.000Z","size":105,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-01-21T11:25:02.858Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/phax.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","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":"2016-05-19T18:40:25.000Z","updated_at":"2025-01-21T10:15:14.000Z","dependencies_parsed_at":"2023-12-10T13:22:04.672Z","dependency_job_id":"6d55cfb3-f825-4e42-b05b-06f647f21bf6","html_url":"https://github.com/phax/ph-forbidden-apis","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phax%2Fph-forbidden-apis","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phax%2Fph-forbidden-apis/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phax%2Fph-forbidden-apis/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phax%2Fph-forbidden-apis/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/phax","download_url":"https://codeload.github.com/phax/ph-forbidden-apis/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240466790,"owners_count":19805862,"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":[],"created_at":"2024-10-11T07:08:19.597Z","updated_at":"2025-02-24T11:18:09.445Z","avatar_url":"https://github.com/phax.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ph-forbidden-apis\n\n[Forbidden APIs](https://github.com/policeman-tools/forbidden-apis) signature for my projects.\nThey are mostly about style and performance and not so much about correctness.\n\n## Usage in Maven\n\nPut a call to the forbidden-apis plugin and add this as a signatureArtifact:\n\n```xml\n  \u003cbuild\u003e\n...\n    \u003cplugins\u003e\n...\n      \u003cplugin\u003e\n        \u003cgroupId\u003ede.thetaphi\u003c/groupId\u003e\n        \u003cartifactId\u003eforbiddenapis\u003c/artifactId\u003e\n        \u003cversion\u003e3.2\u003c/version\u003e\n        \u003cconfiguration\u003e\n          \u003cfailOnUnsupportedJava\u003efalse\u003c/failOnUnsupportedJava\u003e\n          \u003cbundledSignatures\u003e\n            \u003c!-- Choose the right signatures based on 'maven.compiler.target' property: --\u003e\n            \u003cbundledSignature\u003ejdk-unsafe\u003c/bundledSignature\u003e\n            \u003cbundledSignature\u003ejdk-deprecated\u003c/bundledSignature\u003e\n            \u003cbundledSignature\u003ejdk-internal\u003c/bundledSignature\u003e\n            \u003cbundledSignature\u003ejdk-non-portable\u003c/bundledSignature\u003e\n            \u003cbundledSignature\u003ejdk-system-out\u003c/bundledSignature\u003e\n            \u003cbundledSignature\u003ejdk-reflection\u003c/bundledSignature\u003e\n          \u003c/bundledSignatures\u003e\n          \u003csignaturesArtifacts\u003e\n            \u003c!-- Finally add this artifact --\u003e \n            \u003csignaturesArtifact\u003e\n              \u003cgroupId\u003ecom.helger\u003c/groupId\u003e\n              \u003cartifactId\u003eph-forbidden-apis\u003c/artifactId\u003e\n              \u003cversion\u003e1.1.1\u003c/version\u003e\n              \u003ctype\u003ejar\u003c/type\u003e\n              \u003cpath\u003eforbidden-apis-java8.txt\u003c/path\u003e\n            \u003c/signaturesArtifact\u003e\n          \u003c/signaturesArtifacts\u003e\n          \u003cexcludes\u003e\n             \u003c!-- Example on how to exclude classes --\u003e\n            \u003cexclude\u003e**/TestClassToExclude.class\u003c/exclude\u003e\n          \u003c/excludes\u003e\n        \u003c/configuration\u003e\n        \u003cexecutions\u003e\n          \u003cexecution\u003e\n            \u003cgoals\u003e\n              \u003c!-- Execute for main and test --\u003e\n              \u003cgoal\u003echeck\u003c/goal\u003e\n              \u003cgoal\u003etestCheck\u003c/goal\u003e\n            \u003c/goals\u003e\n          \u003c/execution\u003e\n        \u003c/executions\u003e\n      \u003c/plugin\u003e\n...\n    \u003c/plugins\u003e\n...\n  \u003c/build\u003e\n```\n\nRun the check explicitly (one of them):\n```\nmvn forbiddenapis:check\nmvn forbiddenapis:testCheck\n```\n\n\n# News and Noteworthy\n\n* v1.1.1 - 2018-03-28\n  * Fixed a typo in Java9 file, and added a test for reading\n* v1.1.0 - 2018-03-28\n  * Changed filenames to `forbidden-apis-java8.txt` and `forbidden-apis-java9.txt`  \n* v1.0.0 - 2017-03-29\n  * Initial version containing `forbidden-apis.txt`\n\n---\n\nMy personal [Coding Styleguide](https://github.com/phax/meta/blob/master/CodingStyleguide.md) |\nIt is appreciated if you star the GitHub project if you like it.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphax%2Fph-forbidden-apis","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphax%2Fph-forbidden-apis","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphax%2Fph-forbidden-apis/lists"}