diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index a9d33994..dc42ec6d 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -23,7 +23,7 @@ jobs:
- name: Setup Java
uses: actions/setup-java@v2
with:
- distribution: 'zulu'
+ distribution: 'adopt'
java-version: 8
- name: Cache Gradle
uses: actions/cache@v2
@@ -51,7 +51,7 @@ jobs:
- name: Setup Java
uses: actions/setup-java@v2
with:
- distribution: 'zulu'
+ distribution: 'adopt'
java-version: 8
- name: Cache Gradle
uses: actions/cache@v2
@@ -84,7 +84,7 @@ jobs:
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
- distribution: 'zulu'
+ distribution: 'adopt'
java-version: 11
- name: Cache SonarCloud packages
uses: actions/cache@v2
diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml
index 03902e06..207eecbd 100644
--- a/.github/workflows/pull-request.yml
+++ b/.github/workflows/pull-request.yml
@@ -34,7 +34,7 @@ jobs:
matrix:
os: [ ubuntu-latest, macos-latest, windows-latest ]
java: [ 8, 11, 16 ]
- needs: [ validation, commitlint, verify-google-java-format ]
+ needs: [ validation, commitlint ]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
@@ -42,7 +42,7 @@ jobs:
- name: Setup Java
uses: actions/setup-java@v2
with:
- distribution: 'zulu'
+ distribution: 'adopt'
java-version: ${{ matrix.java }}
- name: Cache Gradle
uses: actions/cache@v2
@@ -64,6 +64,11 @@ jobs:
if: matrix.os == 'windows-latest'
shell: cmd
run: gradlew --info check
+ - name: Publish Unit Test Results
+ uses: EnricoMi/publish-unit-test-result-action/composite@v1
+ if: always() && matrix.os != 'ubuntu-latest'
+ with:
+ files: '**/build/test-results/**/*.xml'
build:
name: Sonar analysis
@@ -80,7 +85,7 @@ jobs:
if: env.SONAR_TOKEN != null
uses: actions/setup-java@v2
with:
- distribution: 'zulu'
+ distribution: 'adopt'
java-version: 11
- name: Cache SonarCloud packages
if: env.SONAR_TOKEN != null
diff --git a/README.md b/README.md
index 8d115862..fa0a1fc1 100644
--- a/README.md
+++ b/README.md
@@ -1,12 +1,12 @@
# GraphQL and Graph*i*QL Spring Framework Boot Starters
[](https://maven-badges.herokuapp.com/maven-central/com.graphql-java-kickstart/graphql-spring-boot-starter)
+[](#snapshots)
[](https://github.com/graphql-java-kickstart/graphql-spring-boot/actions/workflows/ci.yml?query=workflow%3ACI+branch%3Amaster)
[](https://sonarcloud.io/dashboard?id=graphql-java-kickstart_graphql-spring-boot)
[](https://github.com/graphql-java-kickstart/graphql-spring-boot/graphs/contributors)
[](https://github.com/graphql-java-kickstart/graphql-spring-boot/discussions)
-
#### We are looking for contributors!
Are you interested in improving our documentation, working on the codebase, reviewing PRs?
@@ -19,12 +19,12 @@ and join the team!
**Table of Contents**
- - [Quick start](#quick-start)
- - [Using Gradle](#using-gradle)
- - [Using Maven](#using-maven)
+- [Quick start](#quick-start)
+ - [Using Gradle](#using-gradle)
+ - [Using Maven](#using-maven)
- [Documentation](#documentation)
- [Requirements and Downloads](#requirements-and-downloads)
- - [Snapshots](#snapshots)
+ - [Snapshots](#snapshots)
- [Enable GraphQL Servlet](#enable-graphql-servlet)
- [Enable Graph*i*QL](#enable-graphiql)
- [Enable Altair](#enable-altair)
@@ -72,6 +72,7 @@ kotlin.version=1.3.70
Set the Kotlin version in your `=97?o-97+10:o>=65?o-65+10:o>=48&&o<=57?o-48:1/0)>=e)break;++this.pos,i=i*e+a}return this.pos===r||null!=t&&this.pos-r!==t?null:i},Ee.readRadixNumber=function(e){var t=this.pos;this.pos+=2;var r=this.readInt(e);return null==r&&this.raise(this.start+2,"Expected number in radix "+e),this.options.ecmaVersion>=11&&110===this.input.charCodeAt(this.pos)?(r="undefined"!=typeof BigInt?BigInt(this.input.slice(t,this.pos)):null,++this.pos):f(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(k.num,r)},Ee.readNumber=function(e){var t=this.pos;e||null!==this.readInt(10)||this.raise(t,"Invalid number");var r=this.pos-t>=2&&48===this.input.charCodeAt(t);r&&this.strict&&this.raise(t,"Invalid number"),r&&/[89]/.test(this.input.slice(t,this.pos))&&(r=!1);var i=this.input.charCodeAt(this.pos);if(!r&&!e&&this.options.ecmaVersion>=11&&110===i){var n=this.input.slice(t,this.pos),s="undefined"!=typeof BigInt?BigInt(n):null;return++this.pos,f(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(k.num,s)}46!==i||r||(++this.pos,this.readInt(10),i=this.input.charCodeAt(this.pos)),69!==i&&101!==i||r||(43!==(i=this.input.charCodeAt(++this.pos))&&45!==i||++this.pos,null===this.readInt(10)&&this.raise(t,"Invalid number")),f(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var a=this.input.slice(t,this.pos),o=r?parseInt(a,8):parseFloat(a);return this.finishToken(k.num,o)},Ee.readCodePoint=function(){var e;if(123===this.input.charCodeAt(this.pos)){this.options.ecmaVersion<6&&this.unexpected();var t=++this.pos;e=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,e>1114111&&this.invalidStringToken(t,"Code point out of bounds")}else e=this.readHexChar(4);return e},Ee.readString=function(e){for(var t="",r=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var i=this.input.charCodeAt(this.pos);if(i===e)break;92===i?(t+=this.input.slice(r,this.pos),t+=this.readEscapedChar(!1),r=this.pos):(E(i,this.options.ecmaVersion>=10)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return t+=this.input.slice(r,this.pos++),this.finishToken(k.string,t)};var Ie={};Ee.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e!==Ie)throw e;this.readInvalidTemplateToken()}this.inTemplateElement=!1},Ee.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw Ie;this.raise(e,t)},Ee.readTmplToken=function(){for(var e="",t=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var r=this.input.charCodeAt(this.pos);if(96===r||36===r&&123===this.input.charCodeAt(this.pos+1))return this.pos!==this.start||this.type!==k.template&&this.type!==k.invalidTemplate?(e+=this.input.slice(t,this.pos),this.finishToken(k.template,e)):36===r?(this.pos+=2,this.finishToken(k.dollarBraceL)):(++this.pos,this.finishToken(k.backQuote));if(92===r)e+=this.input.slice(t,this.pos),e+=this.readEscapedChar(!0),t=this.pos;else if(E(r)){switch(e+=this.input.slice(t,this.pos),++this.pos,r){case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:e+="\n";break;default:e+=String.fromCharCode(r)}this.options.locations&&(++this.curLine,this.lineStart=this.pos),t=this.pos}else++this.pos}},Ee.readInvalidTemplateToken=function(){for(;this.pos"),t.push(r.value.replace(/&/g,"&").replace(//g,">").replace(/"/g,""")),r.added?t.push(""):r.removed&&t.push("")}return t.join("")},canonicalize:R}),se=Object.freeze({__proto__:null,default:{}}),le="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},ce=[],pe=[],fe="undefined"!=typeof Uint8Array?Uint8Array:Array,de=!1;function De(){de=!0;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0,n=e.length;tu&&(r=u):r=u;var a=t.length;if(a%2!=0)throw new TypeError("Invalid hex string");r>a/2&&(r=a/2);for(var i=0;i256)return null;if(!(t.loose?u[i.LOOSE]:u[i.FULL]).test(e))return null;try{return new f(e,t)}catch(n){return null}}function f(e,t){if(t&&"object"===o(t)||(t={loose:!!t,includePrerelease:!1}),e instanceof f){if(e.loose===t.loose)return e;e=e.version}else if("string"!=typeof e)throw new TypeError("Invalid Version: "+e);if(e.length>256)throw new TypeError("version is longer than 256 characters");if(!(this instanceof f))return new f(e,t);n("SemVer",e,t),this.options=t,this.loose=!!t.loose;var a=e.trim().match(t.loose?u[i.LOOSE]:u[i.FULL]);if(!a)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+a[1],this.minor=+a[2],this.patch=+a[3],this.major>r||this.major<0)throw new TypeError("Invalid major version");if(this.minor>r||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>r||this.patch<0)throw new TypeError("Invalid patch version");this.prerelease=a[4]?a[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t
"+p(o.message+"",!0)+"";throw o}}g.options=g.setOptions=function(e){return u(g.defaults,e),d(g.defaults),g},g.getDefaults=h,g.defaults=f,g.Parser=r,g.parser=r.parse,g.Renderer=o,g.TextRenderer=a,g.Lexer=i,g.lexer=i.lex,g.InlineLexer=s,g.inlineLexer=s.output,g.Slugger=c,g.parse=g,e.exports=g},"4RMZ":function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var i=n("1/U3"),r=n("/jXB"),o=n("axIb"),a=n("LViu"),s=n("umOc"),c=function(){function e(e,t,n){this._schema=e,this._typeStack=[],this._parentTypeStack=[],this._inputTypeStack=[],this._fieldDefStack=[],this._defaultValueStack=[],this._directive=null,this._argument=null,this._enumValue=null,this._getFieldDef=t||u,n&&(Object(o.G)(n)&&this._inputTypeStack.push(n),Object(o.D)(n)&&this._parentTypeStack.push(n),Object(o.O)(n)&&this._typeStack.push(n))}var t=e.prototype;return t.getType=function(){if(this._typeStack.length>0)return this._typeStack[this._typeStack.length-1]},t.getParentType=function(){if(this._parentTypeStack.length>0)return this._parentTypeStack[this._parentTypeStack.length-1]},t.getInputType=function(){if(this._inputTypeStack.length>0)return this._inputTypeStack[this._inputTypeStack.length-1]},t.getParentInputType=function(){if(this._inputTypeStack.length>1)return this._inputTypeStack[this._inputTypeStack.length-2]},t.getFieldDef=function(){if(this._fieldDefStack.length>0)return this._fieldDefStack[this._fieldDefStack.length-1]},t.getDefaultValue=function(){if(this._defaultValueStack.length>0)return this._defaultValueStack[this._defaultValueStack.length-1]},t.getDirective=function(){return this._directive},t.getArgument=function(){return this._argument},t.getEnumValue=function(){return this._enumValue},t.enter=function(e){var t=this._schema;switch(e.kind){case r.a.SELECTION_SET:var n=Object(o.A)(this.getType());this._parentTypeStack.push(Object(o.D)(n)?n:void 0);break;case r.a.FIELD:var a,c,u=this.getParentType();u&&(a=this._getFieldDef(t,u,e))&&(c=a.type),this._fieldDefStack.push(a),this._typeStack.push(Object(o.O)(c)?c:void 0);break;case r.a.DIRECTIVE:this._directive=t.getDirective(e.name.value);break;case r.a.OPERATION_DEFINITION:var l;"query"===e.operation?l=t.getQueryType():"mutation"===e.operation?l=t.getMutationType():"subscription"===e.operation&&(l=t.getSubscriptionType()),this._typeStack.push(Object(o.N)(l)?l:void 0);break;case r.a.INLINE_FRAGMENT:case r.a.FRAGMENT_DEFINITION:var p=e.typeCondition,h=p?Object(s.a)(t,p):Object(o.A)(this.getType());this._typeStack.push(Object(o.O)(h)?h:void 0);break;case r.a.VARIABLE_DEFINITION:var d=Object(s.a)(t,e.type);this._inputTypeStack.push(Object(o.G)(d)?d:void 0);break;case r.a.ARGUMENT:var f,g,b=this.getDirective()||this.getFieldDef();b&&(f=Object(i.a)(b.args,(function(t){return t.name===e.name.value})))&&(g=f.type),this._argument=f,this._defaultValueStack.push(f?f.defaultValue:void 0),this._inputTypeStack.push(Object(o.G)(g)?g:void 0);break;case r.a.LIST:var m=Object(o.B)(this.getInputType()),v=Object(o.J)(m)?m.ofType:m;this._defaultValueStack.push(void 0),this._inputTypeStack.push(Object(o.G)(v)?v:void 0);break;case r.a.OBJECT_FIELD:var y,w,O=Object(o.A)(this.getInputType());Object(o.F)(O)&&(w=O.getFields()[e.name.value])&&(y=w.type),this._defaultValueStack.push(w?w.defaultValue:void 0),this._inputTypeStack.push(Object(o.G)(y)?y:void 0);break;case r.a.ENUM:var C,S=Object(o.A)(this.getInputType());Object(o.E)(S)&&(C=S.getValue(e.value)),this._enumValue=C}},t.leave=function(e){switch(e.kind){case r.a.SELECTION_SET:this._parentTypeStack.pop();break;case r.a.FIELD:this._fieldDefStack.pop(),this._typeStack.pop();break;case r.a.DIRECTIVE:this._directive=null;break;case r.a.OPERATION_DEFINITION:case r.a.INLINE_FRAGMENT:case r.a.FRAGMENT_DEFINITION:this._typeStack.pop();break;case r.a.VARIABLE_DEFINITION:this._inputTypeStack.pop();break;case r.a.ARGUMENT:this._argument=null,this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case r.a.LIST:case r.a.OBJECT_FIELD:this._defaultValueStack.pop(),this._inputTypeStack.pop();break;case r.a.ENUM:this._enumValue=null}},e}();function u(e,t,n){var i=n.name.value;return i===a.SchemaMetaFieldDef.name&&e.getQueryType()===t?a.SchemaMetaFieldDef:i===a.TypeMetaFieldDef.name&&e.getQueryType()===t?a.TypeMetaFieldDef:i===a.TypeNameMetaFieldDef.name&&Object(o.D)(t)?a.TypeNameMetaFieldDef:Object(o.N)(t)||Object(o.H)(t)?t.getFields()[i]:void 0}},"4fRq":function(e,t){var n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(n){var i=new Uint8Array(16);e.exports=function(){return n(i),i}}else{var r=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),r[t]=e>>>((3&t)<<3)&255;return r}}},"4suF":function(e,t,n){"use strict";n.d(t,"g",(function(){return f})),n.d(t,"f",(function(){return g})),n.d(t,"c",(function(){return b})),n.d(t,"d",(function(){return m})),n.d(t,"e",(function(){return v})),n.d(t,"a",(function(){return y})),n.d(t,"b",(function(){return w})),n.d(t,"i",(function(){return O})),n.d(t,"h",(function(){return C}));var i=n("Y/la"),r=n("rWdj"),o=n("E9SJ"),a=n("t3R0"),s=n("Mw0p"),c=n("vJkw"),u=n("zpYP"),l=n("ZZnB"),p=n("F8X2"),h=n("19Hc"),d=n("axIb");function f(e){return Object(s.a)(e,b)}function g(e){if(!f(e))throw new Error("Expected ".concat(Object(r.a)(e)," to be a GraphQL directive."));return e}var b=function(){function e(e){this.name=e.name,this.description=e.description,this.locations=e.locations,this.isRepeatable=null!=e.isRepeatable&&e.isRepeatable,this.extensions=e.extensions&&Object(o.a)(e.extensions),this.astNode=e.astNode,e.name||Object(a.a)(0,"Directive must be named."),Array.isArray(e.locations)||Object(a.a)(0,"@".concat(e.name," locations must be an Array."));var t=e.args||{};Object(u.a)(t)&&!Array.isArray(t)||Object(a.a)(0,"@".concat(e.name," args must be an object with argument names as keys.")),this.args=Object(i.a)(t).map((function(e){var t=e[1];return{name:e[0],description:void 0===t.description?null:t.description,type:t.type,defaultValue:t.defaultValue,extensions:t.extensions&&Object(o.a)(t.extensions),astNode:t.astNode}}))}var t=e.prototype;return t.toString=function(){return"@"+this.name},t.toConfig=function(){return{name:this.name,description:this.description,locations:this.locations,args:Object(d.i)(this.args),isRepeatable:this.isRepeatable,extensions:this.extensions,astNode:this.astNode}},e}();Object(l.a)(b),Object(c.a)(b);var m=new b({name:"include",description:"Directs the executor to include this field or fragment only when the `if` argument is true.",locations:[p.a.FIELD,p.a.FRAGMENT_SPREAD,p.a.INLINE_FRAGMENT],args:{if:{type:Object(d.e)(h.a),description:"Included when true."}}}),v=new b({name:"skip",description:"Directs the executor to skip this field or fragment when the `if` argument is true.",locations:[p.a.FIELD,p.a.FRAGMENT_SPREAD,p.a.INLINE_FRAGMENT],args:{if:{type:Object(d.e)(h.a),description:"Skipped when true."}}}),y="No longer supported",w=new b({name:"deprecated",description:"Marks an element of a GraphQL schema as no longer supported.",locations:[p.a.FIELD_DEFINITION,p.a.ENUM_VALUE],args:{reason:{type:h.e,description:"Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted using the Markdown syntax (as specified by [CommonMark](https://commonmark.org/).",defaultValue:y}}}),O=Object.freeze([m,v,w]);function C(e){return f(e)&&O.some((function(t){return t.name===e.name}))}},"51nL":function(e,t,n){"use strict";n.d(t,"c",(function(){return f})),n.d(t,"b",(function(){return g})),n.d(t,"a",(function(){return b}));var i=n("1/U3"),r=n("1QEH"),o=n("rWdj"),a=n("E9SJ"),s=n("t3R0"),c=n("Mw0p"),u=n("zpYP"),l=n("ZZnB"),p=n("LViu"),h=n("4suF"),d=n("axIb");function f(e){return Object(c.a)(e,b)}function g(e){if(!f(e))throw new Error("Expected ".concat(Object(o.a)(e)," to be a GraphQL schema."));return e}var b=function(){function e(e){e&&e.assumeValid?this.__validationErrors=[]:(this.__validationErrors=void 0,Object(u.a)(e)||Object(s.a)(0,"Must provide configuration object."),!e.types||Array.isArray(e.types)||Object(s.a)(0,'"types" must be Array if provided but got: '.concat(Object(o.a)(e.types),".")),!e.directives||Array.isArray(e.directives)||Object(s.a)(0,'"directives" must be Array if provided but got: '+"".concat(Object(o.a)(e.directives),".")),!e.allowedLegacyNames||Array.isArray(e.allowedLegacyNames)||Object(s.a)(0,'"allowedLegacyNames" must be Array if provided but got: '+"".concat(Object(o.a)(e.allowedLegacyNames),"."))),this.extensions=e.extensions&&Object(a.a)(e.extensions),this.astNode=e.astNode,this.extensionASTNodes=e.extensionASTNodes,this.__allowedLegacyNames=e.allowedLegacyNames||[],this._queryType=e.query,this._mutationType=e.mutation,this._subscriptionType=e.subscription,this._directives=e.directives||h.i;var t=[this._queryType,this._mutationType,this._subscriptionType,p.__Schema].concat(e.types),n=Object.create(null);n=t.reduce(m,n),n=this._directives.reduce(v,n),this._typeMap=n,this._possibleTypeMap=Object.create(null),this._implementations=Object.create(null);for(var i=0,c=Object(r.a)(this._typeMap);i
'+(n?e:U(e,!0))+"
\n":""+(n?e:U(e,!0))+"
\n"},t.blockquote=function(e){return"\n"+e+"\n"},t.html=function(e){return e},t.heading=function(e,t,n,i){return this.options.headerIds?"
"+e+"
\n"},t.table=function(e,t){return t&&(t=""+t+""),""+e+"
"},t.br=function(){return this.options.xhtml?""+X(c.message+"",!0)+"";throw c}}return te.options=te.setOptions=function(e){return Q(te.defaults,e),J(te.defaults),te},te.getDefaults=K,te.defaults=ee,te.use=function(e){var t=Q({},e);if(e.renderer&&function(){var n=te.defaults.renderer||new H,i=function(t){var i=n[t];n[t]=function(){for(var r=arguments.length,o=new Array(r),a=0;a
'+(n?e:o(e,!0))+"
\n":""+(n?e:o(e,!0))+"
"}blockquote(e){return"\n"+e+"\n"}html(e){return e}heading(e,t,n,i){return this.options.headerIds?"
"+e+"
\n"}table(e,t){return t&&(t=""+t+""),""+e+"
"}br(){return this.options.xhtml?"