-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
82 lines (72 loc) · 2.19 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
80
81
82
plugins {
id 'java-library'
id 'signing'
id 'maven-publish'
id('io.github.gradle-nexus.publish-plugin') version '1.1.0'
}
group = 'io.github.sending-network'
version = '0.1.5'
repositories {
mavenCentral()
}
dependencies {
implementation 'org.json:json:20230227'
implementation 'org.web3j:crypto:4.8.7'
implementation 'com.squareup.okio:okio:3.2.0'
testImplementation platform('org.junit:junit-bom:5.9.1')
testImplementation 'org.junit.jupiter:junit-jupiter'
}
test {
useJUnitPlatform()
}
java {
withJavadocJar()
withSourcesJar()
}
nexusPublishing {
repositories {
sonatype {
nexusUrl.set(uri("https://s01.oss.sonatype.org/service/local/"))
snapshotRepositoryUrl.set(uri("https://s01.oss.sonatype.org/content/repositories/snapshots/"))
username = ossrhUsername
password = ossrhPassword
}
}
}
publishing {
publications {
mavenJava(MavenPublication) {
from(components.java)
pom {
name = 'sdn-sdk-java'
description = 'sdn-sdk-java'
url = 'https://github.com/Sending-Network/sendingnetwork-java-sdk'
licenses {
license {
name = 'The Apache License, Version 2.0'
url = 'https://www.apache.org/licenses/LICENSE-2.0.txt'
}
}
developers {
developer {
id = 'DelmoreCooper'
name = 'DelmoreCooper'
}
}
scm {
url = 'https://github.com/Sending-Network/sendingnetwork-java-sdk'
connection = 'scm:git://github.com/Sending-Network/sendingnetwork-java-sdk.git'
developerConnection = 'scm:git://github.com/Sending-Network/sendingnetwork-java-sdk.git'
}
}
}
}
}
signing {
useInMemoryPgpKeys(
getProperty('signing.keyId') as String,
getProperty('signing.key') as String,
getProperty('signing.password') as String
)
sign publishing.publications
}