diff --git a/spring-boot-project/spring-boot-cli/pom.xml b/spring-boot-project/spring-boot-cli/pom.xml index 013ea825a4..902b717cf3 100644 --- a/spring-boot-project/spring-boot-cli/pom.xml +++ b/spring-boot-project/spring-boot-cli/pom.xml @@ -328,13 +328,62 @@ + tofile="${project.build.directory}/homebrew/springboot.rb" overwrite="true"> - + + + + + + scoop + package + + run + + false + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/spring-boot-project/spring-boot-cli/src/main/scoop/springboot.json b/spring-boot-project/spring-boot-cli/src/main/scoop/springboot.json new file mode 100644 index 0000000000..b8b3ad73f2 --- /dev/null +++ b/spring-boot-project/spring-boot-cli/src/main/scoop/springboot.json @@ -0,0 +1,26 @@ +{ + "homepage": "https://projects.spring.io/spring-boot/", + "version": "${scoop-version}", + "license": "Apache 2.0", + "hash": "${hash}", + "url": "https://repo.spring.io/${repo}/org/springframework/boot/spring-boot-cli/${project.version}/spring-boot-cli-${project.version}-bin.zip", + "extract_dir": "spring-${project.version}", + "bin": "bin\\spring.bat", + "suggest": { + "JDK": [ + "java/oraclejdk", + "java/openjdk" + ] + }, + "checkver": { + "github": "https://github.com/spring-projects/spring-boot", + "re": "/releases/tag/(?:v)?(2[\\d.]+)\\.RELEASE" + }, + "autoupdate": { + "url": "https://repo.spring.io/release/org/springframework/boot/spring-boot-cli/$version.RELEASE/spring-boot-cli-$version.RELEASE-bin.zip", + "extract_dir": "spring-$version.RELEASE", + "hash": { + "url": "$url.sha256" + } + } +} diff --git a/spring-boot-project/spring-boot-docs/src/main/asciidoc/getting-started.adoc b/spring-boot-project/spring-boot-docs/src/main/asciidoc/getting-started.adoc index 38cedcebe5..3921769e32 100644 --- a/spring-boot-project/spring-boot-docs/src/main/asciidoc/getting-started.adoc +++ b/spring-boot-project/spring-boot-docs/src/main/asciidoc/getting-started.adoc @@ -387,6 +387,24 @@ completion scripts are automatically registered with your shell. +[[getting-started-scoop-cli-installation]] +==== Windows Scoop Installation +If you are on a Windows and use http://scoop.sh/[Scoop], you can install the Spring Boot +CLI by using the following commands: + +[indent=0] +---- + > scoop bucket add extras + > scoop install springboot +---- + +Scoop installs `spring` to `~/scoop/apps/springboot/current/bin`. + +NOTE: If you do not see the app manifest, your installation of scoop might be out-of-date. +In that case, run `scoop update` and try again. + + + [[getting-started-cli-example]] ==== Quick-start Spring CLI Example You can use the following web application to test your installation. To start, create a