-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patharchive.gradle
59 lines (57 loc) · 2.08 KB
/
archive.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
apply plugin: 'maven-publish'
apply plugin: 'signing'
publishing {
publications {
mavenJava(MavenPublication) {
artifactId = 'scalar-admin'
from components.java
pom {
name = 'Scalar Admin'
description = 'An admin interface and tool for Scalar services.'
url = 'https://github.com/scalar-labs/scalar-admin'
licenses {
license {
name = 'Apache License, Version 2.0'
url = 'http://www.apache.org/licenses/LICENSE-2.0'
}
}
developers {
developer {
id = 'hiroyuki'
name = 'Hiroyuki Yamada'
email = '[email protected]'
}
developer {
id = 'brfrn169'
name = 'Toshihiro Suzuki'
email = '[email protected]'
}
developer {
id = 'supl'
name = 'Plenty Su'
email = '[email protected]'
}
}
scm {
connection = 'scm:git:https://github.com/scalar-labs/scalar-admin.git'
developerConnection = 'scm:git:https://github.com/scalar-labs/scalar-admin.git'
url = 'https://github.com/scalar-labs/scalar-admin'
}
}
}
}
repositories {
maven {
def releasesRepoUrl = "https://oss.sonatype.org/service/local/staging/deploy/maven2"
def snapshotsRepoUrl = "https://oss.sonatype.org/content/repositories/snapshots"
url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl
credentials {
username = "${ossrhUsername}"
password = "${ossrhPassword}"
}
}
}
}
signing {
sign publishing.publications.mavenJava
}