Skip to content

Commit

Permalink
Add support for compiling and running with java 9
Browse files Browse the repository at this point in the history
  • Loading branch information
gmokki committed Dec 1, 2017
1 parent 7d27f35 commit 4862b50
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ private void initNonSpringWorkflowDefinitions() throws IOException, ReflectiveOp
logger.info("Preparing workflow {}", row);
@SuppressWarnings("unchecked")
Class<WorkflowDefinition<? extends WorkflowState>> clazz = (Class<WorkflowDefinition<? extends WorkflowState>>) Class.forName(row);
addWorkflowDefinition(clazz.newInstance());
addWorkflowDefinition(clazz.getDeclaredConstructor().newInstance());
}
}
}
Expand Down
8 changes: 8 additions & 0 deletions nflow-jetty/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,14 @@
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-rs-service-description-swagger</artifactId>
</dependency>
<dependency>
<groupId>javax.xml.bind</groupId>
<artifactId>jaxb-api</artifactId>
</dependency>
<dependency>
<groupId>javax.xml.ws</groupId>
<artifactId>jaxws-api</artifactId>
</dependency>
<dependency>
<groupId>io.swagger</groupId>
<artifactId>swagger-jaxrs</artifactId>
Expand Down
4 changes: 4 additions & 0 deletions nflow-metrics/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -66,5 +66,9 @@
<groupId>com.google.code.findbugs</groupId>
<artifactId>annotations</artifactId>
</dependency>
<dependency>
<groupId>javax.annotation</groupId>
<artifactId>javax.annotation-api</artifactId>
</dependency>
</dependencies>
</project>
18 changes: 18 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,11 @@
<jackson.version>2.9.2</jackson.version>
<jackson-databind.version>2.9.2</jackson-databind.version>
<javassist.version>3.21.0-GA</javassist.version>
<javax.annotation-api.version>1.3.1</javax.annotation-api.version>
<javax.servlet-api.version>3.1.0</javax.servlet-api.version>
<javax.ws.rs.version>2.1</javax.ws.rs.version>
<jaxb-api.version>2.3.0</jaxb-api.version>
<jaxws-api.version>2.3.0</jaxws-api.version>
<jersey.version>2.26</jersey.version>
<jetty.version>9.4.8.v20171121</jetty.version>
<jodatime.version>2.9.9</jodatime.version>
Expand Down Expand Up @@ -645,6 +648,21 @@
<artifactId>jackson-datatype-joda</artifactId>
<version>${jackson.version}</version>
</dependency>
<dependency>
<groupId>javax.xml.bind</groupId>
<artifactId>jaxb-api</artifactId>
<version>${jaxb-api.version}</version>
</dependency>
<dependency>
<groupId>javax.xml.ws</groupId>
<artifactId>jaxws-api</artifactId>
<version>${jaxws-api.version}</version>
</dependency>
<dependency>
<groupId>javax.annotation</groupId>
<artifactId>javax.annotation-api</artifactId>
<version>${javax.annotation-api.version}</version>
</dependency>
<!-- netty -->
<dependency>
<groupId>io.projectreactor.ipc</groupId>
Expand Down

0 comments on commit 4862b50

Please sign in to comment.