forked from reportportal/client-java-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrelease.gradle
47 lines (41 loc) · 1.32 KB
/
release.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
apply plugin: 'maven-publish'
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
javadoc() {
failOnError = false
}
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
groupId 'com.epam.reportportal'
artifactId "$project.name"
artifact sourcesJar
artifact javadocJar
}
}
}
bintray {
user = project.hasProperty('bintrayUser') ? project.property('bintrayUser') : System.getenv('BINTRAY_USER')
key = project.hasProperty('bintrayApiKey') ? project.property('bintrayApiKey') : System.getenv('BINTRAY_API_KEY')
publications = ['mavenJava']
pkg {
repo = 'reportportal'
name = "$project.name"
desc = "$project.description"
websiteUrl = 'https://reportportal.github.io/'
issueTrackerUrl = "https://github.com/reportportal/$project.name/issues"
vcsUrl = "https://github.com/reportportal/$project.name"
githubRepo = "reportportal/$project.name"
githubReleaseNotesFile = 'CHANGELOG.md'
userOrg = 'epam'
licenses = ['GPL-3.0']
}
}
afterReleaseBuild.dependsOn bintrayUpload