-
Notifications
You must be signed in to change notification settings - Fork 15
/
build.gradle
79 lines (69 loc) · 2.06 KB
/
build.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
68
69
70
71
72
73
74
75
76
77
78
79
plugins {
id 'java-library'
id 'maven-publish'
id "signing"
id "io.github.gradle-nexus.publish-plugin" version "1.3.0"
}
archivesBaseName = 'hummingbird'
group 'com.sparrowwallet'
version '1.7.4'
repositories {
mavenCentral()
}
dependencies {
implementation('co.nstant.in:cbor:0.9')
testCompile group: 'junit', name: 'junit', version: '4.12'
}
java {
withJavadocJar()
withSourcesJar()
}
jar {
manifest {
attributes 'Automatic-Module-Name' : 'com.sparrowwallet.hummingbird'
}
}
publishing {
publications {
mavenJava(MavenPublication) {
from(components.java)
pom {
name.set("hummingbird")
description.set("Java implementation of Uniform Resources (UR)")
url.set("https://github.com/sparrowwallet/hummingbird")
licenses {
license {
name.set("The Apache Software License, Version 2.0")
url.set("http://www.apache.org/licenses/LICENSE-2.0.txt")
}
}
developers {
developer {
id.set("craigraw")
name.set("Craig Raw")
email.set("[email protected]")
}
}
scm {
connection.set("scm:https://github.com/sparrowwallet/hummingbird.git")
developerConnection.set("scm:[email protected]:sparrowwallet/hummingbird.git")
url.set("https://github.com/sparrowwallet/hummingbird")
}
}
}
}
}
nexusPublishing {
packageGroup = "com.sparrowwallet.hummingbird"
repositories {
sonatype {
stagingProfileId = "a63b4b5e2bff9"
username = project.findProperty("ossrhToken")
password = project.findProperty("ossrhTokenPassword")
}
}
}
signing {
sign publishing.publications.mavenJava
}
/* ./gradlew publishToSonatype closeAndReleaseStagingRepository */