diff --git a/build.gradle b/build.gradle index 8b21a0e..9a3836e 100644 --- a/build.gradle +++ b/build.gradle @@ -4,12 +4,12 @@ version '1.3.1' final MainClassName = "${group}.Main" // See http://plantuml.com/changes -final PlantUmlVersion = "1.2018.3" +final PlantUmlVersion = "1.2018.8" final ArchiveName = "plantuml-service.jar" buildscript { - ext.kotlin_version = '1.2.31' + ext.kotlin_version = '1.2.50' repositories { jcenter() } diff --git a/gradle/wrapper/gradle-wrapper.jar b/gradle/wrapper/gradle-wrapper.jar index f6b961f..758de96 100644 Binary files a/gradle/wrapper/gradle-wrapper.jar and b/gradle/wrapper/gradle-wrapper.jar differ diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index 9a4163a..debd024 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,5 +1,5 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-4.6-all.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-4.8.1-all.zip zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists diff --git a/src/main/kotlin/com/bitjourney/plantuml/Main.kt b/src/main/kotlin/com/bitjourney/plantuml/Main.kt index 7bdcb23..3d4e46a 100644 --- a/src/main/kotlin/com/bitjourney/plantuml/Main.kt +++ b/src/main/kotlin/com/bitjourney/plantuml/Main.kt @@ -5,9 +5,7 @@ import com.github.benmanes.caffeine.cache.LoadingCache import com.google.gson.JsonObject import net.sourceforge.plantuml.Option import net.sourceforge.plantuml.SourceStringReader -import net.sourceforge.plantuml.code.AsciiEncoder -import net.sourceforge.plantuml.code.CompressionZlib -import net.sourceforge.plantuml.code.TranscoderImpl +import net.sourceforge.plantuml.code.TranscoderSmart import net.sourceforge.plantuml.cucadiagram.dot.GraphvizUtils import org.slf4j.LoggerFactory import spark.Filter @@ -65,7 +63,7 @@ class Main { val logger = LoggerFactory.getLogger(Main::class.java) - val transcoder = TranscoderImpl(AsciiEncoder(), CompressionZlib()) + val transcoder = TranscoderSmart() val versionJson: ByteArray = JsonObject().let { json -> json.addProperty("PlantUML", javaClass.getPackage().specificationVersion)