Skip to content

Commit fa4a7e7

Browse files
committed
Added Bintray publishing
1 parent e0d7e1a commit fa4a7e7

File tree

1 file changed

+95
-0
lines changed

1 file changed

+95
-0
lines changed

gradle/publishing.gradle

Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,95 @@
1+
apply plugin: 'maven-publish'
2+
apply plugin: 'com.jfrog.bintray'
3+
4+
publishing {
5+
repositories {
6+
maven {
7+
url 'https://dl.bintray.com/engagingspaces/maven'
8+
}
9+
}
10+
}
11+
12+
task sourcesJar(type: Jar, dependsOn: classes) {
13+
classifier = 'sources'
14+
from sourceSets.main.allSource
15+
}
16+
17+
task javadocJar(type: Jar, dependsOn: javadoc) {
18+
classifier = 'javadoc'
19+
from javadoc.destinationDir
20+
}
21+
22+
artifacts {
23+
archives sourcesJar
24+
archives javadocJar
25+
}
26+
27+
publishing {
28+
publications {
29+
maven(MavenPublication) {
30+
artifactId "$project.name"
31+
from components.java
32+
33+
artifact sourcesJar {
34+
classifier 'sources'
35+
}
36+
artifact javadocJar {
37+
classifier 'javadoc'
38+
}
39+
pom.withXml {
40+
asNode().children().last() + {
41+
def builder = delegate
42+
builder.name projectTitle
43+
builder.description projectDescription
44+
builder.url 'https://github.com/engagingspaces/vertx-dataloader'
45+
builder.licenses {
46+
builder.license {
47+
builder.name 'The Apache Software License, Version 2.0'
48+
builder.url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
49+
builder.distribution 'repo'
50+
}
51+
}
52+
builder.scm {
53+
builder.url 'scm:git@github.com/engagingspaces/vertx-dataloader.git'
54+
builder.connection 'git@github.com/engagingspaces/vertx-dataloader.git'
55+
builder.developerConnection 'git@github.com/engagingspaces/vertx-dataloader.git'
56+
}
57+
builder.developers {
58+
builder.developer {
59+
builder.id 'aschrijver'
60+
builder.name 'Arnold Schrijver'
61+
builder.url 'https://github.com/aschrijver/'
62+
builder.organization 'engagingspaces'
63+
builder.organizationUrl 'https://github.com/engagingspaces/'
64+
}
65+
}
66+
}
67+
}
68+
}
69+
}
70+
}
71+
72+
bintray {
73+
user = System.getenv('BINTRAY_USER')
74+
key = System.getenv('BINTRAY_KEY')
75+
publications = ['maven']
76+
publish = true
77+
pkg {
78+
repo = 'maven'
79+
name = "$project.name"
80+
desc = projectDescription
81+
userOrg = 'engagingspaces'
82+
websiteUrl = 'https://github.com/engagingspaces/vertx-dataloader'
83+
issueTrackerUrl = 'https://github.com/engagingspaces/vertx-dataloader/issues'
84+
licenses = ['Apache-2.0']
85+
vcsUrl = 'https://github.com/engagingspaces/vertx-dataloader.git'
86+
labels = ['vertx', 'batch', 'batch-loading', 'completablefuture', 'future', 'asynchronous',
87+
'data-loader', 'facebook', 'graphql']
88+
githubRepo = 'engagingspaces/vertx-dataloader'
89+
githubReleaseNotesFile = 'README.md'
90+
version {
91+
released = new Date()
92+
vcsTag = project.version
93+
}
94+
}
95+
}

0 commit comments

Comments
 (0)