{"id":23250541,"url":"https://github.com/phage-solutions/protobuf-graalvm-native-hints","last_synced_at":"2025-10-27T04:31:01.009Z","repository":{"id":267308261,"uuid":"900834339","full_name":"Phage-Solutions/protobuf-graalvm-native-hints","owner":"Phage-Solutions","description":"Repository containing the native hints needed for ProtoBuf messages inside GraalVM with Spring Boot 3","archived":false,"fork":false,"pushed_at":"2024-12-10T16:02:29.000Z","size":115,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2024-12-19T09:12:45.232Z","etag":null,"topics":["graalvm","graalvm-native-image","gradle","kotlin","spring","spring-boot"],"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/Phage-Solutions.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2024-12-09T14:57:54.000Z","updated_at":"2024-12-16T13:49:15.000Z","dependencies_parsed_at":"2024-12-09T16:39:16.013Z","dependency_job_id":"1498f739-cad9-48da-af1d-debea8b64cdd","html_url":"https://github.com/Phage-Solutions/protobuf-graalvm-native-hints","commit_stats":null,"previous_names":["phage-solutions/protobuf-graalvm-native-hints"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Phage-Solutions%2Fprotobuf-graalvm-native-hints","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Phage-Solutions%2Fprotobuf-graalvm-native-hints/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Phage-Solutions%2Fprotobuf-graalvm-native-hints/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Phage-Solutions%2Fprotobuf-graalvm-native-hints/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Phage-Solutions","download_url":"https://codeload.github.com/Phage-Solutions/protobuf-graalvm-native-hints/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238437041,"owners_count":19472323,"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":["graalvm","graalvm-native-image","gradle","kotlin","spring","spring-boot"],"created_at":"2024-12-19T09:12:37.840Z","updated_at":"2025-10-27T04:31:00.666Z","avatar_url":"https://github.com/Phage-Solutions.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"![protobuf-graalvm-native-hints](readme-resources/graalvm-native-hints.png)\n\n# Protobuf GraalVM Native Hints for Spring Boot 3\n\nSimple library to register protobuf (v4) generated classes for runtime reflection. The library is [published to Maven Central](https://central.sonatype.com/artifact/sk.phage.spring/protobuf-graalvm-native-hints/overview), so there is no\nneed to add any additional repositories.\n\nMore details on the topic can be found [here](https://www.graalvm.org/latest/reference-manual/native-image/dynamic-features/Reflection/#configuration-with-features)\n\n## Content\n- [Dependencies](#dependencies)\n- [Usage](#usage)\n- [Configuration](#usage)\n\n## Dependencies\n\nNOTE: See [build.gradle.kts](lib/build.gradle.kts) for the latest version of the dependencies.\n\nList:\n- Protocol Buffers 4.x.x\n- GraalVM 17+\n- Java 17+\n- Spring Boot 3.x.x\n- Reflections\n\n## Usage\n\n### Add the library to your project:\n**Gradle (Groovy)**\n\n```groovy\nimplementation 'sk.phage.spring:protobuf-graalvm-native-hints:${version}'\n```\n\n**Gradle (Kotlin DSL):**\n\n```kotlin\nimplementation(\"sk.phage.spring:protobuf-graalvm-native-hints:${version}\")\n```\n\n**Maven**\n\n```xml\n\u003cdependency\u003e\n    \u003cgroupId\u003esk.phage.spring\u003c/groupId\u003e\n    \u003cartifactId\u003eprotobuf-graalvm-native-hints\u003c/artifactId\u003e\n    \u003cversion\u003e${version}\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n### Usage\nYou need to register the class in your Spring Boot application via the `@ImportRuntimeHints` application.\n```kotlin\n@ImportRuntimeHints(ProtobufNativeHints::class)\n```\n\nDuring AOT compilation, the class will be picked up and all classes that extend the `GeneratedMessage` (incl. inner `Builder` classes, subtypes and `ProtocolMessageEnum`) will be registered for reflection (including all fields, constructors\nand methods).\n\n## Configuration\nYou will need to specify packages which contain your compiled ProtoBuf classes in the `META-INF/native-image/protobuf-packages.properties` file.\n\nExample:\n```properties\nsk.phage.serialization\ncom.google.protobuf\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphage-solutions%2Fprotobuf-graalvm-native-hints","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphage-solutions%2Fprotobuf-graalvm-native-hints","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphage-solutions%2Fprotobuf-graalvm-native-hints/lists"}