Add starter, make adapter kick in only if needed

This commit is contained in:
Eric Bottard
2017-08-08 17:18:20 +02:00
parent c3c7f1fccd
commit c98642c2f7
7 changed files with 70 additions and 13 deletions

View File

@@ -16,6 +16,9 @@
package org.springframework.shell.jcommander;
import com.beust.jcommander.JCommander;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Bean;
@@ -25,6 +28,7 @@ import org.springframework.context.annotation.Bean;
* @author Eric Bottard
*/
@Configuration
@ConditionalOnClass(JCommander.class)
public class JCommanderParameterResolverAutoConfiguration {
@Bean