From daccdbb18d4528fbb24698568a47941f86bad9cd Mon Sep 17 00:00:00 2001 From: Andrey Saksonov Date: Mon, 12 Mar 2018 11:46:44 +0300 Subject: [PATCH] Add CLI manifest for Scoop See gh-12541 --- spring-boot-project/spring-boot-cli/pom.xml | 53 ++++++++++++++++++- .../src/main/scoop/springboot.json | 26 +++++++++ .../src/main/asciidoc/getting-started.adoc | 18 +++++++ 3 files changed, 95 insertions(+), 2 deletions(-) create mode 100644 spring-boot-project/spring-boot-cli/src/main/scoop/springboot.json diff --git a/spring-boot-project/spring-boot-cli/pom.xml b/spring-boot-project/spring-boot-cli/pom.xml index 013ea825a4..08686816c8 100644 --- a/spring-boot-project/spring-boot-cli/pom.xml +++ b/spring-boot-project/spring-boot-cli/pom.xml @@ -328,16 +328,65 @@ + 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..afe86e934a 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