{"id":20227682,"url":"https://github.com/panga/fn-native-java","last_synced_at":"2025-04-10T17:25:08.380Z","repository":{"id":49947232,"uuid":"138428967","full_name":"panga/fn-native-java","owner":"panga","description":"Fn Project Native Java Function using GraalVM","archived":false,"fork":false,"pushed_at":"2018-06-27T18:17:09.000Z","size":16,"stargazers_count":29,"open_issues_count":0,"forks_count":2,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-24T15:04:02.472Z","etag":null,"topics":["fnproject","graalvm","java"],"latest_commit_sha":null,"homepage":"https://medium.com/criciumadev/serverless-native-java-functions-using-graalvm-and-fn-project-c9b10a4a4859","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/panga.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":"2018-06-23T19:44:48.000Z","updated_at":"2023-09-08T17:42:04.000Z","dependencies_parsed_at":"2022-09-03T06:52:45.913Z","dependency_job_id":null,"html_url":"https://github.com/panga/fn-native-java","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/panga%2Ffn-native-java","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/panga%2Ffn-native-java/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/panga%2Ffn-native-java/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/panga%2Ffn-native-java/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/panga","download_url":"https://codeload.github.com/panga/fn-native-java/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248261967,"owners_count":21074229,"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":["fnproject","graalvm","java"],"created_at":"2024-11-14T07:26:03.954Z","updated_at":"2025-04-10T17:25:08.343Z","avatar_url":"https://github.com/panga.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Fn Project Native Java Function using GraalVM\n\n## Usage\n\n1. Build and deploy the function\n\n```\nfn deploy --app javafn --local\n```\n\nNote: Requires `mvn` CLI installed.\n\n2. Call the function\n\n```\ncurl -d 'Leonardo' http://localhost:8080/r/javafn/native\n```\n\n## FAQ: How to create a new Native Java Function using GraalVM?\n\n1. Create a new Java function with `fn init --runtime java8`.\n\n2. Add `reflection.json` file (see [reflection.json](reflection.json) example and [GraalVM docs](https://github.com/oracle/graal/blob/master/substratevm/REFLECTION.md)).\n\n3. Copy [Dockerfile](Dockerfile) and change `CMD` to your entrypoint.\n\n4. Change your [func.yaml](func.yaml) to use `docker` runtime and add build commands.\n\nNote: More advanced use cases using [fnproject/fdk-java](https://github.com/fnproject/fdk-java) are also working.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpanga%2Ffn-native-java","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpanga%2Ffn-native-java","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpanga%2Ffn-native-java/lists"}