{"id":32013124,"url":"https://github.com/bcaillard/jspecify-packageinfo-generator","last_synced_at":"2026-01-14T02:51:14.520Z","repository":{"id":304678114,"uuid":"1018439699","full_name":"bcaillard/jspecify-packageinfo-generator","owner":"bcaillard","description":"This Maven plugin automatically generates package-info.java files with JSpecify annotations (@NullMarked or @NullUnmarked), helping you manage nullness boundaries in your Java projects without manual boilerplate.","archived":false,"fork":false,"pushed_at":"2025-11-23T14:24:41.000Z","size":59,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-11-23T16:16:01.567Z","etag":null,"topics":["generator","java","jspecify","maven-plugin","null-safety","package-info"],"latest_commit_sha":null,"homepage":"","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/bcaillard.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-07-12T09:07:07.000Z","updated_at":"2025-11-23T14:24:44.000Z","dependencies_parsed_at":"2025-07-14T18:39:11.482Z","dependency_job_id":"5a8ae999-84c4-4b0a-bbf3-af493f51a327","html_url":"https://github.com/bcaillard/jspecify-packageinfo-generator","commit_stats":null,"previous_names":["bcaillard/jspecify-packageinfo-generator"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/bcaillard/jspecify-packageinfo-generator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bcaillard%2Fjspecify-packageinfo-generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bcaillard%2Fjspecify-packageinfo-generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bcaillard%2Fjspecify-packageinfo-generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bcaillard%2Fjspecify-packageinfo-generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bcaillard","download_url":"https://codeload.github.com/bcaillard/jspecify-packageinfo-generator/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bcaillard%2Fjspecify-packageinfo-generator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28408780,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T01:52:23.358Z","status":"online","status_checked_at":"2026-01-14T02:00:06.678Z","response_time":107,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["generator","java","jspecify","maven-plugin","null-safety","package-info"],"created_at":"2025-10-15T21:01:42.740Z","updated_at":"2026-01-14T02:51:14.511Z","avatar_url":"https://github.com/bcaillard.png","language":"Java","readme":"# JSpecify Package Info Generator Maven Plugin\n\nThis Maven plugin automatically generates `package-info.java` files with [JSpecify](https://jspecify.dev) annotations (`@NullMarked` and `@NullUnmarked`), helping you manage\nnullness boundaries in your Java projects without manual boilerplate.\n\nIt scans your source directories, creates missing `package-info.java` files where needed, and adds either `@NullMarked` or `@NullUnmarked` based on your configuration. This allows\nyou to systematically adopt JSpecify nullness tracking across your codebase while maintaining a clean structure.\n\nIf you discover JSpecify, remember to take a look at [NullAway](https://github.com/uber/NullAway) to eliminate NullPointerException in your Java projects.\n\n## Goals\n\n- Automatically creates `package-info.java` files in packages that are missing them\n- Adds `@NullMarked` or `@NullUnmarked` from JSpecify to support null-safety adoption\n- Reduces repetitive manual work when migrating to JSpecify\n- Automatically adds generated directories to Maven source roots so they are compiled (thanks to [@jjlharrison](https://github.com/jjlharrison))\n\n## Requirements\n\n- **Java 11 or higher**\n- **Maven 3+**\n\n## Usage\n\nAdd the plugin to your `pom.xml`:\n\n```xml\n\n\u003cbuild\u003e\n    \u003cplugins\u003e\n        \u003cplugin\u003e\n            \u003cgroupId\u003eio.github.bcaillard.jspecify-utilities\u003c/groupId\u003e\n            \u003cartifactId\u003ejspecify-packageinfo-generator-maven-plugin\u003c/artifactId\u003e\n            \u003cversion\u003e(pick version)\u003c/version\u003e\n            \u003cexecutions\u003e\n                \u003cexecution\u003e\n                    \u003cgoals\u003e\n                        \u003c!-- \n                            Whether you want to generate package-java.info files from src/main/java.\n                            package-info.java are generated in /target/generated-sources/packages-info/ folder.\n                        --\u003e\n                        \u003cgoal\u003egenerate-package-info\u003c/goal\u003e\n                        \u003c!-- \n                            Whether you want to generate package-java.info files from src/test/java. \n                            package-info.java are generated in /target/generated-test-sources/packages-info/ folder.\n                        --\u003e\n                        \u003cgoal\u003egenerate-package-info-test\u003c/goal\u003e\n                    \u003c/goals\u003e\n                \u003c/execution\u003e\n            \u003c/executions\u003e\n            \u003cconfiguration\u003e\n                \u003c!-- Whether you want skip execution (optional, default is false) --\u003e\n                \u003cskip\u003efalse\u003c/skip\u003e\n                \u003c!-- JSpecify annotation to be added to each package-info.java. Choose between NULL_MARKED and NULL_UNMARKED (optional, default is NULL_MARKED) --\u003e\n                \u003cannotation\u003eNULL_UNMARKED\u003c/annotation\u003e\n                \u003c!-- Strategy to apply when the generated sources directory already exists [RUN, FAIL, SKIP] (optional, default is SKIP) --\u003e\n                \u003cwhenGeneratedSourcesDirectoryExists\u003eRUN\u003c/whenGeneratedSourcesDirectoryExists\u003e\n                \u003c!-- Whether to add the generated sources as compile source root (optional, default is true) --\u003e\n                \u003caddGeneratedSourcesToSourceRoot\u003efalse\u003c/addGeneratedSourcesToSourceRoot\u003e\n            \u003c/configuration\u003e\n        \u003c/plugin\u003e\n    \u003c/plugins\u003e\n\u003c/build\u003e\n```\n\n## Be careful with Maven Compiler Plugin\n\nSince version `3.12.0`, there's a regression that makes it impossible to use generated-sources.\nSee [MCOMPILER-538](https://github.com/apache/maven-compiler-plugin/pull/191).\n\n## License\n\nThis project is licensed under the Apache License 2.0. See the [LICENSE](LICENSE) file for details.","funding_links":[],"categories":["Projects"],"sub_categories":["Code Generators"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbcaillard%2Fjspecify-packageinfo-generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbcaillard%2Fjspecify-packageinfo-generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbcaillard%2Fjspecify-packageinfo-generator/lists"}