-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
90 lines (77 loc) · 1.78 KB
/
Copy pathbuild.gradle
File metadata and controls
90 lines (77 loc) · 1.78 KB
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
83
84
85
86
87
88
89
90
import xyz.voltawallet.Dependencies
plugins {
id("io.github.gradle-nexus.publish-plugin")
}
group = "xyz.voltawallet.sdk-java"
version = "1.0.0"
repositories {
mavenCentral()
}
nexusPublishing {
repositories {
sonatype {
username = System.getenv("SONATYPE_USERNAME")
password = System.getenv("SONATYPE_PASSWORD")
nexusUrl.set(uri("https://s01.oss.sonatype.org/service/local/"))
snapshotRepositoryUrl.set(uri("https://s01.oss.sonatype.org/content/repositories/snapshots/"))
}
}
}
subprojects { p ->
apply(plugin: "java")
apply(plugin: "maven-publish")
apply(plugin: "signing")
group = "xyz.voltawallet"
version = "1.0.0"
repositories {
mavenCentral()
}
java {
withJavadocJar()
withSourcesJar()
}
dependencies {
testImplementation(Dependencies.Testing.JUPITER)
}
tasks {
test {
useJUnitPlatform()
}
}
publishing {
publications {
mavenJava(MavenPublication) {
from(components["java"])
afterEvaluate {
artifactId = p.name.replace("module-", "")
group = group
version = version
}
pom {
name = p.name
url = "https://voltawallet.xyz/"
description = "Volta Java SDK"
licenses {
license {
name = "Apache License, Version 2.0"
}
}
developers {
developer {
id = "volta"
name = "Volta Developers"
email = "chan@volta.xyz"
}
}
scm {
connection = "scm:git@github.com:NuKeyHQ/sdk-java.git"
url = "https://github.com/NuKeyHQ/sdk-java.git"
}
}
}
}
}
signing {
sign publishing.publications["mavenJava"]
}
}