java-commons/commons-gson/build.gradle

33 lines
798 B
Groovy
Raw Normal View History

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 ]
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)
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
}
}
}