forked from reportportal/agent-java-cucumber
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrelease-lib.gradle
More file actions
61 lines (53 loc) · 1.75 KB
/
release-lib.gradle
File metadata and controls
61 lines (53 loc) · 1.75 KB
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
apply plugin: 'maven'
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
}
artifacts {
archives sourcesJar
archives javadocJar
}
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
groupId 'com.epam.reportportal'
artifactId "$project.name"
pom.withXml {
def root = asNode()
def license = root.appendNode('licenses').appendNode('license')
license.appendNode('name', 'GNU GPLv3 License')
license.appendNode('url', 'http://www.gnu.org/licenses/')
license.appendNode('distribution', 'repo')
}
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