-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathbuild.gradle
113 lines (99 loc) · 2.85 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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
ext {
VERSION = project.findProperty('version')
VCS_URL = 'https://github.com/sava-software/sava'
}
final JLV = JavaLanguageVersion.of(project.findProperty('javaVersion') as Integer ?: 23)
final GPR_USER = project.findProperty("gpr.user") ?: System.getenv("GITHUB_ACTOR")
final GPR_TOKEN = project.findProperty("gpr.token") ?: System.getenv("GITHUB_TOKEN")
subprojects {
apply plugin: 'java-library'
apply plugin: 'maven-publish'
// apply plugin: 'signing'
project.group = 'software.sava'
project.version = "$VERSION"
plugins.withType(JavaPlugin).configureEach {
java {
modularity.inferModulePath = true
toolchain {
languageVersion = JLV
}
}
}
repositories {
maven {
url = "https://maven.pkg.github.com/comodal/json-iterator"
credentials {
username = GPR_USER
password = GPR_TOKEN
}
}
mavenCentral()
}
dependencies {
testImplementation libs.junit.jupiter
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
}
test {
useJUnitPlatform()
testLogging {
events "passed", "skipped", "failed", "standardOut", "standardError"
exceptionFormat = "full"
showStandardStreams = true
}
}
java {
withJavadocJar()
withSourcesJar()
}
tasks.withType(Javadoc).configureEach {
options.addStringOption('Xdoclint:none', '-quiet')
}
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
groupId = project.group
artifactId = project.parent.name + '-' + project.name
version = project.version
pom {
name = project.parent.name + '-' + project.name
description = "Solana Java Core & RPC SDK"
url = "$VCS_URL"
licenses {
license {
name = 'MIT License'
url = 'https://github.com/sava-software/sava/blob/main/LICENSE'
}
}
developers {
developer {
name = 'Jim'
id = 'jpe7s'
email = '[email protected]'
organization = 'Sava Software'
organizationUrl = 'https://github.com/sava-software'
}
}
scm {
connection = 'scm:git:[email protected]:sava-software/sava.git'
developerConnection = 'scm:git:[email protected]:sava-software/sava.git'
url = "$VCS_URL"
}
}
}
}
repositories {
maven {
name = "GithubPackages"
url = "https://maven.pkg.github.com/sava-software/sava"
credentials {
username = System.getenv("GITHUB_ACTOR") ?: project.findProperty("gpr.user.write")
password = System.getenv("GITHUB_TOKEN") ?: project.findProperty("gpr.token.write")
}
}
}
}
// signing {
// sign publishing.publications.mavenJava
// }
}