This commit is contained in:
parent
1cec134893
commit
eed95f586e
@ -1,36 +1,22 @@
|
|||||||
plugins {
|
plugins {
|
||||||
id("com.github.johnrengelman.shadow") version "7.1.2"
|
|
||||||
id("commons.library")
|
id("commons.library")
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
shadow(implementation("io.gitlab.jfronny:gson:2.11.0-SNAPSHOT")!!)
|
implementation("io.gitlab.jfronny:gson:2.11.0-SNAPSHOT")
|
||||||
implementation(project(":"))
|
implementation(project(":"))
|
||||||
|
|
||||||
testImplementation("org.junit.jupiter:junit-jupiter-api:5.9.0")
|
testImplementation("org.junit.jupiter:junit-jupiter-api:5.9.0")
|
||||||
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine: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 {
|
publishing {
|
||||||
publications {
|
publications {
|
||||||
create<MavenPublication>("maven") {
|
create<MavenPublication>("maven") {
|
||||||
groupId = "io.gitlab.jfronny"
|
groupId = "io.gitlab.jfronny"
|
||||||
artifactId = "commons-gson"
|
artifactId = "commons-gson"
|
||||||
|
|
||||||
project.shadow.component(this)
|
from(components["java"])
|
||||||
|
|
||||||
pom.withXml {
|
|
||||||
val l = asElement().getElementsByTagName("dependency");
|
|
||||||
for (i in 0 until l.length) {
|
|
||||||
l.item(i).parentNode.removeChild(l.item(i))
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
module io.gitlab.jfronny.commons.gson {
|
module io.gitlab.jfronny.commons.gson {
|
||||||
requires io.gitlab.jfronny.gson;
|
|
||||||
requires io.gitlab.jfronny.commons;
|
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;
|
||||||
exports io.gitlab.jfronny.commons.serialize.gson.api.v1;
|
exports io.gitlab.jfronny.commons.serialize.gson.api.v1;
|
||||||
}
|
}
|
@ -1,6 +1,6 @@
|
|||||||
module io.gitlab.jfronny.commons.muscript {
|
module io.gitlab.jfronny.commons.muscript {
|
||||||
requires io.gitlab.jfronny.commons;
|
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.commons.data.dynamic;
|
||||||
exports io.gitlab.jfronny.muscript;
|
exports io.gitlab.jfronny.muscript;
|
||||||
exports io.gitlab.jfronny.muscript.compiler;
|
exports io.gitlab.jfronny.muscript.compiler;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
module io.gitlab.jfronny.commons {
|
module io.gitlab.jfronny.commons {
|
||||||
requires org.jetbrains.annotations;
|
requires static org.jetbrains.annotations;
|
||||||
requires java.net.http;
|
requires java.net.http;
|
||||||
requires java.logging;
|
requires java.logging;
|
||||||
exports io.gitlab.jfronny.commons;
|
exports io.gitlab.jfronny.commons;
|
||||||
|
Loading…
Reference in New Issue
Block a user