2022-04-28 22:34:18 +02:00
|
|
|
plugins {
|
|
|
|
id 'com.github.johnrengelman.shadow' version '7.1.2'
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2022-06-04 12:09:14 +02:00
|
|
|
shadow implementation('io.gitlab.jfronny:gson:2.9.1-20220604.095859-6')
|
2022-04-28 22:34:18 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
shadowJar {
|
|
|
|
configurations = [ project.configurations.shadow ]
|
2022-04-28 23:05:18 +02:00
|
|
|
archiveClassifier = ''
|
2022-05-17 21:55:44 +02:00
|
|
|
relocate 'com.google.gson', 'io.gitlab.jfronny.gson'
|
2022-04-28 22:34:18 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
publishing {
|
|
|
|
publications {
|
|
|
|
mavenJava(MavenPublication) {
|
|
|
|
groupId = 'io.gitlab.jfronny'
|
|
|
|
artifactId = 'commons-gson'
|
|
|
|
|
|
|
|
project.shadow.component(it)
|
2022-04-28 22:57:06 +02:00
|
|
|
|
|
|
|
pom.withXml {
|
|
|
|
asNode().dependencies.dependency.each { dep ->
|
|
|
|
if(dep.artifactId.last().value() in ["gson"]) {
|
|
|
|
assert dep.parent().remove(dep)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2022-04-28 22:34:18 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|