2022-11-01 18:55:17 +01:00
|
|
|
plugins {
|
|
|
|
id("com.github.johnrengelman.shadow") version "7.1.2"
|
|
|
|
id("commons.library")
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2022-11-03 15:23:59 +01:00
|
|
|
shadow(implementation("io.gitlab.jfronny:gson:2.11-SNAPSHOT")!!)
|
2022-11-01 18:55:17 +01:00
|
|
|
implementation(project(":"))
|
|
|
|
|
|
|
|
testImplementation("org.junit.jupiter:junit-jupiter-api:5.9.0")
|
|
|
|
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.9.0")
|
|
|
|
}
|
|
|
|
|
|
|
|
tasks.shadowJar {
|
|
|
|
configurations.clear()
|
|
|
|
configurations.add(project.configurations.shadow.get())
|
|
|
|
archiveClassifier.set("")
|
|
|
|
relocate("com.google.gson", "io.gitlab.jfronny.gson")
|
|
|
|
}
|
|
|
|
|
|
|
|
publishing {
|
|
|
|
publications {
|
|
|
|
create<MavenPublication>("maven") {
|
|
|
|
groupId = "io.gitlab.jfronny"
|
|
|
|
artifactId = "commons-gson"
|
|
|
|
|
|
|
|
project.shadow.component(this)
|
|
|
|
|
|
|
|
pom.withXml {
|
|
|
|
val l = asElement().getElementsByTagName("dependency");
|
|
|
|
for (i in 0 until l.length) {
|
|
|
|
l.item(i).parentNode.removeChild(l.item(i))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|