Skip to content

Commit 774f60b

Browse files
committed
Update maven publication to bintray to also include all pom details.
1 parent b4d401f commit 774f60b

File tree

1 file changed

+40
-3
lines changed

1 file changed

+40
-3
lines changed

build.gradle

Lines changed: 40 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,28 +69,65 @@ task javadocJar(type: Jar, dependsOn: javadoc) {
6969

7070
publishing {
7171
publications {
72-
MyPublication(MavenPublication) {
72+
maven(MavenPublication) {
7373
from components.java
7474
groupId 'com.graphql-java'
7575
artifactId project.name
7676
version project.version
7777

7878
artifact sourcesJar
7979
artifact javadocJar
80+
81+
pom.withXml {
82+
asNode().children().last() + {
83+
resolveStrategy = Closure.DELEGATE_FIRST
84+
name 'graphql-java-servlet'
85+
description 'relay.js-compatible GraphQL servlet'
86+
url 'https://github.com/graphql-java/graphql-java-servlet'
87+
inceptionYear '2016'
88+
89+
scm {
90+
url 'https://github.com/graphql-java/graphql-java-servlet'
91+
connection 'scm:https://yrashk@github.com/graphql-java/graphql-java-servlet.git'
92+
developerConnection 'scm:git://github.com/graphql-java/graphql-java-servlet.git'
93+
}
94+
95+
licenses {
96+
license {
97+
name 'The Apache Software License, Version 2.0'
98+
url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
99+
distribution 'repo'
100+
}
101+
}
102+
103+
developers {
104+
developer {
105+
id 'yrashk'
106+
name 'Yurii Rashkovskii'
107+
email 'yrashk@gmail.com'
108+
}
109+
developer {
110+
id 'apottere'
111+
name 'Andrew Potter'
112+
email 'apottere@gmail.com'
113+
}
114+
}
115+
}
116+
}
80117
}
81118
}
82119
}
83120

84121
bintray {
85122
user = System.getenv('BINTRAY_USER')
86123
key = System.getenv('BINTRAY_KEY')
87-
publications = ['MyPublication']
124+
publications = ['maven']
88125
publish = true
89126
pkg {
90127
repo = 'maven'
91128
name = project.name
92129
licenses = ['Apache-2.0']
93-
vcsUrl = 'https://github.com/yrashk/graphql-java-servlet'
130+
vcsUrl = 'https://github.com/graphql-java/graphql-java-servlet'
94131
version {
95132
name = project.version
96133
}

0 commit comments

Comments
 (0)