From ad222ccc1bcf70ec61416613156d97a7b2472c12 Mon Sep 17 00:00:00 2001 From: soloturn Date: Fri, 11 Feb 2022 11:13:46 +0100 Subject: [PATCH] build.gradle.kts, project uses tab, not space indent --- build.gradle.kts | 120 +++++++++++++++++++++++------------------------ 1 file changed, 60 insertions(+), 60 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 37d2f291b..66c0b840c 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -7,54 +7,54 @@ val javacRelease = (project.findProperty("javacRelease") ?: "8") as String plugins { - java - `maven-publish` - signing + java + `maven-publish` + signing } repositories { - mavenLocal() - mavenCentral() + mavenLocal() + mavenCentral() } dependencies { - compileOnly("org.apache.ant:ant:1.10.12") - testImplementation("org.assertj:assertj-core:3.22.0") - testImplementation("org.junit.jupiter:junit-jupiter:5.8.2") - testImplementation("org.scilab.forge:jlatexmath:1.0.7") + compileOnly("org.apache.ant:ant:1.10.12") + testImplementation("org.assertj:assertj-core:3.22.0") + testImplementation("org.junit.jupiter:junit-jupiter:5.8.2") + testImplementation("org.scilab.forge:jlatexmath:1.0.7") } group = "net.sourceforge.plantuml" description = "PlantUML" java { - withSourcesJar() - withJavadocJar() + withSourcesJar() + withJavadocJar() } sourceSets { - main { - java { - srcDirs("src") - } - resources { - srcDirs("src") - include("**/graphviz.dat") - include("**/*.png") - include("**/*.svg") - include("**/*.txt") - } - } - test { - java { - srcDirs("test") - } - resources { - srcDirs(".") - include("skin/**/*.skin") - include("themes/**/*.puml") - } - } + main { + java { + srcDirs("src") + } + resources { + srcDirs("src") + include("**/graphviz.dat") + include("**/*.png") + include("**/*.svg") + include("**/*.txt") + } + } + test { + java { + srcDirs("test") + } + resources { + srcDirs(".") + include("skin/**/*.skin") + include("themes/**/*.puml") + } + } } tasks.compileJava { @@ -66,50 +66,50 @@ tasks.compileJava { } tasks.withType { - manifest { - attributes["Main-Class"] = "net.sourceforge.plantuml.Run" - attributes["Implementation-Version"] = archiveVersion - attributes["Build-Jdk-Spec"] = System.getProperty("java.specification.version") - from("manifest.txt") - } + manifest { + attributes["Main-Class"] = "net.sourceforge.plantuml.Run" + attributes["Implementation-Version"] = archiveVersion + 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) } - }) + 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") } + from("skin") { into("skin") } + from("stdlib") { into("stdlib") } + from("svg") { into("svg") } + from("themes") { into("themes") } } publishing { - publications.create("maven") { - from(components["java"]) - } + publications.create("maven") { + from(components["java"]) + } } tasks.withType { - options.encoding = "UTF-8" + options.encoding = "UTF-8" } tasks.withType { - options { - this as StandardJavadocDocletOptions - addBooleanOption("Xdoclint:none", true) - addStringOption("Xmaxwarns", "1") - } + options { + this as StandardJavadocDocletOptions + addBooleanOption("Xdoclint:none", true) + addStringOption("Xmaxwarns", "1") + } } tasks.test { - useJUnitPlatform() - testLogging.showStandardStreams = true + useJUnitPlatform() + testLogging.showStandardStreams = true } signing { - useGpgCmd() - sign(publishing.publications["maven"]) + useGpgCmd() + sign(publishing.publications["maven"]) }