From 663dcb637f7e0dfc779a6a750994e911fa540442 Mon Sep 17 00:00:00 2001 From: "Erik C. Thauvin" Date: Sun, 26 Mar 2017 22:53:04 -0700 Subject: [PATCH] Kobalt 1.0.30 update. --- example/kobalt/src/Build.kt | 20 ++------ .../kobalt/wrapper/kobalt-wrapper.properties | 2 +- kobalt/src/Build.kt | 49 ++++--------------- kobalt/wrapper/kobalt-wrapper.properties | 2 +- 4 files changed, 15 insertions(+), 58 deletions(-) diff --git a/example/kobalt/src/Build.kt b/example/kobalt/src/Build.kt index 256c64a..975a73b 100644 --- a/example/kobalt/src/Build.kt +++ b/example/kobalt/src/Build.kt @@ -3,9 +3,9 @@ import com.beust.kobalt.plugin.application.* import com.beust.kobalt.plugin.packaging.* import net.thauvin.erik.kobalt.plugin.exec.* -// ./kobaltw exec -// ./kobaltw example:exec -// ./kobaltw example2:exec +// ./kobaltw exec --log 2 +// ./kobaltw example:exec --log 2 +// ./kobaltw example2:exec --log 2 val bs = buildScript { plugins("net.thauvin.erik:kobalt-exec:") @@ -18,20 +18,6 @@ val example = project { artifactId = name version = "0.1" - sourceDirectories { - path("src/main/java") - } - - sourceDirectoriesTest { - path("src/test/java") - } - - dependencies { - } - - dependenciesTest { - } - assemble { jar { } diff --git a/example/kobalt/wrapper/kobalt-wrapper.properties b/example/kobalt/wrapper/kobalt-wrapper.properties index f3cd7d1..ab67089 100644 --- a/example/kobalt/wrapper/kobalt-wrapper.properties +++ b/example/kobalt/wrapper/kobalt-wrapper.properties @@ -1 +1 @@ -kobalt.version=1.0.6 \ No newline at end of file +kobalt.version=1.0.30 \ No newline at end of file diff --git a/kobalt/src/Build.kt b/kobalt/src/Build.kt index 056cc30..73ec2ce 100644 --- a/kobalt/src/Build.kt +++ b/kobalt/src/Build.kt @@ -1,19 +1,12 @@ -import com.beust.kobalt.buildScript -import com.beust.kobalt.file -import com.beust.kobalt.misc.kobaltLog -import com.beust.kobalt.plugin.application.application -import com.beust.kobalt.plugin.packaging.assemble -import com.beust.kobalt.plugin.publish.autoGitTag -import com.beust.kobalt.plugin.publish.bintray -import com.beust.kobalt.project -import net.thauvin.erik.kobalt.plugin.exec.Os -import net.thauvin.erik.kobalt.plugin.exec.exec -import net.thauvin.erik.kobalt.plugin.versioneye.versionEye -import org.apache.maven.model.Developer -import org.apache.maven.model.License -import org.apache.maven.model.Model -import org.apache.maven.model.Scm -import java.io.File +import com.beust.kobalt.* +import com.beust.kobalt.misc.* +import com.beust.kobalt.plugin.application.* +import com.beust.kobalt.plugin.packaging.* +import com.beust.kobalt.plugin.publish.* +import net.thauvin.erik.kobalt.plugin.exec.* +import net.thauvin.erik.kobalt.plugin.versioneye.* +import org.apache.maven.model.* +import java.io.* val semver = "0.6.3" @@ -29,7 +22,7 @@ val bs = buildScript { plugins("net.thauvin.erik:kobalt-versioneye:", p) } -val dev = false +val dev by profile() val kobaltDependency = if (dev) "kobalt" else "kobalt-plugin-api" val p = project { @@ -58,14 +51,6 @@ val p = project { }) } - sourceDirectories { - path("src/main/kotlin") - } - - sourceDirectoriesTest { - path("src/test/kotlin") - } - dependencies { compile("com.beust:$kobaltDependency:") } @@ -104,20 +89,6 @@ val example = project(p) { version = "0.1" directory = ("example") - sourceDirectories { - path("src/main/java") - } - - sourceDirectoriesTest { - path("src/test/java") - } - - dependencies { - } - - dependenciesTest { - } - assemble { jar { } diff --git a/kobalt/wrapper/kobalt-wrapper.properties b/kobalt/wrapper/kobalt-wrapper.properties index 51854da..ab67089 100644 --- a/kobalt/wrapper/kobalt-wrapper.properties +++ b/kobalt/wrapper/kobalt-wrapper.properties @@ -1 +1 @@ -kobalt.version=1.0.19 \ No newline at end of file +kobalt.version=1.0.30 \ No newline at end of file