Skip to content

Commit

Permalink
Bumped to initial release versin 0.9.0
Browse files Browse the repository at this point in the history
Signed-off-by: Arnold Schrijver <[email protected]>
  • Loading branch information
aschrijver committed Jul 24, 2016
1 parent 6f68d64 commit 3a0029e
Show file tree
Hide file tree
Showing 55 changed files with 201 additions and 49 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ repositories {
}
dependencies {
compile 'io.engagingspaces:vertx-graphql-publisher:0.8.2'
compile 'io.engagingspaces:vertx-graphql-publisher:0.9.0'
}
```
Consumers of a published GraphQL service that want to execute queries need a dependency on `vertx-graphql-consumer`:
Expand All @@ -127,7 +127,7 @@ repositories {
}
dependencies {
compile 'io.engagingspaces:vertx-graphql-consumer:0.8.2'
compile 'io.engagingspaces:vertx-graphql-consumer:0.9.0'
}
```
### Using with Maven
Expand Down Expand Up @@ -178,15 +178,15 @@ When using Maven a publisher of a GraphQL schema needs to add the following depe
<dependency>
<groupId>io.engagingspaces</groupId>
<artifactId>graphql-publisher</artifactId>
<version>0.8.2</version>
<version>0.9.0</version>
</dependency>
```
And consumers of a GraphQL service need to add the `vertx-graphql-consumer` dependency to their `pom.xml`:
```
<dependency>
<groupId>io.engagingspaces</groupId>
<artifactId>graphql-publisher</artifactId>
<version>0.8.2</version>
<version>0.9.0</version>
</dependency>
```

Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ subprojects {
}

group = 'io.engagingspaces'
version = '0.8.2'
version = '0.9.0'
sourceCompatibility = 1.8
archivesBaseName = "vertx-$name-$rootProject.version"
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright (c) 2016 The original author or authors
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* and Apache License v2.0 which accompanies this distribution.
*
* The Eclipse Public License is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* The Apache License v2.0 is available at
* http://www.opensource.org/licenses/apache2.0.php
*
* You may elect to redistribute this code under either of these licenses.
*/

package org.example.servicediscovery.server.droids;

import graphql.schema.DataFetcher;
Expand All @@ -14,6 +30,8 @@
/**
* Test data converted from:
* https://github.com/graphql-java/graphql-java/blob/master/src/test/groovy/graphql/StarWarsData.groovy
*
* @author <a href="https://github.com/aschrijver/">Arnold Schrijver</a>
*/
public interface DroidsData {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright (c) 2016 The original author or authors
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* and Apache License v2.0 which accompanies this distribution.
*
* The Eclipse Public License is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* The Apache License v2.0 is available at
* http://www.opensource.org/licenses/apache2.0.php
*
* You may elect to redistribute this code under either of these licenses.
*/

package org.example.servicediscovery.server.droids;

import graphql.schema.*;
Expand All @@ -10,6 +26,14 @@
import static graphql.schema.GraphQLInterfaceType.newInterface;
import static graphql.schema.GraphQLObjectType.newObject;

/**
* Example code demonstrating a schema definition that exposes a GraphQL schema.
* <p>
* Test schema adapted from:
* https://github.com/graphql-java/graphql-java/blob/master/src/test/groovy/graphql/StarWarsSchema.java
*
* @author <a href="https://github.com/aschrijver/">Arnold Schrijver</a>
*/
public class DroidsSchema implements SchemaDefinition {

public static DroidsSchema get() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright (c) 2016 The original author or authors
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* and Apache License v2.0 which accompanies this distribution.
*
* The Eclipse Public License is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* The Apache License v2.0 is available at
* http://www.opensource.org/licenses/apache2.0.php
*
* You may elect to redistribute this code under either of these licenses.
*/

package org.example.servicediscovery.server.droids;

import io.engagingspaces.servicediscovery.graphql.publisher.SchemaPublisher;
Expand All @@ -9,6 +25,11 @@
import io.vertx.core.logging.LoggerFactory;
import io.vertx.servicediscovery.ServiceDiscoveryOptions;

/**
* Example code demonstrating a a Vert.x verticle that also functions as a schema publisher.
*
* @author <a href="https://github.com/aschrijver/">Arnold Schrijver</a>
*/
public class DroidsServer extends AbstractVerticle implements SchemaPublisher {

private static final Logger LOG = LoggerFactory.getLogger(DroidsServer.class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
/**
* Adapted from: http://minborgsjavapot.blogspot.nl/2014/12/java-8-initializing-maps-in-smartest-way.html
*
* @author Arnold Schrijver
* @author <a href="https://github.com/aschrijver/">Arnold Schrijver</a>
*/
public class MapBuilder {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright (c) 2016 The original author or authors
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* and Apache License v2.0 which accompanies this distribution.
*
* The Eclipse Public License is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* The Apache License v2.0 is available at
* http://www.opensource.org/licenses/apache2.0.php
*
* You may elect to redistribute this code under either of these licenses.
*/

package org.example.servicediscovery.client;

import io.engagingspaces.servicediscovery.graphql.client.GraphQLClient;
Expand All @@ -21,6 +37,11 @@
import static org.example.servicediscovery.client.StarWarsClient.AuthLevel.DROIDS;
import static org.example.servicediscovery.client.StarWarsClient.AuthLevel.HUMANS;

/**
* Example code demonstrating a a Vert.x verticle that also functions as a schema consumer.
*
* @author <a href="https://github.com/aschrijver/">Arnold Schrijver</a>
*/
public class StarWarsClient extends AbstractVerticle implements SchemaConsumer {

public enum AuthLevel {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright (c) 2016 The original author or authors
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* and Apache License v2.0 which accompanies this distribution.
*
* The Eclipse Public License is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* The Apache License v2.0 is available at
* http://www.opensource.org/licenses/apache2.0.php
*
* You may elect to redistribute this code under either of these licenses.
*/

package org.example.servicediscovery.server.starwars;

import graphql.schema.DataFetcher;
Expand All @@ -15,6 +31,8 @@
/**
* Test data converted from:
* https://github.com/graphql-java/graphql-java/blob/master/src/test/groovy/graphql/StarWarsData.groovy
*
* @author <a href="https://github.com/aschrijver/">Arnold Schrijver</a>
*/
public interface HumanData {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright (c) 2016 The original author or authors
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* and Apache License v2.0 which accompanies this distribution.
*
* The Eclipse Public License is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* The Apache License v2.0 is available at
* http://www.opensource.org/licenses/apache2.0.php
*
* You may elect to redistribute this code under either of these licenses.
*/

package org.example.servicediscovery.server.starwars;

import graphql.schema.*;
Expand All @@ -11,8 +27,12 @@
import static graphql.schema.GraphQLObjectType.newObject;

/**
* Example code demonstrating a schema definition that exposes a GraphQL schema.
* <p>
* Test schema adapted from:
* https://github.com/graphql-java/graphql-java/blob/master/src/test/groovy/graphql/StarWarsSchema.java
*
* @author <a href="https://github.com/aschrijver/">Arnold Schrijver</a>
*/
public class StarWarsSchema implements SchemaDefinition {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/*
* Copyright (c) 2016 The original author or authors
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* and Apache License v2.0 which accompanies this distribution.
*
* The Eclipse Public License is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* The Apache License v2.0 is available at
* http://www.opensource.org/licenses/apache2.0.php
*
* You may elect to redistribute this code under either of these licenses.
*/

package org.example.servicediscovery.server.starwars;

import io.engagingspaces.servicediscovery.graphql.publisher.SchemaPublisher;
Expand All @@ -9,6 +25,11 @@
import io.vertx.core.logging.LoggerFactory;
import io.vertx.servicediscovery.ServiceDiscoveryOptions;

/**
* Example code demonstrating a a Vert.x verticle that also functions as a schema publisher.
*
* @author <a href="https://github.com/aschrijver/">Arnold Schrijver</a>
*/
public class StarWarsServer extends AbstractVerticle implements SchemaPublisher {

private static final Logger LOG = LoggerFactory.getLogger(StarWarsServer.class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
/**
* Adapted from: http://minborgsjavapot.blogspot.nl/2014/12/java-8-initializing-maps-in-smartest-way.html
*
* @author Arnold Schrijver
* @author <a href="https://github.com/aschrijver/">Arnold Schrijver</a>
*/
public class MapBuilder {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
/**
* Client for consuming GraphQL services.
*
* @author Arnold Schrijver
* @author <a href="https://github.com/aschrijver/">Arnold Schrijver</a>
*/
@VertxGen
public interface GraphQLClient {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
/**
* Manages {@link ServiceDiscovery} creation, and registration of discovery events.
*
* @author Arnold Schrijver
* @author <a href="https://github.com/aschrijver/">Arnold Schrijver</a>
*/
public class DiscoveryRegistrar extends AbstractRegistrar<DiscoveryRegistration> {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
* Registration for tracking service discovery events of a
* registered {@link ServiceDiscovery}.
*
* @author Arnold Schrijver
* @author <a href="https://github.com/aschrijver/">Arnold Schrijver</a>
*/
public class DiscoveryRegistration extends AbstractRegistration {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
* <p>
* Service discovery instances are automatically created and closed when needed.
*
* @author Arnold Schrijver
* @author <a href="https://github.com/aschrijver/">Arnold Schrijver</a>
*/
public interface SchemaConsumer extends SchemaAnnounceHandler, SchemaUsageHandler {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
* You may elect to redistribute this code under either of these licenses.
*/

/**
* @author <a href="https://github.com/aschrijver/">Arnold Schrijver</a>
*/
@ModuleGen(name="vertx-graphql-service-consumer", groupPackage = "io.engagingspaces")
package io.engagingspaces.servicediscovery.graphql;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
/**
* Tests for the {@link GraphQLClient}.
*
* @author Arnold Schrijver
* @author <a href="https://github.com/aschrijver/">Arnold Schrijver</a>
*/
@RunWith(VertxUnitRunner.class)
public class GraphQLClientTest {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
/**
* Tests for discovery registrar.
*
* @author Arnold Schrijver
* @author <a href="https://github.com/aschrijver/">Arnold Schrijver</a>
*/
@RunWith(VertxUnitRunner.class)
public class DiscoveryRegistrarTest {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
/**
* Tests for the discovery registration class.
*
* @author Arnold Schrijver
* @author <a href="https://github.com/aschrijver/">Arnold Schrijver</a>
*/
public class DiscoveryRegistrationTest {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
/**
* Tests for the {@link SchemaConsumer}.
*
* @author Arnold Schrijver
* @author <a href="https://github.com/aschrijver/">Arnold Schrijver</a>
*/
@RunWith(VertxUnitRunner.class)
public class SchemaConsumerTest {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
/**
* Interface for registrar implementations.
*
* @author Arnold Schrijver
* @author <a href="https://github.com/aschrijver/">Arnold Schrijver</a>
*/
public interface Registrar {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
/**
* Interface for registrations managed by a particular {@link Registrar}.
*
* @author Arnold Schrijver
* @author <a href="https://github.com/aschrijver/">Arnold Schrijver</a>
*/
public interface Registration {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
/**
* Base class for registrars.
*
* @author Arnold Schrijver
* @author <a href="https://github.com/aschrijver/">Arnold Schrijver</a>
* @param <T> the registration type to use
*/
public abstract class AbstractRegistrar<T extends Registration> implements Registrar {
Expand Down
Loading

0 comments on commit 3a0029e

Please sign in to comment.