FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

build work · Talank/graphql-java_graphql-java@b2c88c8 · GitHub

Commit b2c88c8

Browse files
committed
build work
1 parent b1b364b commit b2c88c8

2 files changed

Lines changed: 40 additions & 30 deletions

File tree

‎.github/workflows/master.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ jobs:
2121
with:
2222
java-version: '8.0.282'
2323
- name: build test and publish
24-
run: ./gradlew assemble && ./gradlew check --info && ./gradlew bintrayUpload -x check --info
24+
run: ./gradlew assemble && ./gradlew check --info && ./gradlew publishToSonatype closeAndReleaseSonatypeStagingRepository -x check --info

‎build.gradle‎

Lines changed: 39 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
import java.text.SimpleDateFormat
22

33
plugins {
4-
id "com.jfrog.bintray" version "1.8.4"
4+
// id "com.jfrog.bintray" version "1.8.4"
55
id 'java'
66
id 'java-library'
77
id 'maven'
88
id 'maven-publish'
99
id 'antlr'
1010
id "com.github.johnrengelman.shadow" version "6.1.0"
1111
id "biz.aQute.bnd.builder" version "5.1.2"
12+
id "io.github.gradle-nexus.publish-plugin" version "1.0.0"
1213
}
1314

1415

@@ -114,7 +115,7 @@ shadowJar {
114115

115116

116117
task removeNotNeededGuava(type: Zip) {
117-
from({ zipTree({"build/libs/graphql-java-${project.version}.jar"})}) {
118+
from({ zipTree({ "build/libs/graphql-java-${project.version}.jar" }) }) {
118119
exclude('/com/**')
119120
}
120121
archiveFileName = "graphql-java-tmp.jar"
@@ -233,37 +234,46 @@ publishing {
233234
}
234235
}
235236

236-
237-
bintray {
238-
user = System.env.BINTRAY_USER ?: project["bintray.user"]
239-
key = System.env.BINTRAY_API_KEY ?: project["bintray.key"]
240-
publications = ['graphqlJava']
241-
publish = true
242-
pkg {
243-
repo = 'graphql-java'
244-
name = 'graphql-java'
245-
desc = 'GraphQL in Java'
246-
licenses = ['MIT']
247-
vcsUrl = 'https://github.com/graphql-java/graphql-java'
248-
249-
version {
250-
name = project.version
251-
desc = project.description
252-
released = new Date()
253-
vcsTag = 'v' + project.version
254-
gpg {
255-
sign = true
256-
}
257-
mavenCentralSync {
258-
sync = true
259-
user = System.env.MAVEN_CENTRAL_USER
260-
password = System.env.MAVEN_CENTRAL_PASSWORD
261-
close = '1'
262-
}
237+
nexusPublishing {
238+
repositories {
239+
sonatype {
240+
username = System.env.MAVEN_CENTRAL_USER
241+
password = System.env.MAVEN_CENTRAL_PASSWORD
263242
}
264243
}
265244
}
266245

246+
247+
//bintray {
248+
// user = System.env.BINTRAY_USER ?: project["bintray.user"]
249+
// key = System.env.BINTRAY_API_KEY ?: project["bintray.key"]
250+
// publications = ['graphqlJava']
251+
// publish = true
252+
// pkg {
253+
// repo = 'graphql-java'
254+
// name = 'graphql-java'
255+
// desc = 'GraphQL in Java'
256+
// licenses = ['MIT']
257+
// vcsUrl = 'https://github.com/graphql-java/graphql-java'
258+
//
259+
// version {
260+
// name = project.version
261+
// desc = project.description
262+
// released = new Date()
263+
// vcsTag = 'v' + project.version
264+
// gpg {
265+
// sign = true
266+
// }
267+
// mavenCentralSync {
268+
// sync = true
269+
// user = System.env.MAVEN_CENTRAL_USER
270+
// password = System.env.MAVEN_CENTRAL_PASSWORD
271+
// close = '1'
272+
// }
273+
// }
274+
// }
275+
//}
276+
267277
// all publish tasks depend on the build task
268278
tasks.withType(PublishToMavenRepository) {
269279
dependsOn build

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL