From bc7f0f0abfe2d9f87fa97060ed1204797c9d7075 Mon Sep 17 00:00:00 2001 From: Remko Popma Date: Sat, 6 Jul 2019 20:05:14 +0900 Subject: [PATCH] [#752][#658][#658] Spring support --- RELEASE-NOTES.md | 1 + picocli-spring-boot-autoconfigure/build.gradle | 11 ++++++----- picocli-spring-boot-starter/build.gradle | 8 +++++--- 3 files changed, 12 insertions(+), 8 deletions(-) diff --git a/RELEASE-NOTES.md b/RELEASE-NOTES.md index 6f9f7d70..ad92750c 100644 --- a/RELEASE-NOTES.md +++ b/RELEASE-NOTES.md @@ -29,6 +29,7 @@ Picocli follows [semantic versioning](http://semver.org/). ## Fixed issues +- [#752][#658][#658] Add Spring Boot AutoConfiguration module and Spring Boot Starter module. Thanks to [Thibaud Lepretre](https://github.com/kakawait) for the pull request. - [#696][#741] Automatically split lines in TextTable. Thanks to [Sualeh Fatehi](https://github.com/sualeh) for the pull request. - [#756] API: Make synopsis indent for multi-line synopsis configurable (related to #739). - [#761] API: Add `ParseResult.matchedArgs()` method to return all matched arguments in order; change `ParseResult.matchedOptions()` and `ParseResult.matchedPositionals()` to return the full list of matched options and positional parameters, including duplicates if the option or positional parameter was matched multiple times. Thanks to [Michael D. Adams](https://github.com/adamsmd) for the feature request. diff --git a/picocli-spring-boot-autoconfigure/build.gradle b/picocli-spring-boot-autoconfigure/build.gradle index 005c0063..68b9d135 100644 --- a/picocli-spring-boot-autoconfigure/build.gradle +++ b/picocli-spring-boot-autoconfigure/build.gradle @@ -3,9 +3,10 @@ plugins { } group 'info.picocli' -version '4.0.0-rc-1-SNAPSHOT' - +description 'Picocli Spring Boot AutoConfigure - Enables Spring Dependency Injection in Picocli Commands.' +version "$projectVersion" sourceCompatibility = 1.8 +targetCompatibility = 1.8 repositories { mavenCentral() @@ -13,7 +14,7 @@ repositories { dependencies { compile rootProject - compile (group: 'org.springframework.boot', name: 'spring-boot-starter', version: "$springBootVersion" ) - compileOnly("org.springframework.boot:spring-boot-configuration-processor:$springBootVersion") - testCompile group: 'junit', name: 'junit', version: '4.12' + compile "org.springframework.boot:spring-boot-starter:$springBootVersion" + compileOnly "org.springframework.boot:spring-boot-configuration-processor:$springBootVersion" + testCompile "junit:junit:$junitVersion" } diff --git a/picocli-spring-boot-starter/build.gradle b/picocli-spring-boot-starter/build.gradle index ccc350f2..bdfa685a 100644 --- a/picocli-spring-boot-starter/build.gradle +++ b/picocli-spring-boot-starter/build.gradle @@ -3,7 +3,8 @@ plugins { } group 'info.picocli' -version '4.0.0-rc-1-SNAPSHOT' +description 'Picocli Spring Boot Starter - Dependency Descriptor to Easily get Started with Picocli and Spring.' +version "$projectVersion" sourceCompatibility = 1.8 @@ -12,6 +13,7 @@ repositories { } dependencies { - compile (group: 'org.springframework.boot', name: 'spring-boot-starter', version: '2.1.6.RELEASE' ) - compileOnly("org.springframework.boot:spring-boot-configuration-processor:2.1.6.RELEASE") + compile "info.picocli:picocli:$projectVersion" + compile "org.springframework.boot:spring-boot-starter:$springBootVersion" + compileOnly "org.springframework.boot:spring-boot-configuration-processor:$springBootVersion" }