1
0
mirror of https://github.com/octoleo/plantuml.git synced 2024-12-22 10:59:01 +00:00

gradle, reorder to permit fat jar and features

This commit is contained in:
soloturn 2022-02-12 18:49:30 +01:00
parent b18175b25c
commit 6fe6a4c988

View File

@ -12,9 +12,12 @@ plugins {
signing
}
repositories {
mavenLocal()
mavenCentral()
group = "net.sourceforge.plantuml"
description = "PlantUML"
java {
withSourcesJar()
withJavadocJar()
}
dependencies {
@ -24,12 +27,9 @@ dependencies {
testImplementation("org.scilab.forge:jlatexmath:1.0.7")
}
group = "net.sourceforge.plantuml"
description = "PlantUML"
java {
withSourcesJar()
withJavadocJar()
repositories {
mavenLocal()
mavenCentral()
}
sourceSets {
@ -72,18 +72,12 @@ tasks.withType<Jar>().configureEach {
attributes["Build-Jdk-Spec"] = System.getProperty("java.specification.version")
from("manifest.txt")
}
dependsOn(configurations.runtimeClasspath)
from({
configurations.runtimeClasspath.get().filter { it.name.endsWith("jar") }.map { zipTree(it) }
})
// source sets for java and resources are on "src", only put once into the jar
duplicatesStrategy = org.gradle.api.file.DuplicatesStrategy.EXCLUDE
from("skin") { into("skin") }
from("stdlib") { into("stdlib") }
from("svg") { into("svg") }
from("themes") { into("themes") }
// source sets for java and resources are on "src", only put once into the jar
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
}
publishing {