Skip to content

The Unified and Autonomous Development Platform

Remove dropwizard.

robin shinef1ce94c26965
diff --git a/commons.all/pom.xml b/commons.all/pom.xml
index 8ae673787c..8840751d69 100644
--- a/commons.all/pom.xml
+++ b/commons.all/pom.xml
@@ -25,7 +25,6 @@
<module>../gitop.product</module>
<module>../gitop.web</module>
<module>../commons.jackson</module>
- <module>../commons.metrics</module>
<module>../commons.validation</module>
<module>../gitop.rest</module>
<module>../gitop.http</module>
diff --git a/commons.hibernate/pom.xml b/commons.hibernate/pom.xml
index 97a23d0525..a24296e6de 100644
--- a/commons.hibernate/pom.xml
+++ b/commons.hibernate/pom.xml
@@ -1,112 +1,118 @@
<?xml version="1.0" encoding="UTF-8"?>
-<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>
- <parent>
- <artifactId>parent.general</artifactId>
- <groupId>com.pmease</groupId>
- <version>1.0.31</version>
- </parent>
- <artifactId>commons.hibernate</artifactId>
- <build>
- <plugins>
- <plugin>
- <groupId>com.pmease</groupId>
- <artifactId>plugin.maven</artifactId>
- </plugin>
- <plugin>
- <artifactId>maven-source-plugin</artifactId>
- </plugin>
- <plugin>
- <artifactId>maven-javadoc-plugin</artifactId>
- </plugin>
- </plugins>
- </build>
- <dependencies>
- <dependency>
- <groupId>com.pmease</groupId>
- <artifactId>commons.loader</artifactId>
- <version>1.0.31</version>
- </dependency>
- <dependency>
- <groupId>org.hibernate.javax.persistence</groupId>
- <artifactId>hibernate-jpa-2.0-api</artifactId>
- <version>1.0.1.Final</version>
- </dependency>
- <dependency>
- <groupId>org.hibernate</groupId>
- <artifactId>hibernate-core</artifactId>
- <version>${hibernateVersion}</version>
- </dependency>
- <dependency>
- <groupId>org.hibernate</groupId>
- <artifactId>hibernate-ehcache</artifactId>
- <version>${hibernateVersion}</version>
- </dependency>
- <dependency>
- <groupId>org.hibernate</groupId>
- <artifactId>hibernate-entitymanager</artifactId>
- <version>${hibernateVersion}</version>
- </dependency>
- <dependency>
- <groupId>org.hsqldb</groupId>
- <artifactId>hsqldb</artifactId>
- <version>2.2.9</version>
- </dependency>
- <dependency>
- <groupId>com.jolbox</groupId>
- <artifactId>bonecp</artifactId>
- <version>0.8.0-rc1</version>
- </dependency>
- <dependency>
- <groupId>mysql</groupId>
- <artifactId>mysql-connector-java</artifactId>
- <version>5.1.24</version>
- </dependency>
- <dependency>
- <groupId>com.oracle</groupId>
- <artifactId>ojdbc14</artifactId>
- <version>10.2.0.4.0</version>
- <scope>system</scope>
- <systemPath>${project.basedir}/ojdbc14.jar</systemPath>
- </dependency>
- <dependency>
- <groupId>net.sourceforge.jtds</groupId>
- <artifactId>jtds</artifactId>
- <version>1.3.0</version>
- </dependency>
- <dependency>
- <groupId>com.pmease</groupId>
- <artifactId>commons.jackson</artifactId>
- <version>1.0.0</version>
- </dependency>
- <dependency>
- <groupId>com.fasterxml.jackson.datatype</groupId>
- <artifactId>jackson-datatype-hibernate4</artifactId>
- <version>${jacksonVersion}</version>
- </dependency>
- </dependencies>
- <repositories>
- <repository>
- <id>pmeaseRepo</id>
- <name>PMEase Repository</name>
- <releases>
- <enabled>true</enabled>
- <updatePolicy>never</updatePolicy>
- <checksumPolicy>fail</checksumPolicy>
- </releases>
- <snapshots>
- <enabled>true</enabled>
- <updatePolicy>always</updatePolicy>
- <checksumPolicy>fail</checksumPolicy>
- </snapshots>
- <url>http://artifact.pmease.com/</url>
- </repository>
- </repositories>
- <properties>
- <moduleClass>com.pmease.commons.hibernate.HibernateModule</moduleClass>
- <hibernateVersion>4.2.5.Final</hibernateVersion>
- <bonecpVersion>0.8.0-rc1</bonecpVersion>
- </properties>
- <version>1.0.30</version>
+<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>
+ <parent>
+ <artifactId>parent.general</artifactId>
+ <groupId>com.pmease</groupId>
+ <version>1.0.31</version>
+ </parent>
+ <artifactId>commons.hibernate</artifactId>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>com.pmease</groupId>
+ <artifactId>plugin.maven</artifactId>
+ </plugin>
+ <plugin>
+ <artifactId>maven-source-plugin</artifactId>
+ </plugin>
+ <plugin>
+ <artifactId>maven-javadoc-plugin</artifactId>
+ </plugin>
+ </plugins>
+ </build>
+ <dependencies>
+ <dependency>
+ <groupId>com.pmease</groupId>
+ <artifactId>commons.loader</artifactId>
+ <version>1.0.31</version>
+ </dependency>
+ <dependency>
+ <groupId>org.hibernate.javax.persistence</groupId>
+ <artifactId>hibernate-jpa-2.0-api</artifactId>
+ <version>1.0.1.Final</version>
+ </dependency>
+ <dependency>
+ <groupId>org.hibernate</groupId>
+ <artifactId>hibernate-core</artifactId>
+ <version>${hibernateVersion}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.hibernate</groupId>
+ <artifactId>hibernate-ehcache</artifactId>
+ <version>${hibernateVersion}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.hibernate</groupId>
+ <artifactId>hibernate-entitymanager</artifactId>
+ <version>${hibernateVersion}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.glassfish</groupId>
+ <artifactId>javax.el</artifactId>
+ <version>3.0.0</version>
+ </dependency>
+ <dependency>
+ <groupId>org.hsqldb</groupId>
+ <artifactId>hsqldb</artifactId>
+ <version>2.2.9</version>
+ </dependency>
+ <dependency>
+ <groupId>com.jolbox</groupId>
+ <artifactId>bonecp</artifactId>
+ <version>0.8.0-rc1</version>
+ </dependency>
+ <dependency>
+ <groupId>mysql</groupId>
+ <artifactId>mysql-connector-java</artifactId>
+ <version>5.1.24</version>
+ </dependency>
+ <dependency>
+ <groupId>com.oracle</groupId>
+ <artifactId>ojdbc14</artifactId>
+ <version>10.2.0.4.0</version>
+ <scope>system</scope>
+ <systemPath>${project.basedir}/ojdbc14.jar</systemPath>
+ </dependency>
+ <dependency>
+ <groupId>net.sourceforge.jtds</groupId>
+ <artifactId>jtds</artifactId>
+ <version>1.3.0</version>
+ </dependency>
+ <dependency>
+ <groupId>com.pmease</groupId>
+ <artifactId>commons.jackson</artifactId>
+ <version>1.0.0</version>
+ </dependency>
+ <dependency>
+ <groupId>com.fasterxml.jackson.datatype</groupId>
+ <artifactId>jackson-datatype-hibernate4</artifactId>
+ <version>${jacksonVersion}</version>
+ </dependency>
+ </dependencies>
+ <repositories>
+ <repository>
+ <id>pmeaseRepo</id>
+ <name>PMEase Repository</name>
+ <releases>
+ <enabled>true</enabled>
+ <updatePolicy>never</updatePolicy>
+ <checksumPolicy>fail</checksumPolicy>
+ </releases>
+ <snapshots>
+ <enabled>true</enabled>
+ <updatePolicy>always</updatePolicy>
+ <checksumPolicy>fail</checksumPolicy>
+ </snapshots>
+ <url>http://artifact.pmease.com/</url>
+ </repository>
+ </repositories>
+ <properties>
+ <moduleClass>com.pmease.commons.hibernate.HibernateModule</moduleClass>
+ <hibernateVersion>4.2.5.Final</hibernateVersion>
+ <bonecpVersion>0.8.0-rc1</bonecpVersion>
+ </properties>
+ <version>1.0.30</version>
</project>
diff --git a/commons.hibernate/src/main/java/com/pmease/commons/hibernate/HibernateObjectMapperModule.java b/commons.hibernate/src/main/java/com/pmease/commons/hibernate/HibernateObjectMapperModule.java
index 04477ad0f1..d2bbe65bee 100644
--- a/commons.hibernate/src/main/java/com/pmease/commons/hibernate/HibernateObjectMapperModule.java
+++ b/commons.hibernate/src/main/java/com/pmease/commons/hibernate/HibernateObjectMapperModule.java
@@ -1,7 +1,6 @@
package com.pmease.commons.hibernate;
import javax.inject.Singleton;
-import javax.persistence.Embedded;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
@@ -33,17 +32,6 @@ public class HibernateObjectMapperModule extends Hibernate4Module {
return super.hasIgnoreMarker(m) || m.hasAnnotation(OneToMany.class);
}
- @Override
- public Object findSerializer(Annotated am) {
- if (am.hasAnnotation(Embedded.class)) {
- System.out.println(am);
- }
- if (am.hasAnnotation(ManyToOne.class)) {
- System.out.println(am);
- }
- return super.findSerializer(am);
- }
-
@Override
public Object findDeserializer(Annotated am) {
if (am.hasAnnotation(ManyToOne.class)) {
diff --git a/commons.jackson/pom.xml b/commons.jackson/pom.xml
index 3cd49774bf..073db93107 100644
--- a/commons.jackson/pom.xml
+++ b/commons.jackson/pom.xml
@@ -1,82 +1,84 @@
<?xml version="1.0" encoding="UTF-8"?>
-<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/maven-v4_0_0.xsd">
- <modelVersion>4.0.0</modelVersion>
- <artifactId>commons.jackson</artifactId>
- <version>1.0.0</version>
- <parent>
- <groupId>com.pmease</groupId>
- <artifactId>parent.general</artifactId>
- <version>1.0.31</version>
- </parent>
- <build>
- <plugins>
- <plugin>
- <groupId>com.pmease</groupId>
- <artifactId>plugin.maven</artifactId>
- </plugin>
- <!-- Uncomment below if you'd like to publish an archetype based on your
- plugin -->
- <!--plugin> <artifactId>maven-archetype-plugin</artifactId> </plugin -->
- <plugin>
- <artifactId>maven-source-plugin</artifactId>
- </plugin>
- <plugin>
- <artifactId>maven-javadoc-plugin</artifactId>
- </plugin>
- </plugins>
- </build>
- <dependencies>
- <dependency>
- <groupId>com.pmease</groupId>
- <artifactId>commons.loader</artifactId>
- <version>1.0.31</version>
- </dependency>
- <dependency>
- <groupId>io.dropwizard</groupId>
- <artifactId>dropwizard-jackson</artifactId>
- <version>${dropwizardVersion}</version>
- <exclusions>
- <exclusion>
- <groupId>com.google.guava</groupId>
- <artifactId>guava</artifactId>
- </exclusion>
- </exclusions>
- </dependency>
- <dependency>
- <groupId>com.google.guava</groupId>
- <artifactId>guava</artifactId>
- </dependency>
- </dependencies>
- <repositories>
- <repository>
- <id>pmeaseRepo</id>
- <name>PMEase Repository</name>
- <releases>
- <enabled>true</enabled>
- <updatePolicy>never</updatePolicy>
- <checksumPolicy>fail</checksumPolicy>
- </releases>
- <snapshots>
- <enabled>true</enabled>
- <updatePolicy>always</updatePolicy>
- <checksumPolicy>fail</checksumPolicy>
- </snapshots>
- <url>http://artifact.pmease.com/</url>
- </repository>
- <repository>
- <id>sonatype-nexus-snapshots</id>
- <name>Sonatype Nexus Snapshots</name>
- <url>http://oss.sonatype.org/content/repositories/snapshots</url>
- <releases>
- <enabled>false</enabled>
- </releases>
- <snapshots>
- <enabled>true</enabled>
- </snapshots>
- </repository>
- </repositories>
- <properties>
- <moduleClass>com.pmease.commons.jackson.JacksonModule</moduleClass>
- </properties>
+<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/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <artifactId>commons.jackson</artifactId>
+ <version>1.0.0</version>
+ <parent>
+ <groupId>com.pmease</groupId>
+ <artifactId>parent.general</artifactId>
+ <version>1.0.31</version>
+ </parent>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>com.pmease</groupId>
+ <artifactId>plugin.maven</artifactId>
+ </plugin>
+ <!-- Uncomment below if you'd like to publish an archetype based on your
+ plugin -->
+ <!--plugin> <artifactId>maven-archetype-plugin</artifactId> </plugin -->
+ <plugin>
+ <artifactId>maven-source-plugin</artifactId>
+ </plugin>
+ <plugin>
+ <artifactId>maven-javadoc-plugin</artifactId>
+ </plugin>
+ </plugins>
+ </build>
+ <dependencies>
+ <dependency>
+ <groupId>com.pmease</groupId>
+ <artifactId>commons.loader</artifactId>
+ <version>1.0.31</version>
+ </dependency>
+ <dependency>
+ <groupId>com.fasterxml.jackson.core</groupId>
+ <artifactId>jackson-databind</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>com.fasterxml.jackson.datatype</groupId>
+ <artifactId>jackson-datatype-guava</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>com.fasterxml.jackson.datatype</groupId>
+ <artifactId>jackson-datatype-joda</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>com.fasterxml.jackson.jaxrs</groupId>
+ <artifactId>jackson-jaxrs-json-provider</artifactId>
+ </dependency>
+ </dependencies>
+ <repositories>
+ <repository>
+ <id>pmeaseRepo</id>
+ <name>PMEase Repository</name>
+ <releases>
+ <enabled>true</enabled>
+ <updatePolicy>never</updatePolicy>
+ <checksumPolicy>fail</checksumPolicy>
+ </releases>
+ <snapshots>
+ <enabled>true</enabled>
+ <updatePolicy>always</updatePolicy>
+ <checksumPolicy>fail</checksumPolicy>
+ </snapshots>
+ <url>http://artifact.pmease.com/</url>
+ </repository>
+ <repository>
+ <id>sonatype-nexus-snapshots</id>
+ <name>Sonatype Nexus Snapshots</name>
+ <url>http://oss.sonatype.org/content/repositories/snapshots</url>
+ <releases>
+ <enabled>false</enabled>
+ </releases>
+ <snapshots>
+ <enabled>true</enabled>
+ </snapshots>
+ </repository>
+ </repositories>
+ <properties>
+ <moduleClass>com.pmease.commons.jackson.JacksonModule</moduleClass>
+ </properties>
</project>
diff --git a/commons.jackson/src/main/java/com/pmease/commons/jackson/ObjectMapperProvider.java b/commons.jackson/src/main/java/com/pmease/commons/jackson/ObjectMapperProvider.java
index 2cedab2ea5..277e0d26b7 100644
--- a/commons.jackson/src/main/java/com/pmease/commons/jackson/ObjectMapperProvider.java
+++ b/commons.jackson/src/main/java/com/pmease/commons/jackson/ObjectMapperProvider.java
@@ -1,7 +1,5 @@
package com.pmease.commons.jackson;
-import io.dropwizard.jackson.Jackson;
-
import java.util.Set;
import javax.inject.Inject;
@@ -11,6 +9,8 @@ import javax.inject.Singleton;
import com.fasterxml.jackson.annotation.JsonAutoDetect;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.SerializationFeature;
+import com.fasterxml.jackson.datatype.guava.GuavaModule;
+import com.fasterxml.jackson.datatype.joda.JodaModule;
@Singleton
public class ObjectMapperProvider implements Provider<ObjectMapper> {
@@ -24,9 +24,12 @@ public class ObjectMapperProvider implements Provider<ObjectMapper> {
@Override
public ObjectMapper get() {
- ObjectMapper mapper = Jackson.newObjectMapper();
+ ObjectMapper mapper = new ObjectMapper();
+ mapper.registerModule(new GuavaModule());
+ mapper.registerModule(new JodaModule());
mapper.enable(SerializationFeature.INDENT_OUTPUT);
+ mapper.disable(SerializationFeature.FAIL_ON_EMPTY_BEANS);
mapper.setVisibilityChecker(mapper.getSerializationConfig().getDefaultVisibilityChecker()
.withFieldVisibility(JsonAutoDetect.Visibility.ANY)
diff --git a/commons.jersey/pom.xml b/commons.jersey/pom.xml
index d245a27adc..a17f5360b9 100644
--- a/commons.jersey/pom.xml
+++ b/commons.jersey/pom.xml
@@ -1,93 +1,87 @@
<?xml version="1.0" encoding="UTF-8"?>
-<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/maven-v4_0_0.xsd">
- <modelVersion>4.0.0</modelVersion>
- <artifactId>commons.jersey</artifactId>
- <version>1.0.0</version>
- <parent>
- <groupId>com.pmease</groupId>
- <artifactId>parent.general</artifactId>
- <version>1.0.31</version>
- </parent>
- <build>
- <plugins>
- <plugin>
- <groupId>com.pmease</groupId>
- <artifactId>plugin.maven</artifactId>
- </plugin>
- <!-- Uncomment below if you'd like to publish an archetype based on your plugin -->
- <!--plugin>
- <artifactId>maven-archetype-plugin</artifactId>
- </plugin-->
- <plugin>
- <artifactId>maven-source-plugin</artifactId>
- </plugin>
- <plugin>
- <artifactId>maven-javadoc-plugin</artifactId>
- </plugin>
- </plugins>
- </build>
- <dependencies>
- <dependency>
- <groupId>com.pmease</groupId>
- <artifactId>commons.loader</artifactId>
- <version>1.0.31</version>
- </dependency>
- <dependency>
- <groupId>com.pmease</groupId>
- <artifactId>commons.validation</artifactId>
- <version>1.0.0</version>
- </dependency>
- <dependency>
- <groupId>com.pmease</groupId>
- <artifactId>commons.jackson</artifactId>
- <version>1.0.0</version>
- </dependency>
- <dependency>
- <groupId>io.dropwizard</groupId>
- <artifactId>dropwizard-jersey</artifactId>
- <version>${dropwizardVersion}</version>
- </dependency>
- <dependency>
- <groupId>com.sun.jersey.contribs</groupId>
- <artifactId>jersey-multipart</artifactId>
- <version>${jerseyVersion}</version>
- </dependency>
- <dependency>
- <groupId>com.pmease</groupId>
- <artifactId>commons.metrics</artifactId>
- <version>1.0.0</version>
- </dependency>
- </dependencies>
- <repositories>
- <repository>
- <id>pmeaseRepo</id>
- <name>PMEase Repository</name>
- <releases>
- <enabled>true</enabled>
- <updatePolicy>never</updatePolicy>
- <checksumPolicy>fail</checksumPolicy>
- </releases>
- <snapshots>
- <enabled>true</enabled>
- <updatePolicy>always</updatePolicy>
- <checksumPolicy>fail</checksumPolicy>
- </snapshots>
- <url>http://artifact.pmease.com/</url>
- </repository>
- <repository>
- <id>sonatype-nexus-snapshots</id>
- <name>Sonatype Nexus Snapshots</name>
- <url>http://oss.sonatype.org/content/repositories/snapshots</url>
- <releases>
- <enabled>false</enabled>
- </releases>
- <snapshots>
- <enabled>true</enabled>
- </snapshots>
- </repository>
- </repositories>
- <properties>
- <moduleClass>com.pmease.commons.jersey.JerseyModule</moduleClass>
- </properties>
+<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/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <artifactId>commons.jersey</artifactId>
+ <version>1.0.0</version>
+ <parent>
+ <groupId>com.pmease</groupId>
+ <artifactId>parent.general</artifactId>
+ <version>1.0.31</version>
+ </parent>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>com.pmease</groupId>
+ <artifactId>plugin.maven</artifactId>
+ </plugin>
+ <!-- Uncomment below if you'd like to publish an archetype based on your
+ plugin -->
+ <!--plugin> <artifactId>maven-archetype-plugin</artifactId> </plugin -->
+ <plugin>
+ <artifactId>maven-source-plugin</artifactId>
+ </plugin>
+ <plugin>
+ <artifactId>maven-javadoc-plugin</artifactId>
+ </plugin>
+ </plugins>
+ </build>
+ <dependencies>
+ <dependency>
+ <groupId>com.pmease</groupId>
+ <artifactId>commons.loader</artifactId>
+ <version>1.0.31</version>
+ </dependency>
+ <dependency>
+ <groupId>com.pmease</groupId>
+ <artifactId>commons.validation</artifactId>
+ <version>1.0.0</version>
+ </dependency>
+ <dependency>
+ <groupId>com.pmease</groupId>
+ <artifactId>commons.jackson</artifactId>
+ <version>1.0.0</version>
+ </dependency>
+ <dependency>
+ <groupId>org.glassfish.jersey.containers</groupId>
+ <artifactId>jersey-container-servlet</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.glassfish.hk2</groupId>
+ <artifactId>guice-bridge</artifactId>
+ <version>2.2.0</version>
+ </dependency>
+ </dependencies>
+ <repositories>
+ <repository>
+ <id>pmeaseRepo</id>
+ <name>PMEase Repository</name>
+ <releases>
+ <enabled>true</enabled>
+ <updatePolicy>never</updatePolicy>
+ <checksumPolicy>fail</checksumPolicy>
+ </releases>
+ <snapshots>
+ <enabled>true</enabled>
+ <updatePolicy>always</updatePolicy>
+ <checksumPolicy>fail</checksumPolicy>
+ </snapshots>
+ <url>http://artifact.pmease.com/</url>
+ </repository>
+ <repository>
+ <id>sonatype-nexus-snapshots</id>
+ <name>Sonatype Nexus Snapshots</name>
+ <url>http://oss.sonatype.org/content/repositories/snapshots</url>
+ <releases>
+ <enabled>false</enabled>
+ </releases>
+ <snapshots>
+ <enabled>true</enabled>
+ </snapshots>
+ </repository>
+ </repositories>
+ <properties>
+ <moduleClass>com.pmease.commons.jersey.JerseyModule</moduleClass>
+ </properties>
</project>
diff --git a/commons.jersey/src/main/java/com/pmease/commons/jersey/JacksonContextResolver.java b/commons.jersey/src/main/java/com/pmease/commons/jersey/JacksonContextResolver.java
new file mode 100644
index 0000000000..e9c49f55c6
--- /dev/null
+++ b/commons.jersey/src/main/java/com/pmease/commons/jersey/JacksonContextResolver.java
@@ -0,0 +1,22 @@
+package com.pmease.commons.jersey;
+
+import javax.inject.Inject;
+import javax.ws.rs.ext.ContextResolver;
+
+import com.fasterxml.jackson.databind.ObjectMapper;
+
+public class JacksonContextResolver implements ContextResolver<ObjectMapper> {
+
+ private final ObjectMapper objectMapper;
+
+ @Inject
+ public JacksonContextResolver(ObjectMapper objectMapper) {
+ this.objectMapper = objectMapper;
+ }
+
+ @Override
+ public ObjectMapper getContext(Class<?> type) {
+ return objectMapper;
+ }
+
+}
diff --git a/commons.jersey/src/main/java/com/pmease/commons/jersey/JerseyApplication.java b/commons.jersey/src/main/java/com/pmease/commons/jersey/JerseyApplication.java
new file mode 100644
index 0000000000..da48720f86
--- /dev/null
+++ b/commons.jersey/src/main/java/com/pmease/commons/jersey/JerseyApplication.java
@@ -0,0 +1,44 @@
+package com.pmease.commons.jersey;
+
+import javax.inject.Inject;
+import javax.ws.rs.ext.MessageBodyReader;
+import javax.ws.rs.ext.MessageBodyWriter;
+
+import org.glassfish.hk2.api.ServiceLocator;
+import org.glassfish.jersey.CommonProperties;
+import org.glassfish.jersey.internal.util.PropertiesHelper;
+import org.glassfish.jersey.server.ResourceConfig;
+import org.jvnet.hk2.guice.bridge.api.GuiceBridge;
+import org.jvnet.hk2.guice.bridge.api.GuiceIntoHK2Bridge;
+
+import com.fasterxml.jackson.jaxrs.base.JsonMappingExceptionMapper;
+import com.fasterxml.jackson.jaxrs.base.JsonParseExceptionMapper;
+import com.fasterxml.jackson.jaxrs.json.JacksonJsonProvider;
+import com.pmease.commons.loader.AppLoader;
+
+public class JerseyApplication extends ResourceConfig {
+
+ @Inject
+ public JerseyApplication(ServiceLocator serviceLocator) {
+ GuiceBridge.getGuiceBridge().initializeGuiceBridge(serviceLocator);
+ GuiceIntoHK2Bridge guiceBridge = serviceLocator.getService(GuiceIntoHK2Bridge.class);
+ guiceBridge.bridgeGuiceInjector(AppLoader.injector);
+
+ register(AppLoader.getInstance(JacksonContextResolver.class));
+
+ String disableMoxy = PropertiesHelper.getPropertyNameForRuntime(
+ CommonProperties.MOXY_JSON_FEATURE_DISABLE,
+ getConfiguration().getRuntimeType());
+ property(disableMoxy, true);
+
+ // add the default Jackson exception mappers
+ register(JsonParseExceptionMapper.class);
+ register(JsonMappingExceptionMapper.class);
+ register(JacksonJsonProvider.class, MessageBodyReader.class, MessageBodyWriter.class);
+
+ for (JerseyConfigurator configurator: AppLoader.getExtensions(JerseyConfigurator.class)) {
+ configurator.configure(this);
+ }
+ }
+
+}
diff --git a/commons.jersey/src/main/java/com/pmease/commons/jersey/JerseyConfigurator.java b/commons.jersey/src/main/java/com/pmease/commons/jersey/JerseyConfigurator.java
index de5cf6b448..acc09fec1b 100644
--- a/commons.jersey/src/main/java/com/pmease/commons/jersey/JerseyConfigurator.java
+++ b/commons.jersey/src/main/java/com/pmease/commons/jersey/JerseyConfigurator.java
@@ -1,5 +1,7 @@
package com.pmease.commons.jersey;
+import org.glassfish.jersey.server.ResourceConfig;
+
public interface JerseyConfigurator {
- void configure(JerseyEnvironment environment);
+ void configure(ResourceConfig resourceConfig);
}
diff --git a/commons.jersey/src/main/java/com/pmease/commons/jersey/JerseyEnvironment.java b/commons.jersey/src/main/java/com/pmease/commons/jersey/JerseyEnvironment.java
deleted file mode 100644
index c36e505e8e..0000000000
--- a/commons.jersey/src/main/java/com/pmease/commons/jersey/JerseyEnvironment.java
+++ /dev/null
@@ -1,55 +0,0 @@
-package com.pmease.commons.jersey;
-
-import io.dropwizard.jersey.DropwizardResourceConfig;
-import io.dropwizard.jersey.jackson.JacksonMessageBodyProvider;
-
-import java.util.Set;
-
-import javax.inject.Inject;
-import javax.inject.Provider;
-import javax.inject.Singleton;
-import javax.validation.Validator;
-
-import com.codahale.metrics.MetricRegistry;
-import com.fasterxml.jackson.databind.ObjectMapper;
-import com.google.inject.Injector;
-import com.pmease.commons.util.ClassUtils;
-import com.sun.jersey.api.core.DefaultResourceConfig;
-import com.sun.jersey.api.core.ResourceConfig;
-
-@Singleton
-public class JerseyEnvironment implements Provider<ResourceConfig> {
-
- private final Injector injector;
-
- private final DefaultResourceConfig resourceConfig;
-
- @Inject
- public JerseyEnvironment(Injector injector, MetricRegistry metricRegistry, Validator validator,
- ObjectMapper objectMapper, Set<JerseyConfigurator> configurators) {
- this.injector = injector;
-
- resourceConfig = new DropwizardResourceConfig(metricRegistry);
-
- resourceConfig.getSingletons().add(new JacksonMessageBodyProvider(objectMapper, validator));
- for (JerseyConfigurator configurator: configurators)
- configurator.configure(this);
- }
-
- public void addComponent(Class<?> componentClass) {
- resourceConfig.getSingletons().add(injector.getInstance(componentClass));
- }
-
- public void addComponentFromPackage(Class<?> packageLocator) {
- for (Class<?> each: ClassUtils.findImplementations(Object.class, packageLocator)) {
- if (DefaultResourceConfig.isProviderClass(each) || DefaultResourceConfig.isRootResourceClass(each))
- addComponent(each);
- }
- }
-
- @Override
- public ResourceConfig get() {
- return resourceConfig;
- }
-
-}
diff --git a/commons.jersey/src/main/java/com/pmease/commons/jersey/JerseyModule.java b/commons.jersey/src/main/java/com/pmease/commons/jersey/JerseyModule.java
index b2d0554e32..62e6dc9507 100644
--- a/commons.jersey/src/main/java/com/pmease/commons/jersey/JerseyModule.java
+++ b/commons.jersey/src/main/java/com/pmease/commons/jersey/JerseyModule.java
@@ -1,7 +1,10 @@
package com.pmease.commons.jersey;
+import javax.inject.Singleton;
+
+import org.glassfish.jersey.server.ResourceConfig;
+
import com.pmease.commons.loader.AbstractPluginModule;
-import com.sun.jersey.api.core.ResourceConfig;
/**
* NOTE: Do not forget to rename moduleClass property defined in the pom if you've renamed this class.
@@ -13,16 +16,7 @@ public class JerseyModule extends AbstractPluginModule {
protected void configure() {
super.configure();
- contribute(JerseyConfigurator.class, new JerseyConfigurator() {
-
- @Override
- public void configure(JerseyEnvironment app) {
- }
- });
-
- bind(JerseyEnvironment.class);
-
- bind(ResourceConfig.class).toProvider(JerseyEnvironment.class);
+ bind(ResourceConfig.class).toProvider(ResourceConfigProvider.class).in(Singleton.class);
}
}
diff --git a/commons.jersey/src/main/java/com/pmease/commons/jersey/ResourceConfigProvider.java b/commons.jersey/src/main/java/com/pmease/commons/jersey/ResourceConfigProvider.java
new file mode 100644
index 0000000000..26b670ddef
--- /dev/null
+++ b/commons.jersey/src/main/java/com/pmease/commons/jersey/ResourceConfigProvider.java
@@ -0,0 +1,14 @@
+package com.pmease.commons.jersey;
+
+import javax.inject.Provider;
+
+import org.glassfish.jersey.server.ResourceConfig;
+
+public class ResourceConfigProvider implements Provider<ResourceConfig> {
+
+ @Override
+ public ResourceConfig get() {
+ return ResourceConfig.forApplicationClass(JerseyApplication.class);
+ }
+
+}
diff --git a/commons.metrics/.gitignore b/commons.metrics/.gitignore
deleted file mode 100644
index ea8c4bf7f3..0000000000
--- a/commons.metrics/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-/target
diff --git a/commons.metrics/pom.xml b/commons.metrics/pom.xml
deleted file mode 100644
index 7458679cce..0000000000
--- a/commons.metrics/pom.xml
+++ /dev/null
@@ -1,105 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<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/maven-v4_0_0.xsd">
- <modelVersion>4.0.0</modelVersion>
- <artifactId>commons.metrics</artifactId>
- <version>1.0.0</version>
- <parent>
- <groupId>com.pmease</groupId>
- <artifactId>parent.general</artifactId>
- <version>1.0.31</version>
- </parent>
- <build>
- <plugins>
- <plugin>
- <groupId>com.pmease</groupId>
- <artifactId>plugin.maven</artifactId>
- </plugin>
- <!-- Uncomment below if you'd like to publish an archetype based on your plugin -->
- <!--plugin>
- <artifactId>maven-archetype-plugin</artifactId>
- </plugin-->
- <plugin>
- <artifactId>maven-source-plugin</artifactId>
- </plugin>
- <plugin>
- <artifactId>maven-javadoc-plugin</artifactId>
- </plugin>
- </plugins>
- </build>
- <dependencies>
- <dependency>
- <groupId>com.codahale.metrics</groupId>
- <artifactId>metrics-core</artifactId>
- <version>${metricsVersion}</version>
- </dependency>
- <dependency>
- <groupId>com.codahale.metrics</groupId>
- <artifactId>metrics-jvm</artifactId>
- <version>${metricsVersion}</version>
- </dependency>
- <dependency>
- <groupId>com.codahale.metrics</groupId>
- <artifactId>metrics-servlets</artifactId>
- <version>${metricsVersion}</version>
- <exclusions>
- <exclusion>
- <groupId>com.fasterxml.jackson.core</groupId>
- <artifactId>jackson-databind</artifactId>
- </exclusion>
- </exclusions>
- </dependency>
- <dependency>
- <groupId>com.codahale.metrics</groupId>
- <artifactId>metrics-healthchecks</artifactId>
- <version>${metricsVersion}</version>
- </dependency>
- <dependency>
- <groupId>com.pmease</groupId>
- <artifactId>commons.loader</artifactId>
- <version>1.0.31</version>
- </dependency>
- <dependency>
- <groupId>com.pmease</groupId>
- <artifactId>commons.validation</artifactId>
- <version>1.0.0</version>
- </dependency>
- <dependency>
- <groupId>io.dropwizard</groupId>
- <artifactId>dropwizard-metrics</artifactId>
- <version>${dropwizardVersion}</version>
- </dependency>
- </dependencies>
- <repositories>
- <repository>
- <id>pmeaseRepo</id>
- <name>PMEase Repository</name>
- <releases>
- <enabled>true</enabled>
- <updatePolicy>never</updatePolicy>
- <checksumPolicy>fail</checksumPolicy>
- </releases>
- <snapshots>
- <enabled>true</enabled>
- <updatePolicy>always</updatePolicy>
- <checksumPolicy>fail</checksumPolicy>
- </snapshots>
- <url>http://artifact.pmease.com/</url>
- </repository>
- <repository>
- <id>sonatype-nexus-snapshots</id>
- <name>Sonatype Nexus Snapshots</name>
- <url>http://oss.sonatype.org/content/repositories/snapshots</url>
- <releases>
- <enabled>false</enabled>
- </releases>
- <snapshots>
- <enabled>true</enabled>
- </snapshots>
- </repository>
- </repositories>
- <properties>
- <moduleClass>com.pmease.commons.metrics.MetricsModule</moduleClass>
- <metricsVersion>3.0.1</metricsVersion>
- </properties>
-</project>
diff --git a/commons.metrics/src/main/java/com/pmease/commons/metrics/MetricRegistryProvider.java b/commons.metrics/src/main/java/com/pmease/commons/metrics/MetricRegistryProvider.java
deleted file mode 100644
index df67155d66..0000000000
--- a/commons.metrics/src/main/java/com/pmease/commons/metrics/MetricRegistryProvider.java
+++ /dev/null
@@ -1,28 +0,0 @@
-package com.pmease.commons.metrics;
-
-import java.lang.management.ManagementFactory;
-
-import javax.inject.Provider;
-import javax.inject.Singleton;
-
-import com.codahale.metrics.MetricRegistry;
-import com.codahale.metrics.jvm.BufferPoolMetricSet;
-import com.codahale.metrics.jvm.GarbageCollectorMetricSet;
-import com.codahale.metrics.jvm.MemoryUsageGaugeSet;
-import com.codahale.metrics.jvm.ThreadStatesGaugeSet;
-
-@Singleton
-public class MetricRegistryProvider implements Provider<MetricRegistry> {
-
- @Override
- public MetricRegistry get() {
- MetricRegistry registry = new MetricRegistry();
- registry.register("jvm.buffers", new BufferPoolMetricSet(ManagementFactory.getPlatformMBeanServer()));
- registry.register("jvm.gc", new GarbageCollectorMetricSet());
- registry.register("jvm.memory", new MemoryUsageGaugeSet());
- registry.register("jvm.threads", new ThreadStatesGaugeSet());
-
- return registry;
- }
-
-}
diff --git a/commons.metrics/src/main/java/com/pmease/commons/metrics/MetricsModule.java b/commons.metrics/src/main/java/com/pmease/commons/metrics/MetricsModule.java
deleted file mode 100644
index 098a71d892..0000000000
--- a/commons.metrics/src/main/java/com/pmease/commons/metrics/MetricsModule.java
+++ /dev/null
@@ -1,22 +0,0 @@
-package com.pmease.commons.metrics;
-
-import javax.inject.Singleton;
-
-import com.codahale.metrics.MetricRegistry;
-import com.pmease.commons.loader.AbstractPluginModule;
-
-/**
- * NOTE: Do not forget to rename moduleClass property defined in the pom if you've renamed this class.
- *
- */
-public class MetricsModule extends AbstractPluginModule {
-
- @Override
- protected void configure() {
- super.configure();
-
- // put your guice bindings here
- bind(MetricRegistry.class).toProvider(MetricRegistryProvider.class).in(Singleton.class);
- }
-
-}
diff --git a/commons.metrics/src/main/resources/META-INF/maven/archetype-metadata.xml b/commons.metrics/src/main/resources/META-INF/maven/archetype-metadata.xml
deleted file mode 100644
index 904fb7a4bb..0000000000
--- a/commons.metrics/src/main/resources/META-INF/maven/archetype-metadata.xml
+++ /dev/null
@@ -1,17 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<archetype-descriptor name="archetype.plugin">
- <fileSets>
- <fileSet filtered="true" packaged="true">
- <directory>src/main/java</directory>
- </fileSet>
- <fileSet filtered="false" packaged="false">
- <directory>src/main/resources</directory>
- </fileSet>
- <fileSet filtered="false" packaged="false">
- <directory>src/test/java</directory>
- </fileSet>
- <fileSet filtered="false" packaged="false">
- <directory>src/test/resources</directory>
- </fileSet>
- </fileSets>
-</archetype-descriptor>
\ No newline at end of file
diff --git a/commons.metrics/src/main/resources/archetype-resource/pom.xml b/commons.metrics/src/main/resources/archetype-resource/pom.xml
deleted file mode 100644
index b4f8a999c6..0000000000
--- a/commons.metrics/src/main/resources/archetype-resource/pom.xml
+++ /dev/null
@@ -1,60 +0,0 @@
-<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/maven-v4_0_0.xsd">
- <modelVersion>4.0.0</modelVersion>
-#if (\${groupId} != "com.pmease")
- <groupId>\${groupId}</groupId>
-#end
- <artifactId>\${artifactId}</artifactId>
- <version>\${version}</version>
- <parent>
- <groupId>com.pmease</groupId>
- <artifactId>parent.general</artifactId>
- <version>1.0.31</version>
- </parent>
-
- <build>
- <plugins>
- <plugin>
- <groupId>com.pmease</groupId>
- <artifactId>plugin.maven</artifactId>
- </plugin>
- <plugin>
- <artifactId>maven-source-plugin</artifactId>
- </plugin>
- <plugin>
- <artifactId>maven-javadoc-plugin</artifactId>
- </plugin>
- </plugins>
- </build>
-
- <dependencies>
- <dependency>
- <groupId>${project.groupId}</groupId>
- <artifactId>${project.artifactId}</artifactId>
- <version>${project.version}</version>
- </dependency>
- </dependencies>
-
- <repositories>
- <repository>
- <id>pmeaseRepo</id>
- <name>PMEase Repository</name>
- <releases>
- <enabled>true</enabled>
- <updatePolicy>never</updatePolicy>
- <checksumPolicy>fail</checksumPolicy>
- </releases>
- <snapshots>
- <enabled>true</enabled>
- <updatePolicy>always</updatePolicy>
- <checksumPolicy>fail</checksumPolicy>
- </snapshots>
- <url>http://artifact.pmease.com/</url>
- </repository>
- </repositories>
-
- <properties>
- <moduleClass>\${package}.PluginModule</moduleClass>
- </properties>
-
-</project>
diff --git a/commons.metrics/src/main/resources/archetype-resource/src/main/java/Plugin.java b/commons.metrics/src/main/resources/archetype-resource/src/main/java/Plugin.java
deleted file mode 100644
index da8842a8e2..0000000000
--- a/commons.metrics/src/main/resources/archetype-resource/src/main/java/Plugin.java
+++ /dev/null
@@ -1,13 +0,0 @@
-package ${package};
-
-import java.util.Collection;
-import com.pmease.commons.loader.AbstractPlugin;
-
-public class Plugin extends AbstractPlugin {
-
- @Override
- public Collection<?> getExtensions() {
- return null;
- }
-
-}
diff --git a/commons.metrics/src/main/resources/archetype-resource/src/main/java/PluginModule.java b/commons.metrics/src/main/resources/archetype-resource/src/main/java/PluginModule.java
deleted file mode 100644
index d566c299ba..0000000000
--- a/commons.metrics/src/main/resources/archetype-resource/src/main/java/PluginModule.java
+++ /dev/null
@@ -1,24 +0,0 @@
-package ${package};
-
-import com.pmease.commons.loader.AbstractPlugin;
-import com.pmease.commons.loader.AbstractPluginModule;
-
-/**
- * NOTE: Do not forget to rename moduleClass property defined in the pom if you've renamed this class.
- *
- */
-public class PluginModule extends AbstractPluginModule {
-
- @Override
- protected void configure() {
- super.configure();
-
- // put your guice bindings here
- }
-
- @Override
- protected Class<? extends AbstractPlugin> getPluginClass() {
- return Plugin.class;
- }
-
-}
diff --git a/commons.validation/pom.xml b/commons.validation/pom.xml
index 1903b166c4..c85e5d39a9 100644
--- a/commons.validation/pom.xml
+++ b/commons.validation/pom.xml
@@ -32,12 +32,12 @@
<groupId>com.pmease</groupId>
<artifactId>commons.loader</artifactId>
<version>1.0.31</version>
- </dependency>
- <dependency>
- <groupId>io.dropwizard</groupId>
- <artifactId>dropwizard-validation</artifactId>
- <version>${dropwizardVersion}</version>
- </dependency>
+ </dependency>
+ <dependency>
+ <groupId>org.hibernate</groupId>
+ <artifactId>hibernate-validator</artifactId>
+ <version>5.1.0.Final</version>
+ </dependency>
</dependencies>
<repositories>
<repository>
diff --git a/commons.validation/src/main/java/com/pmease/commons/validation/ClassValidatingValidator.java b/commons.validation/src/main/java/com/pmease/commons/validation/ClassValidatingValidator.java
index 0c19965595..f6f084d1c5 100644
--- a/commons.validation/src/main/java/com/pmease/commons/validation/ClassValidatingValidator.java
+++ b/commons.validation/src/main/java/com/pmease/commons/validation/ClassValidatingValidator.java
@@ -18,7 +18,7 @@ public class ClassValidatingValidator implements ConstraintValidator<ClassValida
// We did not disable the default violation before calling validate method as otherwise calling
// to getMessageAndPathList() will complain about no default violations if no validation errors
// is added to it in the validate method.
- if (impl.getMessageAndPathList().size() > 1) {
+ if (impl.getConstraintViolationCreationContexts().size() > 1) {
impl.disableDefaultConstraintViolation();
return false;
} else {
diff --git a/gitop.rest/src/main/java/com/pmease/gitop/rest/RestModule.java b/gitop.rest/src/main/java/com/pmease/gitop/rest/RestModule.java
index 98f6d00fc1..b850c766bd 100644
--- a/gitop.rest/src/main/java/com/pmease/gitop/rest/RestModule.java
+++ b/gitop.rest/src/main/java/com/pmease/gitop/rest/RestModule.java
@@ -1,9 +1,9 @@
package com.pmease.gitop.rest;
import org.apache.shiro.web.filter.mgt.FilterChainManager;
+import org.glassfish.jersey.server.ResourceConfig;
import com.pmease.commons.jersey.JerseyConfigurator;
-import com.pmease.commons.jersey.JerseyEnvironment;
import com.pmease.commons.jetty.ServletConfigurator;
import com.pmease.commons.loader.AbstractPluginModule;
import com.pmease.commons.shiro.FilterChainConfigurator;
@@ -25,8 +25,8 @@ public class RestModule extends AbstractPluginModule {
contribute(JerseyConfigurator.class, new JerseyConfigurator() {
@Override
- public void configure(JerseyEnvironment environment) {
- environment.addComponentFromPackage(ResourceLocator.class);
+ public void configure(ResourceConfig resourceConfig) {
+ resourceConfig.packages(true, ResourceLocator.class.getPackage().getName());
}
});
diff --git a/gitop.rest/src/main/java/com/pmease/gitop/rest/RestServletConfigurator.java b/gitop.rest/src/main/java/com/pmease/gitop/rest/RestServletConfigurator.java
index aef5589c52..9cbe474904 100644
--- a/gitop.rest/src/main/java/com/pmease/gitop/rest/RestServletConfigurator.java
+++ b/gitop.rest/src/main/java/com/pmease/gitop/rest/RestServletConfigurator.java
@@ -4,10 +4,10 @@ import javax.inject.Inject;
import org.eclipse.jetty.servlet.ServletContextHandler;
import org.eclipse.jetty.servlet.ServletHolder;
+import org.glassfish.jersey.server.ResourceConfig;
+import org.glassfish.jersey.servlet.ServletContainer;
import com.pmease.commons.jetty.ServletConfigurator;
-import com.sun.jersey.api.core.ResourceConfig;
-import com.sun.jersey.spi.container.servlet.ServletContainer;
public class RestServletConfigurator implements ServletConfigurator {
diff --git a/gitop.rest/src/main/java/com/pmease/gitop/rest/resource/BranchResource.java b/gitop.rest/src/main/java/com/pmease/gitop/rest/resource/BranchResource.java
index e1aabb906c..7b3426c0ff 100644
--- a/gitop.rest/src/main/java/com/pmease/gitop/rest/resource/BranchResource.java
+++ b/gitop.rest/src/main/java/com/pmease/gitop/rest/resource/BranchResource.java
@@ -1,7 +1,5 @@
package com.pmease.gitop.rest.resource;
-import io.dropwizard.jersey.params.LongParam;
-
import javax.inject.Inject;
import javax.validation.Valid;
import javax.ws.rs.GET;
@@ -27,8 +25,8 @@ public class BranchResource {
@GET
@Path("/{branchId}")
- public Branch get(@PathParam("branchId") LongParam branchId) {
- return branchManager.load(branchId.get());
+ public Branch get(@PathParam("branchId") Long branchId) {
+ return branchManager.load(branchId);
}
@POST
diff --git a/gitop.rest/src/main/java/com/pmease/gitop/rest/resource/PullRequestResource.java b/gitop.rest/src/main/java/com/pmease/gitop/rest/resource/PullRequestResource.java
index 2bcb96c08c..bb2c460706 100644
--- a/gitop.rest/src/main/java/com/pmease/gitop/rest/resource/PullRequestResource.java
+++ b/gitop.rest/src/main/java/com/pmease/gitop/rest/resource/PullRequestResource.java
@@ -1,7 +1,5 @@
package com.pmease.gitop.rest.resource;
-import io.dropwizard.jersey.params.LongParam;
-
import java.util.Collection;
import javax.annotation.Nullable;
@@ -38,8 +36,9 @@ public class PullRequestResource {
@GET
@Path("/{pullRequestId}")
- public PullRequest get(@PathParam("pullRequestId") LongParam pullRequestId) {
- PullRequest request = pullRequestManager.load(pullRequestId.get());
+ public PullRequest get(@PathParam("pullRequestId") Long pullRequestId) {
+ System.out.println(this);
+ PullRequest request = pullRequestManager.load(pullRequestId);
if (!SecurityUtils.getSubject().isPermitted(ObjectPermission.ofRepositoryRead(request.getTarget().getRepository())))
throw new UnauthorizedException();
diff --git a/gitop.rest/src/main/java/com/pmease/gitop/rest/resource/RepositoryResource.java b/gitop.rest/src/main/java/com/pmease/gitop/rest/resource/RepositoryResource.java
index 3dc753b265..9a0ae4984b 100644
--- a/gitop.rest/src/main/java/com/pmease/gitop/rest/resource/RepositoryResource.java
+++ b/gitop.rest/src/main/java/com/pmease/gitop/rest/resource/RepositoryResource.java
@@ -1,7 +1,5 @@
package com.pmease.gitop.rest.resource;
-import io.dropwizard.jersey.params.LongParam;
-
import javax.inject.Inject;
import javax.validation.Valid;
import javax.ws.rs.GET;
@@ -27,8 +25,8 @@ public class RepositoryResource {
@Path("/{repositoryId}")
@GET
- public Repository get(@PathParam("repositoryId") LongParam repositoryId) {
- return repositoryManager.load(repositoryId.get());
+ public Repository get(@PathParam("repositoryId") Long repositoryId) {
+ return repositoryManager.load(repositoryId);
}
@POST
diff --git a/gitop.rest/src/main/java/com/pmease/gitop/rest/resource/UserResource.java b/gitop.rest/src/main/java/com/pmease/gitop/rest/resource/UserResource.java
index 0b94a85f21..db07ece250 100644
--- a/gitop.rest/src/main/java/com/pmease/gitop/rest/resource/UserResource.java
+++ b/gitop.rest/src/main/java/com/pmease/gitop/rest/resource/UserResource.java
@@ -1,7 +1,5 @@
package com.pmease.gitop.rest.resource;
-import io.dropwizard.jersey.params.LongParam;
-
import java.util.List;
import javax.inject.Inject;
@@ -34,8 +32,8 @@ public class UserResource {
@GET
@Path("/{userId}")
- public User get(@PathParam("userId") LongParam userId) {
- return userManager.load(userId.get());
+ public User get(@PathParam("userId") Long userId) {
+ return userManager.load(userId);
}
@POST
diff --git a/gitop.web/pom.xml b/gitop.web/pom.xml
index 7d16f95b19..ca20c2617d 100644
--- a/gitop.web/pom.xml
+++ b/gitop.web/pom.xml
@@ -48,8 +48,9 @@
<!-- JERSEY CLIENT -->
<dependency>
- <groupId>com.sun.jersey</groupId>
+ <groupId>org.glassfish.jersey.core</groupId>
<artifactId>jersey-client</artifactId>
+ <version>${jerseyVersion}</version>
</dependency>
<dependency>
<groupId>commons-fileupload</groupId>
diff --git a/gitop.web/src/main/java/com/pmease/gitop/web/WebModule.java b/gitop.web/src/main/java/com/pmease/gitop/web/WebModule.java
index 4e862b86fc..d698c3ebf7 100644
--- a/gitop.web/src/main/java/com/pmease/gitop/web/WebModule.java
+++ b/gitop.web/src/main/java/com/pmease/gitop/web/WebModule.java
@@ -1,10 +1,10 @@
package com.pmease.gitop.web;
import org.apache.tika.mime.MimeTypes;
+import org.glassfish.jersey.server.ResourceConfig;
import com.pmease.commons.editable.EditSupport;
import com.pmease.commons.jersey.JerseyConfigurator;
-import com.pmease.commons.jersey.JerseyEnvironment;
import com.pmease.commons.jetty.ServletConfigurator;
import com.pmease.commons.loader.AbstractPluginModule;
import com.pmease.commons.wicket.AbstractWicketConfig;
@@ -31,8 +31,8 @@ public class WebModule extends AbstractPluginModule {
contribute(JerseyConfigurator.class, new JerseyConfigurator() {
@Override
- public void configure(JerseyEnvironment environment) {
- environment.addComponentFromPackage(ResourceLocator.class);
+ public void configure(ResourceConfig resourceConfig) {
+ resourceConfig.packages(true, ResourceLocator.class.getPackage().getName());
}
});
diff --git a/gitop.web/src/main/java/com/pmease/gitop/web/resource/GitHubUserResource.java b/gitop.web/src/main/java/com/pmease/gitop/web/resource/GitHubUserResource.java
deleted file mode 100644
index 5eaa453f2a..0000000000
--- a/gitop.web/src/main/java/com/pmease/gitop/web/resource/GitHubUserResource.java
+++ /dev/null
@@ -1,143 +0,0 @@
-package com.pmease.gitop.web.resource;
-
-import java.io.IOException;
-import java.util.List;
-
-import javax.inject.Inject;
-import javax.ws.rs.GET;
-import javax.ws.rs.Path;
-import javax.ws.rs.PathParam;
-import javax.ws.rs.Produces;
-import javax.ws.rs.core.MediaType;
-
-import org.apache.shiro.authc.credential.PasswordService;
-
-import com.fasterxml.jackson.annotation.JsonProperty;
-import com.fasterxml.jackson.core.JsonParseException;
-import com.fasterxml.jackson.core.type.TypeReference;
-import com.fasterxml.jackson.databind.DeserializationFeature;
-import com.fasterxml.jackson.databind.JsonMappingException;
-import com.fasterxml.jackson.databind.ObjectMapper;
-import com.google.common.base.Strings;
-import com.google.common.base.Throwables;
-import com.google.common.collect.Lists;
-import com.pmease.gitop.core.manager.UserManager;
-import com.pmease.gitop.model.User;
-import com.sun.jersey.api.client.Client;
-import com.sun.jersey.api.client.ClientHandlerException;
-import com.sun.jersey.api.client.UniformInterfaceException;
-import com.sun.jersey.api.client.WebResource;
-import com.sun.jersey.api.client.filter.HTTPBasicAuthFilter;
-
-@Path("/github")
-public class GitHubUserResource {
-
- @Inject ObjectMapper objectMapper;
- @Inject UserManager userManager;
- @Inject PasswordService passwordService;
-
- @GET
- @Path("{org}")
- @Produces(MediaType.APPLICATION_JSON)
- public List<User> get(@PathParam("org") String org) {
- try {
- return updateDatabase(org);
- } catch (Exception e) {
- throw Throwables.propagate(e);
- }
- }
-
- private List<User> updateDatabase(String org) throws JsonParseException,
- JsonMappingException, UniformInterfaceException,
- ClientHandlerException, IOException {
- Client client = Client.create();
- client.addFilter(new HTTPBasicAuthFilter("steveluo", "hongmei9"));
- WebResource r = client.resource("https://api.github.com/orgs/" + org
- + "/public_members");
- String content = r.get(String.class);
- objectMapper.configure(
- DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false);
- List<HubUser> users = objectMapper.readValue(content,
- new TypeReference<List<HubUser>>() {
- });
-
- List<User> result = Lists.newArrayList();
-
- for (HubUser each : users) {
- try {
- r = client.resource("https://api.github.com/users/"
- + each.login);
- HubUser u = objectMapper.readValue(r.get(String.class),
- HubUser.class);
- User user = new User();
- user.setName(u.login);
- user.setFullName(u.name);
-
- if (Strings.isNullOrEmpty(u.email)) {
- user.setEmailAddress(u.login + "@github.com");
- } else {
- user.setEmailAddress(u.email);
- }
-
- System.out.println(user);
- result.add(user);
-// user.setPassword("12345");
-// userManager.save(user);
-// System.out.println(user.getId() + " " + user);
- } catch (Exception e) {
- e.printStackTrace();
- }
- }
-
- return result;
- }
-
- public static class HubUsers {
- @JsonProperty
- List<HubUser> users = Lists.newArrayList();
-
- public List<HubUser> getUsers() {
- return users;
- }
-
- public void setUsers(List<HubUser> users) {
- this.users = users;
- }
- }
-
- public static class HubUser {
- @JsonProperty
- private String login;
-
- @JsonProperty
- private String name;
-
- @JsonProperty
- private String email;
-
- public String getLogin() {
- return login;
- }
-
- public void setLogin(String login) {
- this.login = login;
- }
-
- public String getName() {
- return name;
- }
-
- public void setName(String name) {
- this.name = name;
- }
-
- public String getEmail() {
- return email;
- }
-
- public void setEmail(String email) {
- this.email = email;
- }
- }
-
-}
diff --git a/gitop.web/src/main/java/com/pmease/gitop/web/resource/users.json b/gitop.web/src/main/java/com/pmease/gitop/web/resource/users.json
deleted file mode 100644
index ed783b0574..0000000000
--- a/gitop.web/src/main/java/com/pmease/gitop/web/resource/users.json
+++ /dev/null
@@ -1,1537 +0,0 @@
-[ {
- "id" : null,
- "name" : "9len",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "Glen D Sanford",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "BenWard",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "Ben Ward",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "DanaDanger",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "Dana McCallum",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "WamBamBoozle",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "Tom Howland",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "Yasumoto",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "Joe Smith",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "adamsinger",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "Adam Singer",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "akashgarg",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : null,
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "alanliang",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "Alan Liang",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "almalkawi",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "Mohammad Almalkawi",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "andrewcatton",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "Andrew Catton",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "andrewnguyen",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "Andrew Nguyen",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "aneeshs",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "Aneesh Sharma",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "angus-c",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "angus croll",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "arkajit",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "Arkajit Dey",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "aroetter",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : null,
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "arya",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "Arya Asemanfar",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "aschuck",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "Adam Schuck",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "asrinivas",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "Anirudh Srinivas",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "attaboy",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "Luke Andrews",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "azymnis",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "Argyris Zymnis",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "bartt",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "Bart Teeuwisse",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "bce",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : null,
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "bdd",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "Berk D. Demir",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "benh",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "Benjamin Hindman",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "benshine",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : null,
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "bierbaum",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "Wilhelm Bierbaum",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "billonahill",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "Bill Graham",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "bitbckt",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "Brandon Mitchell",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "bmdhacks",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "Brian Degenhardt",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "boazavital",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "Boaz Avital",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "bobj",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "Bob Johnston",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "brirams",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "Brian Ramos",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "busterbenson",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "Buster Benson",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "cameronhunter",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "Cameron Hunter",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "camertron",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "Cameron Dutro",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "caniszczyk",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "Chris Aniszczyk",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "chanian",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "Ian Chan",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "couch",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "Bill Couch",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "dammitimmad",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "Anand Madhavan",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "dannyhertz",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "Danny Hertz",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "danwrong",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "Dan Webb",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "davelester",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "Dave Lester",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "desandro",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "David DeSandro",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "dhelder",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "David Helder",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "dloft",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : null,
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "dth",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "Dale Harrison",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "dustinsenos",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "Dustin Senos",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "dvryaboy",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : null,
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "edma2",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "Eugene Ma",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "emblem",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : null,
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "endform",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "André JH Pinter",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "episod",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "Taylor Singletary",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "erikeldridge",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "Erik Eldridge",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "esbie",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "Sarah Brown",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "evilrob666",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "rob kinninmont",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "evnm",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "Evan Meagher",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "fat",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "Jacob",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "fmborghino",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : null,
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "franklinhu",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "Franklin Hu",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "gaborszabo",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "Gabor Szabo",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "garru",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "Gary Tsang",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "gbw",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "George Wu",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "gcampbell",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "Greg Campbell",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "gdickinson",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "Guy Dickinson",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "gerry",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "Gerry Eisenhaur",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "goaway",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "Michael Schore",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "golda",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : null,
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "hjz",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : null,
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "hoverbird",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "Patrick Ewing",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "imsut",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "Ken KAWAMOTO",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "itszero",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "Zero Cho",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "jaked",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "Jake Donham",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "jakemannix",
- "passwordHash" : null,
- "email" : "Twitter / @pbrane",
- "displayName" : "Jake Mannix",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "jakl",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "James Koval",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "jatenate",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "Justin Hurley",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "jbettcher",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "Jon Bettcher",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "jcccf",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "Justin Cheng",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "jcoveney",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "Jonathan Coveney",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "jdowens",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "John Owens",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "jfsiii",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "John Schulz",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "jharding",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "Jake Harding",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "jimio",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "jim.oleary",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "jjmmcc",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "Jeremy Cloud",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "jmhodges",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "Jeff Hodges",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "jmwhittaker",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "James Whittaker",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "johanoskarsson",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "Johan Oskarsson",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "johnynek",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "P. Oscar Boykin",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "jonathanle",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "Jonathan Le",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "jonboulle",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "Jonathan Boulle",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "jonschlinkert",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "Jon Schlinkert",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "jordanekay",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "Jordan Kay",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "joshaber",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "Josh Abernathy",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "jpcummins",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "J.P. Cummins",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "jpinner",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "Jeff Pinner",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "jschauma",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "Jan Schaumann",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "jsha",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : null,
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "jsirois",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "John Sirois",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "jugyo",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "jugyo",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "julienledem",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "Julien Le Dem",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "jwaldrop",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "James Waldrop",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "keitaf",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "Keita Fujii",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "kennethkufluk",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "Kenneth Kufluk",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "kevinoliver",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "Kevin Oliver",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "kevinweil",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "Kevin Weil",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "klingerf",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "Kevin Lingerfelt",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "kloots",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "Todd Kloots",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "kmonkeyjam",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : null,
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "krishnanraman",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "Krishnan Raman",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "kurrik",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "Arne Roomann-Kurrik",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "lahosken",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "Larry Hosken",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "lenn0x",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "Chris Goffinet",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "lintool",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "Jimmy Lin",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "ljharb",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "Jordan Harband",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "lostplan",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : null,
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "marcel",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "Marcel Molina",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "marcushanson",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "Marcus Hanson",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "mariusaeriksen",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "marius a. eriksen",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "matasar",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "Ben Matasar",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "mceachen",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "Matthew McEachen",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "mdo",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "Mark Otto",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "michaelmontano",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "Michael Montano",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "mokudekiru",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "Mo Kudeki",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "mynyml",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "Martin",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "necolas",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "Nicolas Gallagher",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "netik",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "John Adams",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "nielsvaneck",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "Niels van Eck",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "niw",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "Yoshimasa Niwa",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "noahlt",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "Noah Tye",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "olix0r",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "Oliver V. Gould",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "oreoshake",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "Neil Matatall",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "origiful",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : null,
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "pankajgupta",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "Pankaj Gupta",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "pellyg",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "Greg Pelly",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "philogb",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "nicolas garcia belmonte",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "pocketsteve",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "Steve Summers",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "presidentbeef",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "Justin",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "psychs",
- "passwordHash" : null,
- "email" : "psychs at limechat.net",
- "displayName" : "Satoshi Nakagawa",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "r",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "Raffi Krikorian",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "ralphholzmann",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "Ralph Holzmann",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "rangadi",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "Raghu Angadi",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "rcohen",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "Ross Cohen",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "rgbenson",
- "passwordHash" : null,
- "email" : "robgbenson at gmail dot com",
- "displayName" : "Rob Benson",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "rjackson",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "Robert Jackson",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "rlotun",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "Reza Lotun",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "roanta",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "Ruben Oanta",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "rondevera",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "Ron DeVera",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "rowoot",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "Micheal",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "ruslansv",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "Ruslan Belkin",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "ryangreenberg",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "Ryan Greenberg",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "ryanking",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "Ryan King",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "ryanlecompte",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "Ryan LeCompte",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "sagemintblue",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "Andy Schlaikjer",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "sandofsky",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "Benjamin Sandofsky",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "sayrer",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "Rob Sayre",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "seancook",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "Sean Cook",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "shinypb",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "Mark Christian",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "sidbatra",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "Siddharth Batra",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "siggy",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "Andrew Seigner",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "singuva",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "Srinivas Inguva",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "sjiang",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : null,
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "sjlee",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "Sangjin Lee",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "skilldrick",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "Nick Morgan",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "slyphon",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "Jonathan Simms",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "sonjake",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "Sonja Keserovic",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "sprsquish",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "Jeff Smick",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "spullara",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "Sam Pullara",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "sritchie",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "Sam Ritchie",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "stevegury",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "Steve Gury",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "stuhood",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "Stu Hood",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "sudhee",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "Sudhee",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "sylvaincarle",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "Sylvain Carle",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "tanin47",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "Tanin Na Nakorn",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "tbrd",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "tom hamshere",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "themattharris",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "Matt Harris",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "thinkingfish",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "Yao Yue",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "timtrueman",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "Tim Trueman",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "tnarg",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "Grant Monroe",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "tomwoolway",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "Tom Woolway",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "traviscrawford",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "Travis Crawford",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "treboresque",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "Robert Harris",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "trustin",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "Trustin Lee",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "tufandemir",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "Tufan Demir",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "twilliam",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "William Morgan",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "twoism",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "Christopher Burnett",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "twuttke",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "Tom Wuttke",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "utkarsh",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "Utkarsh Srivastava",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "vbonillo",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : null,
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "vojto",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "Vojto Rinik",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "vskarich",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "Veljko Skarich",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "wangtianthu",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "Tian Wang",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "wickman",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "brian wickman",
- "avatarUrl" : null,
- "admin" : false
-}, {
- "id" : null,
- "name" : "zuercher",
- "passwordHash" : null,
- "email" : "[email protected]",
- "displayName" : "Stephan Zuercher",
- "avatarUrl" : null,
- "admin" : false
-} ]
\ No newline at end of file
diff --git a/gitop.web/src/main/java/com/pmease/gitop/web/util/StandardObjectMapper.java b/gitop.web/src/main/java/com/pmease/gitop/web/util/StandardObjectMapper.java
index 390cbcfc46..9354952dc6 100644
--- a/gitop.web/src/main/java/com/pmease/gitop/web/util/StandardObjectMapper.java
+++ b/gitop.web/src/main/java/com/pmease/gitop/web/util/StandardObjectMapper.java
@@ -1,19 +1,11 @@
package com.pmease.gitop.web.util;
-import io.dropwizard.jackson.AnnotationSensitivePropertyNamingStrategy;
-import io.dropwizard.jackson.DiscoverableSubtypeResolver;
-import io.dropwizard.jackson.FuzzyEnumModule;
-import io.dropwizard.jackson.GuavaExtrasModule;
-import io.dropwizard.jackson.LogbackModule;
import com.fasterxml.jackson.core.JsonFactory;
import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.databind.DeserializationFeature;
import com.fasterxml.jackson.databind.MapperFeature;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.SerializationFeature;
-import com.fasterxml.jackson.datatype.guava.GuavaModule;
-import com.fasterxml.jackson.datatype.joda.JodaModule;
-import com.fasterxml.jackson.module.afterburner.AfterburnerModule;
public class StandardObjectMapper {
private static final ObjectMapper MAPPER = newObjectMapper();
@@ -27,14 +19,6 @@ public class StandardObjectMapper {
*/
private static ObjectMapper newObjectMapper() {
final ObjectMapper mapper = new ObjectMapper();
- mapper.registerModule(new GuavaModule());
- mapper.registerModule(new LogbackModule());
- mapper.registerModule(new GuavaExtrasModule());
- mapper.registerModule(new JodaModule());
- mapper.registerModule(new AfterburnerModule());
- mapper.registerModule(new FuzzyEnumModule());
- mapper.setPropertyNamingStrategy(new AnnotationSensitivePropertyNamingStrategy());
- mapper.setSubtypeResolver(new DiscoverableSubtypeResolver());
mapper.disable(SerializationFeature.FAIL_ON_EMPTY_BEANS);
mapper.disable(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES);
mapper.disable(MapperFeature.USE_GETTERS_AS_SETTERS);
diff --git a/parent.general/pom.xml b/parent.general/pom.xml
index b4440e2e95..6cc534c86a 100644
--- a/parent.general/pom.xml
+++ b/parent.general/pom.xml
@@ -384,18 +384,33 @@
<version>${servletVersion}</version>
</dependency>
<dependency>
- <groupId>com.sun.jersey</groupId>
- <artifactId>jersey-server</artifactId>
- <version>${jerseyVersion}</version>
+ <groupId>com.fasterxml.jackson.core</groupId>
+ <artifactId>jackson-core</artifactId>
+ <version>${jacksonVersion}</version>
</dependency>
<dependency>
- <groupId>com.sun.jersey</groupId>
- <artifactId>jersey-servlet</artifactId>
- <version>${jerseyVersion}</version>
+ <groupId>com.fasterxml.jackson.core</groupId>
+ <artifactId>jackson-databind</artifactId>
+ <version>${jacksonVersion}</version>
+ </dependency>
+ <dependency>
+ <groupId>com.fasterxml.jackson.datatype</groupId>
+ <artifactId>jackson-datatype-guava</artifactId>
+ <version>${jacksonVersion}</version>
+ </dependency>
+ <dependency>
+ <groupId>com.fasterxml.jackson.datatype</groupId>
+ <artifactId>jackson-datatype-joda</artifactId>
+ <version>${jacksonVersion}</version>
+ </dependency>
+ <dependency>
+ <groupId>com.fasterxml.jackson.jaxrs</groupId>
+ <artifactId>jackson-jaxrs-json-provider</artifactId>
+ <version>${jacksonVersion}</version>
</dependency>
<dependency>
- <groupId>com.sun.jersey</groupId>
- <artifactId>jersey-client</artifactId>
+ <groupId>org.glassfish.jersey.containers</groupId>
+ <artifactId>jersey-container-servlet</artifactId>
<version>${jerseyVersion}</version>
</dependency>
</dependencies>
@@ -471,9 +486,8 @@
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<slf4jVersion>1.7.5</slf4jVersion>
<logbackVersion>1.0.11</logbackVersion>
- <dropwizardVersion>0.7.0-rc2</dropwizardVersion>
- <jerseyVersion>1.18.1</jerseyVersion>
- <jettyVersion>8.1.10.v20130312</jettyVersion>
+ <jerseyVersion>2.8</jerseyVersion>
+ <jettyVersion>8.1.10.v20130312</jettyVersion>
<jacksonVersion>2.3.3</jacksonVersion>
<powermockVersion>1.5.1</powermockVersion>
<servletVersion>3.1-b09</servletVersion>