From da4fc0fa2c371b111b7c4931c1827c7091a20d4d Mon Sep 17 00:00:00 2001 From: Tobias Scholze Date: Mon, 19 Jun 2023 19:30:00 +0200 Subject: [PATCH] Set version to 1.0.9 --- README.md | 5 ++--- build.gradle.kts | 22 +++++++++++----------- 2 files changed, 13 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index dc6b868..3c5ea82 100644 --- a/README.md +++ b/README.md @@ -27,13 +27,12 @@ Besides this, I wanted to streamline my content creation workflows by letting th Clone the [kotlog-template repository](https://github.com/tscholze/kotlin-kotlog-template) first, then you are ready to run the CLI. ``` -./kotlog [options] +java -jar kotlog.jar [options] -c 'My awesome title' : Creates a new blog post -y 'beYqB6QXQuY' : Creates a YouTube post -g : Generates HTML output -p : Publish aka pushes changes to remote -co : Clears the output - -cc : To create a new configuration file ``` If the binary is not working, use `java -jar kotlog.jar [options]` as a fallback. @@ -59,7 +58,7 @@ fun main(args: Array) { ``` ### Using configuration file -Otherwise, Kotlog will try to load the configuration file (`~/.kotlog`) from the file system. Run `./kotlog -cc` to create a new file. +Otherwise, Kotlog will try to load the configuration file (`~/.kotlog`) from the file system. Run `./kotlog` to create a new skeleton configuration file. ```json { diff --git a/build.gradle.kts b/build.gradle.kts index 0b444f2..56c4947 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -3,7 +3,7 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile // MARK: - Properties - group = "io.github.tscholze" -version = "1.0.8" +version = "1.0.9" // MARK: - Plugins - @@ -45,20 +45,20 @@ dependencies { // MARK: - Application settings - -application { - mainClass.set("MainKt") -} +//application { +// mainClass.set("MainKt") +//} // MARK: - Gradle tasks - tasks.jar { - manifest { - attributes["Main-Class"] = "MainKt" - } - configurations["compileClasspath"].forEach { file: File -> - from(zipTree(file.absoluteFile)) - } - duplicatesStrategy = DuplicatesStrategy.INCLUDE + manifest.attributes["Main-Class"] = "MainKt" + val dependencies = configurations + .runtimeClasspath + .get() + .map(::zipTree) + from(dependencies) + duplicatesStrategy = DuplicatesStrategy.EXCLUDE } tasks.test {