{"id":17280812,"url":"https://github.com/lefou/mill-spring-boot","last_synced_at":"2025-07-14T07:34:34.327Z","repository":{"id":179366501,"uuid":"663372891","full_name":"lefou/mill-spring-boot","owner":"lefou","description":"Support packaging Spring Boot Applications with Mill","archived":false,"fork":false,"pushed_at":"2025-01-19T16:12:10.000Z","size":85,"stargazers_count":7,"open_issues_count":7,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-14T09:51:04.735Z","etag":null,"topics":["build-tool","mill","mill-plugin","scala","spring-boot"],"latest_commit_sha":null,"homepage":"","language":"Scala","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/lefou.png","metadata":{"files":{"readme":"README.adoc","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"github":"lefou"}},"created_at":"2023-07-07T06:39:25.000Z","updated_at":"2025-01-19T16:12:12.000Z","dependencies_parsed_at":"2024-03-02T11:28:02.498Z","dependency_job_id":"008d4745-1106-473e-bf9c-5a6154fb067c","html_url":"https://github.com/lefou/mill-spring-boot","commit_stats":null,"previous_names":["lefou/mill-spring-boot"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/lefou/mill-spring-boot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lefou%2Fmill-spring-boot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lefou%2Fmill-spring-boot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lefou%2Fmill-spring-boot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lefou%2Fmill-spring-boot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lefou","download_url":"https://codeload.github.com/lefou/mill-spring-boot/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lefou%2Fmill-spring-boot/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265255876,"owners_count":23735354,"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":["build-tool","mill","mill-plugin","scala","spring-boot"],"created_at":"2024-10-15T09:22:02.213Z","updated_at":"2025-07-14T07:34:34.112Z","avatar_url":"https://github.com/lefou.png","language":"Scala","funding_links":["https://github.com/sponsors/lefou"],"categories":[],"sub_categories":[],"readme":"= mill-spring-boot - Packaging Spring Boot Applications with Mill\n:version: 0.0.1\n:mill-platform: 0.11\n:artifact-name: de.tobiasroeser.mill.spring.boot\n:project-name: mill-spring-boot\n:project-home: https://github.com/lefou/{project-name}\n:min-mill-version: 0.10.0\n:example-spring-boot-version: 2.7.14\n:toc:\n:toc-placement: preamble\n\nifdef::env-github[]\nimage:{project-home}/workflows/.github/workflows/build.yml/badge.svg[\"Build Status (GitHub Actions)\",link=\"{project-home}/actions\"]\nimage:https://codecov.io/gh/lefou/{project-name}/branch/main/graph/badge.svg[Test Coverage (Codecov.io),link=\"https://codecov.io/gh/lefou/{project-name}\"]\nendif::[]\n\nhttps://mill-build.com[Mill] plugin to support packing of https://spring.io/projects/spring-boot[Spring Boot] Applications.\n\n== Quickstart\n\nMill version {min-mill-version} or newer is required.\n\n[source,scala,subs=\"attributes,verbatim\"]\n----\nimport $ivy.`de.tototec::de.tobiasroeser.mill.spring.boot::{version}`\n\nimport mill._\nimport mill.scalalib._\nimport de.tobiasroeser.mill.spring.boot.SpringBootModule\n\nobject app extends JavaModule with SpringBootModule {\n  override def springBootToolsVersion = \"{example-spring-boot-version}\"\n}\n----\n\n[source,shell]\n----\n# Run the Spring-Boot Application\n$ mill app.run\n\n# Package as executable Spring-Boot Application\n$ mill app.springBootAssembly\n----\n\n== Targets and Configuration\n\nYour module needs to extend the `de.tobiasroeser.mill.spring.boot.SpringBootModule` trait. The following targets are available:\n\n`def springBootToolsVersion: T[String]`::\n_Required._ Override it to specify the version of the Spring Boot tools.\n\n`def springBootAssembly: T[PathRef]`::\nPackage an (executable) JAR.\n+\nYou can run the application with `java -jar out/app/springBootAssembly.dest/out.jar`.\n\n`def springBootPrependScript: T[String]`::\n\nA script prepended to the resulting `springBootAssembly` to make it executable.\nThis uses the same prepend script logic as Mill `JavaModule#prependScript` does, so it supports most Linux/Unix shells (probably not `fish`) as well as Windows cmd shell (the file needs a `.bat` or `.cmd` extension in that case).\nSet it to `\"\"` if you don't want an executable JAR.\n\n`def springBootMainClass: T[String]`::\nThe main class holding the Spring Boot Application entrypoint.\nBy default, the value of `JavaModule.mainClass` is used, when defined, otherwise Spring Boot will try to auto-detect it.\n\n== Download\n\nYou can download binary releases from https://search.maven.org/artifact/de.tototec/{artifact-name}_mill{mill-platform}_2.13[Maven Central].\n\nPlease make sure to use the correct _mill platform suffix_ matching your used mill version.\n\n== License\n\nThis project is published under the terms of the https://www.apache.org/licenses/LICENSE-2.0[Apache License, version 2]\n\n== About\n\nMill::\nhttps://github.com/lihaoyi/mill[Mill] is a Scala-based open source build tool.\nIn my opinion the best build tool for the JVM.\nIt is fast, reliable and easy to understand.\n\nMe::\n+\n--\nI am https://github.com/lefou/[Tobias Roeser], a professional software developer who loves to create and use open source tools.\nI'm actively developing and maintaining mill as well as https://github.com/lefou?utf8=%E2%9C%93\u0026tab=repositories\u0026q=topic%3Amill\u0026type=\u0026language=[several mill plugins].\n\nIf you like my work, please star it on GitHub.\nYou can also support me via https://github.com/sponsors/lefou[GitHub Sponsors].\n--\n\nContributing::\nIf you found a bug or have a feature request, please open a {project-home}/issues[new issue on GitHub].\nI also accept {project-home}/pulls[pull requests on GitHub].\n\n== Changelog\n\n=== 0.0.1 - 2023-07-21\n\n* Initial public release","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flefou%2Fmill-spring-boot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flefou%2Fmill-spring-boot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flefou%2Fmill-spring-boot/lists"}