60 lines
1.3 KiB
Groovy
60 lines
1.3 KiB
Groovy
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
|
|
}
|
|
}
|
|
} |