{"id":48836905,"url":"https://github.com/andrei-punko/composite-build-usage-example","last_synced_at":"2026-04-14T23:36:24.118Z","repository":{"id":105078434,"uuid":"442430623","full_name":"andrei-punko/composite-build-usage-example","owner":"andrei-punko","description":"Build externalization by put its config into separate repository","archived":false,"fork":false,"pushed_at":"2026-04-05T15:01:36.000Z","size":267,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-04-05T17:10:09.549Z","etag":null,"topics":["buildsrc","composite-builds","gradle","gradle-composite","gradle-compositebuild","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/andrei-punko.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}},"created_at":"2021-12-28T10:38:54.000Z","updated_at":"2026-04-05T15:01:41.000Z","dependencies_parsed_at":"2024-11-09T17:24:57.826Z","dependency_job_id":"8f78a7da-baee-43b8-a2e7-5a0cc2347d4d","html_url":"https://github.com/andrei-punko/composite-build-usage-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/andrei-punko/composite-build-usage-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrei-punko%2Fcomposite-build-usage-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrei-punko%2Fcomposite-build-usage-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrei-punko%2Fcomposite-build-usage-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrei-punko%2Fcomposite-build-usage-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andrei-punko","download_url":"https://codeload.github.com/andrei-punko/composite-build-usage-example/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andrei-punko%2Fcomposite-build-usage-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31820134,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-14T18:05:02.291Z","status":"ssl_error","status_checked_at":"2026-04-14T18:05:01.765Z","response_time":153,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["buildsrc","composite-builds","gradle","gradle-composite","gradle-compositebuild","spring-boot"],"created_at":"2026-04-14T23:36:19.173Z","updated_at":"2026-04-14T23:36:24.088Z","avatar_url":"https://github.com/andrei-punko.png","language":"Java","readme":"# Composite Build usage example\r\n\r\n![Java CI with Gradle](https://github.com/andrei-punko/composite-build-usage-example/workflows/Java%20CI%20with%20Gradle/badge.svg)\r\n[![Coverage](.github/badges/jacoco.svg)](https://github.com/andrei-punko/composite-build-usage-example/actions/workflows/gradle.yml)\r\n\r\nBased on [this](https://github.com/andrei-punko/spring-boot-2-template) Spring Boot app template.\r\nSources was not changed almost, only build script adjusted\r\n\r\n## Prerequisites\r\n\r\n- JDK 21\r\n- Docker  \r\n(Gradle isn't required because of embedded Gradle in the project)\r\n\r\n## Conception description\r\n\r\n`Composite Build` is externalization of build by put dependencies and plugins into separate Git repository\r\n(which should be added as [Git submodule](.gitmodules) of project)\r\n\r\nAfter that [build script](build.gradle.kts) will looks like this:\r\n\r\n```kotlin\r\nimport by.andd3dfx.build.*\r\nimport by.andd3dfx.build.Plugins.Companion.applyPlugins\r\n\r\nservice(version = \"0.0.1\") {\r\n    dependencies {\r\n        springBoot(project) {\r\n            web()\r\n            test()\r\n            dataJpa()\r\n            validation()\r\n            // ...\r\n        }\r\n\r\n        lombok()\r\n        apacheCommonsLang()\r\n        mapstruct()\r\n        springDoc()\r\n        swagger()\r\n        postgres()\r\n        h2()\r\n        flywayCore()\r\n        testContainers()\r\n        postgresTestContainers()\r\n        // ...\r\n\r\n        applyPlugins {\r\n            springBoot()\r\n        }\r\n    }\r\n}\r\n```\r\n\r\n## Initialize Git submodule with build configuration:\r\n\r\n```\r\ngit submodule init\r\ngit submodule update\r\n```\r\n\r\n## How to build application:\r\n\r\n```\r\n./gradlew clean build\r\n```\r\n\r\n## How to run application:\r\n\r\n```\r\nrun-app.bat\r\n```\r\n\r\n## Run functional tests:\r\n\r\n```\r\n    cd func-test\r\n    ./gradlew clean build\r\n```\r\n\r\nCheck functional test report [here](func-test/build/spock-reports/index.html)\r\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrei-punko%2Fcomposite-build-usage-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandrei-punko%2Fcomposite-build-usage-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrei-punko%2Fcomposite-build-usage-example/lists"}