Introduce -standard and -standard-commands artifacts

Fixes #43
This commit is contained in:
Eric Bottard
2017-05-27 14:48:54 +02:00
parent 5a2658b0e4
commit ec83869c9f
26 changed files with 74 additions and 12 deletions

1
.gitignore vendored
View File

@@ -8,3 +8,4 @@ target/
*.iml
*.ipr
*.iws
.DS_Store

12
pom.xml
View File

@@ -21,6 +21,8 @@
<modules>
<module>spring-shell2-core</module>
<module>spring-shell2-standard</module>
<module>spring-shell2-standard-commands</module>
<module>spring-shell2-jcommander-adapter</module>
<module>spring-shell2-samples</module>
<module>spring-shell2-shell1-adapter</module>
@@ -33,6 +35,16 @@
<artifactId>spring-shell2-core</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.springframework.shell</groupId>
<artifactId>spring-shell2-standard</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.springframework.shell</groupId>
<artifactId>spring-shell2-standard-commands</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.springframework.shell</groupId>
<artifactId>spring-shell2-shell1-adapter</artifactId>

View File

@@ -25,11 +25,8 @@ import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.core.convert.ConversionService;
import org.springframework.core.convert.support.DefaultConversionService;
import org.springframework.shell2.standard.EnumValueProvider;
import org.springframework.shell2.standard.StandardParameterResolver;
/**
* Main entry point for the application.

View File

@@ -30,6 +30,15 @@
<groupId>org.springframework.shell</groupId>
<artifactId>spring-shell2-core</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.shell</groupId>
<artifactId>spring-shell2-standard</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.shell</groupId>
<artifactId>spring-shell2-standard-commands</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.springframework.shell</groupId>
<artifactId>spring-shell2-shell1-adapter</artifactId>

View File

@@ -0,0 +1,22 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<artifactId>spring-shell2-standard-commands</artifactId>
<packaging>jar</packaging>
<parent>
<groupId>org.springframework.shell</groupId>
<artifactId>spring-shell2-parent</artifactId>
<version>2.0.0.BUILD-SNAPSHOT</version>
</parent>
<description>Standard out-of-the-box shell commands, implemented using the Standard API</description>
<dependencies>
<dependency>
<groupId>org.springframework.shell</groupId>
<artifactId>spring-shell2-standard</artifactId>
</dependency>
</dependencies>
</project>

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2015 the original author or authors.
* Copyright 2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.shell2.commands;
package org.springframework.shell2.standard.commands;
import org.jline.terminal.Terminal;
import org.jline.utils.InfoCmp;

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2015 the original author or authors.
* Copyright 2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.shell2.commands;
package org.springframework.shell2.standard.commands;
import static java.util.stream.Collectors.mapping;
import static java.util.stream.Collectors.toCollection;

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2015 the original author or authors.
* Copyright 2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.shell2.commands;
package org.springframework.shell2.standard.commands;
import org.springframework.shell2.ExitRequest;
import org.springframework.shell2.standard.ShellComponent;

View File

@@ -19,4 +19,4 @@
*
* @author Eric Bottard
*/
package org.springframework.shell2.commands;
package org.springframework.shell2.standard.commands;

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2015 the original author or authors.
* Copyright 2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.springframework.shell2.commands;
package org.springframework.shell2.standard.commands;
import java.io.IOException;
import java.io.InputStream;

View File

@@ -0,0 +1,21 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<artifactId>spring-shell2-standard</artifactId>
<packaging>jar</packaging>
<parent>
<groupId>org.springframework.shell</groupId>
<artifactId>spring-shell2-parent</artifactId>
<version>2.0.0.BUILD-SNAPSHOT</version>
</parent>
<description>APIs and resolvers for using the standard Spring Shell programming model</description>
<dependencies>
<dependency>
<groupId>org.springframework.shell</groupId>
<artifactId>spring-shell2-core</artifactId>
</dependency>
</dependencies>
</project>