-
Notifications
You must be signed in to change notification settings - Fork 0
/
upload-artifact.gradle
57 lines (52 loc) · 1.58 KB
/
upload-artifact.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
apply plugin: 'maven-publish'
apply plugin: 'signing'
publishing {
publications {
sonatype(MavenPublication) {
from components.java
pom.name = 'com.scality:' + project.name
pom.description = 'com.scality:' + project.name
pom.url = 'https://github.com/scality/osis'
pom {
licenses {
license {
name = 'The Apache Software License, Version 2.0'
url = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
}
}
developers {
developer {
id = 'scality.com'
name = 'scality.com'
email = 'scality@scality.com'
}
}
scm {
connection = 'scm:git:git://github.com/scality/osis.git'
developerConnection = 'scm:git:ssh://github.com:scality/osis.git'
url = 'https://github.com/scality/osis/tree/main'
}
}
}
}
repositories {
maven {
name = 'nexusSnapshots'
url = 'https://oss.sonatype.org/content/repositories/snapshots/'
credentials {
username sonatypeUsername
password sonatypePassword
}
}
mavenLocal()
}
}
// sign artifact (.asc files)
signing {
sign publishing.publications.sonatype
}
// publish source and javadoc
java {
withSourcesJar()
withJavadocJar()
}