This commit is contained in:
parent
1cec134893
commit
eed95f586e
@ -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"])
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user