-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
60 lines (49 loc) · 1.3 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
plugins {
id 'java'
id 'maven-publish'
}
group = 'com.sparrowwallet'
version = '1.0.6'
def secrets = new Properties()
file("publish.properties").withInputStream {
stream -> secrets.load(stream)
}
repositories {
mavenCentral()
}
java {
withSourcesJar()
}
dependencies {
implementation('com.fasterxml.jackson.core:jackson-databind:2.17.2')
implementation('org.eclipse.jetty:jetty-client:9.4.54.v20240208')
implementation('io.reactivex.rxjava2:rxjava:2.2.15')
implementation('org.apache.commons:commons-lang3:3.7')
implementation('org.slf4j:slf4j-api:2.0.12')
testImplementation platform('org.junit:junit-bom:5.10.0')
testImplementation('org.junit.jupiter:junit-jupiter')
}
test {
useJUnitPlatform()
}
publishing {
repositories {
maven {
name = "Forgejo-SparrowWallet"
url = uri("https://code.sparrowwallet.com/api/packages/sparrowwallet/maven")
credentials(HttpHeaderCredentials) {
name = "Authorization"
value = "token ${secrets.token}"
}
authentication {
header(HttpHeaderAuthentication)
}
}
}
publications {
maven(MavenPublication) {
artifactId = 'tern'
from components.java
}
}
}