Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions modules/swagger-codegen-cli/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,13 @@
<groupId>io.swagger.codegen.v3</groupId>
<artifactId>swagger-codegen</artifactId>
<version>${project.version}</version>
<exclusions>
<!-- v2 codegen is only used by the online generator (GeneratorService), not by the CLI -->
<exclusion>
<groupId>io.swagger</groupId>
<artifactId>swagger-codegen</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>io.swagger.codegen.v3</groupId>
Expand Down Expand Up @@ -107,11 +114,6 @@
</dependency>


<dependency>
<groupId>com.googlecode.lambdaj</groupId>
<artifactId>lambdaj</artifactId>
<version>2.3.3</version>
</dependency>
<dependency>
<groupId>org.testng</groupId>
<artifactId>testng</artifactId>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
package io.swagger.codegen.v3.cli.cmd;

import ch.lambdaj.collection.LambdaIterable;
import io.swagger.codegen.v3.CodegenConfig;

import static ch.lambdaj.Lambda.on;
import static ch.lambdaj.collection.LambdaCollections.with;
import java.util.List;
import java.util.stream.Collectors;
import java.util.stream.StreamSupport;

import static java.util.ServiceLoader.load;

/**
Expand All @@ -13,8 +14,9 @@
public class Langs implements Runnable {
@Override
public void run() {
LambdaIterable<String> langs =
with(load(CodegenConfig.class)).extract(on(CodegenConfig.class).getName());
List<String> langs = StreamSupport.stream(load(CodegenConfig.class).spliterator(), false)
.map(CodegenConfig::getName)
.collect(Collectors.toList());
System.out.printf("Available languages: %s%n", langs);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ public void run() {
*
* @param targetDir - destination directory
* @param data - map with additional params needed to process templates
* @return converter object to pass to lambdaj
*/
private static void processFiles(DefaultGenerator generator, SupportingFile support, final File targetDir, final Map<String, Object> data) {
try {
Expand Down
7 changes: 0 additions & 7 deletions modules/swagger-codegen/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -89,13 +89,6 @@
</manifestEntries>
</archive>
</configuration>
<executions>
<execution>
<goals>
<goal>test-jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
Expand Down
Loading