{"id":25430450,"url":"https://github.com/asm0dey/pf4j-demo","last_synced_at":"2025-07-05T00:05:19.190Z","repository":{"id":277337866,"uuid":"932106979","full_name":"asm0dey/pf4j-demo","owner":"asm0dey","description":"Demo project of Spring boot application with PF4J ","archived":false,"fork":false,"pushed_at":"2025-02-13T11:33:15.000Z","size":50,"stargazers_count":4,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-05-14T12:19:38.169Z","etag":null,"topics":["demo","gradle","gradle-kotlin-dsl","java","pf4j","pf4j-spring","pf4j-spring-boot","spring","spring-boot"],"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/asm0dey.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}},"created_at":"2025-02-13T11:28:32.000Z","updated_at":"2025-05-13T02:01:48.000Z","dependencies_parsed_at":"2025-02-13T12:44:26.102Z","dependency_job_id":null,"html_url":"https://github.com/asm0dey/pf4j-demo","commit_stats":null,"previous_names":["asm0dey/pf4j-demo"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/asm0dey/pf4j-demo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asm0dey%2Fpf4j-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asm0dey%2Fpf4j-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asm0dey%2Fpf4j-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asm0dey%2Fpf4j-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/asm0dey","download_url":"https://codeload.github.com/asm0dey/pf4j-demo/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asm0dey%2Fpf4j-demo/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263636791,"owners_count":23492304,"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":["demo","gradle","gradle-kotlin-dsl","java","pf4j","pf4j-spring","pf4j-spring-boot","spring","spring-boot"],"created_at":"2025-02-17T03:28:20.568Z","updated_at":"2025-07-05T00:05:19.133Z","avatar_url":"https://github.com/asm0dey.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PF4J Spring Demo Application\n\nThis project demonstrates the integration of PF4J (Plugin Framework for Java) with Spring Boot, showcasing a plugin-based architecture for Java applications.\n\n## Project Overview\n\nThe application is a Spring Boot-based service that uses PF4J to manage plugins. It includes a simple REST API that aggregates responses from multiple plugins implementing a common interface.\n\n### Technology Stack\n\n- Java 23\n- Spring Boot 3.4.2\n- PF4J 3.13.0\n- PF4J-Spring 0.9.0\n- Gradle 8.12.1\n\n## Project Structure\n\nThe project consists of several modules:\n\n- **Main Application**: Core Spring Boot application that loads and manages plugins\n- **Commons**: Shared interfaces and classes used by both the main application and plugins\n- **Extensions**:\n    - `hello-plugin`: Plugin that returns \"Hello!\" message\n    - `bye-plugin`: Plugin that returns \"Bye!\" message\n\n## Building and Running\n\n### Prerequisites\n\n- JDK 23 or later\n- Gradle 8.12.1 or later\n\n### Build Instructions\n\n1. Clone the repository\n2. Build the project:\n```bash\n./gradlew build\n```\n\nThis will:\n- Build the main application\n- Build all plugins\n- Copy plugin JARs to the `plugins` directory\n\n### Running the Application\n\nStart the application using:\n```bash\n./gradlew bootRun\n```\n\n## API Endpoints\n\n- `GET /phrase`: Returns concatenated phrases from all active plugins\n\n## Plugin Development\n\n### Creating New Plugins\n\n1. Create a new module in the `extensions` directory\n2. Implement the `PhraseExtensionPoint` interface\n3. Add plugin metadata to the build configuration\n4. Add the new module to `settings.gradle.kts`\n\n### Plugin Structure\n\nEach plugin requires:\n- Implementation of `PhraseExtensionPoint`\n- Plugin metadata in `build.gradle.kts`:\n  ```kotlin\n  manifest {\n      attributes[\"Plugin-Id\"] = \"plugin-id\"\n      attributes[\"Plugin-Version\"] = project.version\n      attributes[\"Plugin-Provider\"] = \"provider-name\"\n  }\n  ```\n\n## Project Configuration\n\nThe project uses Gradle for build automation. Key configurations include:\n\n- Java 23 toolchain\n- Spring Boot dependencies\n- PF4J integration\n- Automatic plugin deployment\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fasm0dey%2Fpf4j-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fasm0dey%2Fpf4j-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fasm0dey%2Fpf4j-demo/lists"}