| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| Expand Up | @@ -15,7 +15,6 @@ jobs: | |
| MAVEN_CENTRAL_USER: ${{ secrets.MAVEN_CENTRAL_USER }} | ||
| MAVEN_CENTRAL_PASSWORD: ${{ secrets.MAVEN_CENTRAL_PASSWORD }} | ||
| RELEASE_VERSION: ${{ github.event.inputs.version }} | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - uses: gradle/wrapper-validation-action@v1 | ||
| Expand All | @@ -24,5 +23,15 @@ jobs: | |
| with: | ||
| java-version: '11' | ||
| distribution: 'corretto' | ||
| - name: build test and publish | ||
| run: ./gradlew assemble && ./gradlew check --info && ./gradlew publishToSonatype closeAndReleaseSonatypeStagingRepository -x check --info --stacktrace | ||
| - name: Build | ||
| uses: gradle/gradle-build-action@v2 | ||
| with: | ||
| arguments: assemble | ||
| - name: Test | ||
| uses: gradle/gradle-build-action@v2 | ||
| with: | ||
| arguments: check --info | ||
| - name: Publish | ||
| uses: gradle/gradle-build-action@v2 | ||
| with: | ||
| arguments: publishToSonatype closeAndReleaseSonatypeStagingRepository -x check --info --stacktrace | ||
|
Comment thread
Comment on lines
+26
to
+37
Copy link
Copy Markdown
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low QualityFacilitates better caching
Sorry, something went wrong.
All reactions
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| distributionBase=GRADLE_USER_HOME | ||
| distributionPath=wrapper/dists | ||
| distributionUrl=https\://services.gradle.org/distributions/gradle-8.0.2-bin.zip | ||
| distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-bin.zip | ||
| networkTimeout=10000 | ||
| zipStoreBase=GRADLE_USER_HOME | ||
| zipStorePath=wrapper/dists |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| Expand Up | @@ -13,4 +13,8 @@ pluginManagement { | |
| } | ||
| } | ||
|
|
||
| plugins { | ||
| id 'org.gradle.toolchains.foojay-resolver-convention' version '0.7.0' | ||
| } | ||
|
|
||
|
Comment thread
Comment on lines
+16
to
+19
Copy link
Copy Markdown
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low QualityHas to be defined in the settings.gradle Makes sure the relevant JDK is automatically downloaded again. This was changed in a more recent version (of Gradle), it used to download the JDK automatically if it was missing--now we need this plugin
Sorry, something went wrong.
All reactions
|
||
| rootProject.name = 'graphql-java' | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| Expand Up | @@ -723,39 +723,39 @@ type Object1 { | |
|
|
||
| then: | ||
| newSchema == """\ | ||
|
Comment thread
Copy link
Copy Markdown
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low QualitystripIndent behaves differently on Java 16+ because it overshadows the Groovy method that was present on String before that. Also the case for the other two tests
Sorry, something went wrong.
All reactions
|
||
| schema @Directive1(argument1 : "stringValue1"){ | ||
| query: Object1 | ||
| } | ||
| directive @Directive1(argument1: String! = "stringValue4") repeatable on SCHEMA | SCALAR | OBJECT | FIELD_DEFINITION | ARGUMENT_DEFINITION | INTERFACE | UNION | ENUM | ENUM_VALUE | INPUT_OBJECT | INPUT_FIELD_DEFINITION | ||
| interface Interface1 @Directive1(argument1 : "stringValue12") { | ||
| field2: String | ||
| field3: Enum1 | ||
| } | ||
| union Union1 @Directive1(argument1 : "stringValue21") = Object2 | ||
| type Object1 @Directive1(argument1 : "stringValue8") { | ||
| field1: Interface1 @Directive1(argument1 : "stringValue9") | ||
| field4: Union1 @deprecated | ||
| } | ||
| type Object2 implements Interface1 { | ||
| field2: String | ||
| field3: Enum1 | ||
| field5(argument2: InputObject1): String | ||
| } | ||
| enum Enum1 @Directive1(argument1 : "stringValue15") { | ||
| EnumValue1 @Directive1(argument1 : "stringValue18") | ||
| EnumValue2 | ||
| } | ||
| input InputObject1 @Directive1(argument1 : "stringValue24") { | ||
| inputField1: Int @Directive1(argument1 : "stringValue27") | ||
| } | ||
| """.stripIndent() | ||
| schema @Directive1(argument1 : "stringValue1"){ | ||
| query: Object1 | ||
| } | ||
|
|
||
| directive @Directive1(argument1: String! = "stringValue4") repeatable on SCHEMA | SCALAR | OBJECT | FIELD_DEFINITION | ARGUMENT_DEFINITION | INTERFACE | UNION | ENUM | ENUM_VALUE | INPUT_OBJECT | INPUT_FIELD_DEFINITION | ||
|
|
||
| interface Interface1 @Directive1(argument1 : "stringValue12") { | ||
| field2: String | ||
| field3: Enum1 | ||
| } | ||
|
|
||
| union Union1 @Directive1(argument1 : "stringValue21") = Object2 | ||
|
|
||
| type Object1 @Directive1(argument1 : "stringValue8") { | ||
| field1: Interface1 @Directive1(argument1 : "stringValue9") | ||
| field4: Union1 @deprecated | ||
| } | ||
|
|
||
| type Object2 implements Interface1 { | ||
| field2: String | ||
| field3: Enum1 | ||
| field5(argument2: InputObject1): String | ||
| } | ||
|
|
||
| enum Enum1 @Directive1(argument1 : "stringValue15") { | ||
| EnumValue1 @Directive1(argument1 : "stringValue18") | ||
| EnumValue2 | ||
| } | ||
|
|
||
| input InputObject1 @Directive1(argument1 : "stringValue24") { | ||
| inputField1: Int @Directive1(argument1 : "stringValue27") | ||
| } | ||
| """ | ||
| } | ||
|
|
||
| def "query with directives"() { | ||
| Expand Down | ||
| Back | FazBrowse Home | New Git URL |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low QualityFacilitates better caching
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.