{"id":20931881,"url":"https://github.com/jobrunr/example-micronaut","last_synced_at":"2025-07-17T21:38:01.974Z","repository":{"id":108886543,"uuid":"395551314","full_name":"jobrunr/example-micronaut","owner":"jobrunr","description":"An example on how to integrate JobRunr with Micronaut","archived":false,"fork":false,"pushed_at":"2025-07-02T19:32:24.000Z","size":177,"stargazers_count":5,"open_issues_count":1,"forks_count":5,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-07-02T20:34:56.702Z","etag":null,"topics":["java","micronaut"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jobrunr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2021-08-13T07:02:55.000Z","updated_at":"2024-11-08T12:05:26.000Z","dependencies_parsed_at":"2025-06-12T10:36:19.393Z","dependency_job_id":"31ecf054-a2f0-47d5-b8c1-38d4ccca4941","html_url":"https://github.com/jobrunr/example-micronaut","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jobrunr/example-micronaut","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jobrunr%2Fexample-micronaut","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jobrunr%2Fexample-micronaut/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jobrunr%2Fexample-micronaut/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jobrunr%2Fexample-micronaut/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jobrunr","download_url":"https://codeload.github.com/jobrunr/example-micronaut/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jobrunr%2Fexample-micronaut/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265663125,"owners_count":23807465,"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":["java","micronaut"],"created_at":"2024-11-18T21:46:09.392Z","updated_at":"2025-07-17T21:38:01.957Z","avatar_url":"https://github.com/jobrunr.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JobRunr Micronaut example\n\nThis repository shows an example how you can integrate [JobRunr](https://www.jobrunr.io) and [Micronaut](https://micronaut.io/).\n\n## About this project\n### Micronaut and JobRunr integration\nTo integrate JobRunr into Micronaut:\n- just add the dependency: `org.jobrunr:jobrunr-micronaut-feature:LATEST`\n- make sure that you configure JobRunr in the micronaut `application.yml`\n```yaml\njobrunr:\n  job-scheduler:\n    enabled: true\n  background-job-server:\n    enabled: true\n  dashboard:\n    enabled: true\n```\n- JobRunr will automatically find the correct [StorageProvider](https://www.jobrunr.io/en/documentation/installation/storage/).\n\n### Package structure\nThis project has the following packages:\n- **org.jobrunr.examples**: this package contains the application class that bootstraps the Micronaut app.\n- **org.jobrunr.examples.services**: this package contains [MyService](src/main/java/org/jobrunr/examples/services/MyService.java), a simple `@Singleton` service with some example methods which you can run in the background.\n- **org.jobrunr.examples.webap.api**: this package contains the following http resource:\n    - `JobController`: this resource contains a couple of REST api's which allows you to enqueue new Background Jobs\n\n## How to run this project:\n- clone the project and open it in your favorite IDE that supports Maven\n- Set the environment variable `JOBRUNR_JOBS` to `true` if you want to run the jobs (by default it's false)\n  - You can also just update `application.yml` to by pass the requirement for an env var\n- Run the Maven plugin `./gradlew run` and wait for Micronaut to be up \u0026 running\n  - Or run [Application](src/main/java/org/jobrunr/examples/Application.java)\n- Open your favorite browser:\n    - Navigate to the JobRunr dashboard located at http://localhost:8000/dashboard.\n    - Navigate to the JobController at http://localhost:8080/jobs/ to enqueue jobs\n    - Visit the dashboard again and see the jobs being processed!\n\n\u003e Note: Running micronaut apps with JobRunr using GraalVM native mode is not yet supported.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjobrunr%2Fexample-micronaut","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjobrunr%2Fexample-micronaut","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjobrunr%2Fexample-micronaut/lists"}