Skip to content

Commit

Permalink
Include jline-style in the uber-bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
gnodet committed Jan 29, 2018
1 parent 7e1f85c commit 7008567
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 4 deletions.
21 changes: 21 additions & 0 deletions jline/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@
<artifactId>sshd-core</artifactId>
<optional>true</optional>
</dependency>
<dependency>
<groupId>com.google.code.findbugs</groupId>
<artifactId>jsr305</artifactId>
<optional>true</optional>
</dependency>
</dependencies>

<build>
Expand Down Expand Up @@ -114,6 +119,14 @@
<overWrite>false</overWrite>
<outputDirectory>${project.build.directory}/generated-sources</outputDirectory>
</artifactItem>
<artifactItem>
<groupId>org.jline</groupId>
<artifactId>jline-style</artifactId>
<classifier>sources</classifier>
<type>jar</type>
<overWrite>false</overWrite>
<outputDirectory>${project.build.directory}/generated-sources</outputDirectory>
</artifactItem>

<!-- resources -->
<artifactItem>
Expand Down Expand Up @@ -172,6 +185,14 @@
<outputDirectory>${project.build.directory}/generated-resources</outputDirectory>
<excludes>**/*.class</excludes>
</artifactItem>
<artifactItem>
<groupId>org.jline</groupId>
<artifactId>jline-style</artifactId>
<type>jar</type>
<overWrite>false</overWrite>
<outputDirectory>${project.build.directory}/generated-resources</outputDirectory>
<excludes>**/*.class</excludes>
</artifactItem>
</artifactItems>
</configuration>
</execution>
Expand Down
9 changes: 8 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@
<gogo.runtime.version>1.0.8</gogo.runtime.version>
<gogo.jline.version>1.0.8</gogo.jline.version>
<slf4j.version>1.7.21</slf4j.version>
<findbugs.version>3.0.2</findbugs.version>

<surefire.argLine />
</properties>
Expand Down Expand Up @@ -223,6 +224,12 @@
<artifactId>junit</artifactId>
<version>${junit.version}</version>
</dependency>

<dependency>
<groupId>com.google.code.findbugs</groupId>
<artifactId>jsr305</artifactId>
<version>${findbugs.version}</version>
</dependency>
</dependencies>
</dependencyManagement>

Expand Down Expand Up @@ -452,9 +459,9 @@
<module>builtins</module>
<module>remote-ssh</module>
<module>remote-telnet</module>
<module>style</module>
<module>jline</module>
<module>demo</module>
<module>style</module>
</modules>

</project>
1 change: 0 additions & 1 deletion style/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
<dependency>
<groupId>com.google.code.findbugs</groupId>
<artifactId>jsr305</artifactId>
<version>3.0.2</version>
<optional>true</optional>
</dependency>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ static <T extends StyleBundle> T create(final StyleResolver resolver, final Clas
}

StyleBundleInvocationHandler handler = new StyleBundleInvocationHandler(type, resolver);
return (T) Proxy.newProxyInstance(type.getClassLoader(), new Class[]{type}, handler);
return (T) Proxy.newProxyInstance(type.getClassLoader(), new Class<?>[]{type}, handler);
}

/**
Expand Down Expand Up @@ -189,6 +189,9 @@ public String toString() {
// @VisibleForTesting
static class StyleBundleMethodMissingDefaultStyleException
extends RuntimeException {

private static final long serialVersionUID = 1L;

public StyleBundleMethodMissingDefaultStyleException(final Method method) {
super(String.format("%s method missing @%s: %s",
StyleBundle.class.getSimpleName(),
Expand All @@ -204,6 +207,9 @@ public StyleBundleMethodMissingDefaultStyleException(final Method method) {
// @VisibleForTesting
static class InvalidStyleBundleMethodException
extends RuntimeException {

private static final long serialVersionUID = 1L;

public InvalidStyleBundleMethodException(final Method method, final String message) {
super(message + ": " + method);
}
Expand All @@ -215,7 +221,10 @@ public InvalidStyleBundleMethodException(final Method method, final String messa
// @VisibleForTesting
static class InvalidStyleGroupException
extends RuntimeException {
public InvalidStyleGroupException(final Class type) {

private static final long serialVersionUID = 1L;

public InvalidStyleGroupException(final Class<?> type) {
super(String.format("%s missing or invalid @%s: %s",
StyleBundle.class.getSimpleName(),
StyleGroup.class.getSimpleName(),
Expand Down

0 comments on commit 7008567

Please sign in to comment.