Skip to content
This repository was archived by the owner on Dec 19, 2023. It is now read-only.

Commit 5bba28f

Browse files
committed
chore: move examples into samples project
1 parent 92ffc9f commit 5bba28f

File tree

59 files changed

+63
-2074
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+63
-2074
lines changed

build.gradle

Lines changed: 63 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -116,89 +116,86 @@ subprojects {
116116
compileJava.dependsOn(processResources)
117117
}
118118

119-
if (!it.name.startsWith('example')) {
119+
//disable Gradle Metadata generation as it may cause unwanted side effects
120+
tasks.withType(GenerateModuleMetadata) {
121+
enabled = false
122+
}
120123

121-
//disable Gradle Metadata generation as it may cause unwanted side effects
122-
tasks.withType(GenerateModuleMetadata) {
123-
enabled = false
124+
if (it.name != bomProjectName) {
125+
jar {
126+
from "LICENSE.md"
124127
}
125128

126-
if (it.name != bomProjectName) {
127-
jar {
128-
from "LICENSE.md"
129-
}
130-
131-
java {
132-
withSourcesJar()
133-
withJavadocJar()
134-
}
129+
java {
130+
withSourcesJar()
131+
withJavadocJar()
135132
}
133+
}
136134

137-
if (!version.toString().endsWith('-SNAPSHOT')) {
138-
ext["signing.keyId"] = System.env.SIGNING_KEY_ID
139-
ext["signing.password"] = System.env.SIGNING_PASSWORD
140-
ext["signing.secretKeyRingFile"] = System.env.SIGNING_SECRET_KEY_RING_FILE
135+
if (!version.toString().endsWith('-SNAPSHOT')) {
136+
ext["signing.keyId"] = System.env.SIGNING_KEY_ID
137+
ext["signing.password"] = System.env.SIGNING_PASSWORD
138+
ext["signing.secretKeyRingFile"] = System.env.SIGNING_SECRET_KEY_RING_FILE
141139

142-
signing {
143-
sign publishing.publications
144-
}
140+
signing {
141+
sign publishing.publications
145142
}
143+
}
146144

147-
publishing {
148-
publications {
149-
mavenJava(MavenPublication) {
150-
if (project.name != bomProjectName) {
151-
from components.java
152-
}
145+
publishing {
146+
publications {
147+
mavenJava(MavenPublication) {
148+
if (project.name != bomProjectName) {
149+
from components.java
150+
}
153151

154-
// to avoid "Publication only contains dependencies and/or constraints without a version" error
155-
// see https://docs.gradle.org/6.2.1/userguide/publishing_maven.html#publishing_maven:resolved_dependencies
156-
versionMapping {
157-
usage('java-api') {
158-
fromResolutionOf('runtimeClasspath')
159-
}
160-
usage('java-runtime') {
161-
fromResolutionResult()
162-
}
152+
// to avoid "Publication only contains dependencies and/or constraints without a version" error
153+
// see https://docs.gradle.org/6.2.1/userguide/publishing_maven.html#publishing_maven:resolved_dependencies
154+
versionMapping {
155+
usage('java-api') {
156+
fromResolutionOf('runtimeClasspath')
157+
}
158+
usage('java-runtime') {
159+
fromResolutionResult()
163160
}
161+
}
164162

165-
pom {
166-
name = PROJECT_NAME
167-
description = PROJECT_DESC
163+
pom {
164+
name = PROJECT_NAME
165+
description = PROJECT_DESC
166+
url = PROJECT_GIT_REPO_URL
167+
scm {
168168
url = PROJECT_GIT_REPO_URL
169-
scm {
170-
url = PROJECT_GIT_REPO_URL
171-
connection = PROJECT_GIT_REPO_URL
172-
developerConnection = PROJECT_GIT_REPO_URL
173-
}
174-
licenses {
175-
license {
176-
name = PROJECT_LICENSE
177-
url = PROJECT_LICENSE_URL
178-
distribution = 'repo'
179-
}
169+
connection = PROJECT_GIT_REPO_URL
170+
developerConnection = PROJECT_GIT_REPO_URL
171+
}
172+
licenses {
173+
license {
174+
name = PROJECT_LICENSE
175+
url = PROJECT_LICENSE_URL
176+
distribution = 'repo'
180177
}
181-
developers {
182-
developer {
183-
id = PROJECT_DEV_ID
184-
name = PROJECT_DEV_NAME
185-
}
178+
}
179+
developers {
180+
developer {
181+
id = PROJECT_DEV_ID
182+
name = PROJECT_DEV_NAME
186183
}
187184
}
188185
}
189186
}
190-
repositories {
191-
maven {
192-
name 'ossrh'
193-
if (version.toString().endsWith("-SNAPSHOT")) {
194-
url "https://oss.sonatype.org/content/repositories/snapshots/"
195-
} else {
196-
url "https://oss.sonatype.org/service/local/staging/deploy/maven2"
197-
}
198-
credentials {
199-
username = System.env.OSS_USER_TOKEN_KEY ?: project.findProperty('OSS_USER_TOKEN_KEY') ?: ''
200-
password = System.env.OSS_USER_TOKEN_PASS ?: project.findProperty('OSS_USER_TOKEN_PASS') ?: ''
201-
}
187+
}
188+
repositories {
189+
maven {
190+
name 'ossrh'
191+
if (version.toString().endsWith("-SNAPSHOT")) {
192+
url "https://oss.sonatype.org/content/repositories/snapshots/"
193+
} else {
194+
url "https://oss.sonatype.org/service/local/staging/deploy/maven2"
195+
}
196+
credentials {
197+
username = System.env.OSS_USER_TOKEN_KEY ?: project.findProperty('OSS_USER_TOKEN_KEY') ?: ''
198+
password = System.env.OSS_USER_TOKEN_PASS ?: project.findProperty('OSS_USER_TOKEN_PASS') ?: ''
202199
}
203200
}
204201
}

example-graphql-subscription/LICENSE.md

Lines changed: 0 additions & 9 deletions
This file was deleted.

example-graphql-subscription/build.gradle

Lines changed: 0 additions & 16 deletions
This file was deleted.

example-graphql-subscription/src/main/java/graphql/kickstart/autoconfigure/web/servlet/SubscriptionSampleApplication.java

Lines changed: 0 additions & 12 deletions
This file was deleted.

example-graphql-subscription/src/main/java/graphql/kickstart/autoconfigure/web/servlet/publishers/StockTickerReactorPublisher.java

Lines changed: 0 additions & 125 deletions
This file was deleted.

0 commit comments

Comments
 (0)