forked from bugsnag/bugsnag-java
-
Notifications
You must be signed in to change notification settings - Fork 0
/
release.gradle
67 lines (57 loc) · 1.61 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
apply plugin: 'com.bmuschko.nexus'
apply plugin: 'net.researchgate.release'
apply plugin: 'maven-publish'
archivesBaseName = project.findProperty('artifactId')
release {
tagTemplate = 'v${version}'
versionPropertyFile = '../gradle.properties'
}
nexusStaging {
packageGroup = "com.bugsnag"
}
modifyPom {
project {
name = project.findProperty('projectName')
description = project.findProperty('projectDescription')
url 'https://github.com/bugsnag/bugsnag-java'
scm {
url 'https://github.com/bugsnag/bugsnag-java'
connection 'scm:git:git://github.com/bugsnag/bugsnag-java.git'
developerConnection 'scm:git:ssh://[email protected]/bugsnag/bugsnag-java.git'
}
licenses {
license {
name 'MIT'
url 'http://opensource.org/licenses/MIT'
distribution 'repo'
}
}
organization {
name 'Bugsnag'
url 'https://bugsnag.com'
}
developers {
developer {
id 'loopj'
name 'James Smith'
email '[email protected]'
}
}
}
}
task sourceJar(type: Jar) {
from sourceSets.main.allJava
}
publishing {
publications {
Publication(MavenPublication) {
from project(':' + project.name).components.java
groupId 'com.bugsnag'
artifactId project.findProperty('artifactId')
version rootProject.version
artifact sourceJar {
classifier "sources"
}
}
}
}