[ Web Proxy ]
URL:
Viewing: https://raw.githubusercontent.com/emeraldjava/graphql-java/master/docs/getting_started.rst [Back]  [Original]

Getting started
===============

``graphql-java`` requires at least Java 8.


How to use the latest release with Gradle
------------------------------------------

Make sure ``mavenCentral`` is among your repos:

.. code-block:: groovy

    repositories {
        mavenCentral()
    }


Dependency:

.. code-block:: groovy

    dependencies {
      compile 'com.graphql-java:graphql-java:3.0.0'
    }


How to use the latest release with Maven
-----------------------------------------

Dependency:

.. code-block:: xml

    
        com.graphql-java
        graphql-java
        3.0.0


Hello World
---------------

This is the famous "hello world" in ``graphql-java``:

.. literalinclude:: ../src/test/java/HelloWorld.java
    :language: java


Using the latest development build
-----------------------------------

The latest development build is available on Bintray.

Please look at `Latest Build `_ for the
latest version value.


How to use the latest build with Gradle
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Add the repositories:

.. code-block:: groovy

    repositories {
        mavenCentral()
        maven { url  "http://dl.bintray.com/andimarek/graphql-java" }
    }


Dependency:

.. code-block:: groovy

    dependencies {
      compile 'com.graphql-java:graphql-java:INSERT_LATEST_VERSION_HERE'
    }


How to use the latest build with Maven
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^


Add the repository:

.. code-block:: xml


            false
        
        bintray-andimarek-graphql-java
        bintray
        http://dl.bintray.com/andimarek/graphql-java
    

Dependency:

.. code-block:: xml

    
        com.graphql-java
        graphql-java
        INSERT_LATEST_VERSION_HERE



Web Proxy Viewer  |  New URL  |  Original Page