Don't shadow gson
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
Johannes Frohnmeyer 2022-12-29 16:49:38 +01:00
parent 1cec134893
commit eed95f586e
Signed by: Johannes
GPG Key ID: E76429612C2929F4
4 changed files with 6 additions and 20 deletions

View File

@ -1,36 +1,22 @@
plugins {
id("com.github.johnrengelman.shadow") version "7.1.2"
id("commons.library")
}
dependencies {
shadow(implementation("io.gitlab.jfronny:gson:2.11.0-SNAPSHOT")!!)
implementation("io.gitlab.jfronny:gson:2.11.0-SNAPSHOT")
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("")
}
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))
}
}
from(components["java"])
}
}
}

View File

@ -1,7 +1,7 @@
module io.gitlab.jfronny.commons.gson {
requires io.gitlab.jfronny.gson;
requires io.gitlab.jfronny.commons;
requires org.jetbrains.annotations;
requires io.gitlab.jfronny.gson;
requires static org.jetbrains.annotations;
exports io.gitlab.jfronny.commons.serialize.gson.api;
exports io.gitlab.jfronny.commons.serialize.gson.api.v1;
}

View File

@ -1,6 +1,6 @@
module io.gitlab.jfronny.commons.muscript {
requires io.gitlab.jfronny.commons;
requires org.jetbrains.annotations;
requires static org.jetbrains.annotations;
exports io.gitlab.jfronny.commons.data.dynamic;
exports io.gitlab.jfronny.muscript;
exports io.gitlab.jfronny.muscript.compiler;

View File

@ -1,5 +1,5 @@
module io.gitlab.jfronny.commons {
requires org.jetbrains.annotations;
requires static org.jetbrains.annotations;
requires java.net.http;
requires java.logging;
exports io.gitlab.jfronny.commons;