43 lines
955 B
Groovy
43 lines
955 B
Groovy
plugins {
|
|
id 'java'
|
|
id 'maven-publish'
|
|
}
|
|
|
|
group = 'de.catmangames.jsonfetcher'
|
|
version = '1.2'
|
|
|
|
java {
|
|
sourceCompatibility = JavaVersion.VERSION_11
|
|
targetCompatibility = JavaVersion.VERSION_11
|
|
}
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
dependencies {
|
|
implementation 'com.google.code.gson:gson:2.10.1'
|
|
}
|
|
|
|
publishing {
|
|
publications {
|
|
maven(MavenPublication) {
|
|
from components.java
|
|
}
|
|
}
|
|
repositories {
|
|
maven {
|
|
name = 'gitea'
|
|
url = 'https://git.catlet.info/api/packages/StateMc/maven'
|
|
credentials(HttpHeaderCredentials) {
|
|
name = 'Authorization'
|
|
value = 'Basic ' + Base64.encoder.encodeToString(
|
|
"${findProperty('giteaUser')}:${findProperty('giteaToken')}".bytes
|
|
)
|
|
}
|
|
authentication {
|
|
header(HttpHeaderAuthentication)
|
|
}
|
|
}
|
|
}
|
|
} |