-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathpublish.gradle
54 lines (50 loc) · 1.8 KB
/
publish.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
apply plugin: 'signing'
apply plugin: 'maven-publish'
publishing {
repositories {
if ("${project.version}".endsWith('-SNAPSHOT')) {
sonatypeSnapshots {
url = "https://s01.oss.sonatype.org/content/repositories/snapshots/"
credentials {
username = project.findProperty('sonatype_username')
password = project.findProperty('sonatype_password')
}
}
} else {
sonatypeMavenCentral {
url = "https://s01.oss.sonatype.org/service/local/"
credentials {
username = project.findProperty('sonatype_username')
password = project.findProperty('sonatype_password')
}
}
}
}
publications {
all {
pom {
url = 'https://github.com/xenit-eu/alfred-telemetry'
name = "alfred-telemetry"
description = project.description
scm {
connection = 'scm:git:[email protected]:xenit-eu/alfred-telemetry.git'
developerConnection = 'scm:git:[email protected]:xenit-eu/alfred-telemetry.git'
url = 'https://github.com/xenit-eu/alfred-telemetry.git'
}
developers {
developer {
id = "xenit"
name = "Xenit"
description = "Xenit Solutions NV"
}
}
licenses {
license {
name = 'GNU Lesser General Public License v3.0'
url = 'https://www.gnu.org/licenses/lgpl-3.0.txt'
}
}
}
}
}
}