diff --git a/kobalt/Build.kt.iml b/kobalt/Build.kt.iml deleted file mode 100644 index 83dc276..0000000 --- a/kobalt/Build.kt.iml +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/kobalt/src/Build.kt b/kobalt/src/Build.kt deleted file mode 100644 index 6936aca..0000000 --- a/kobalt/src/Build.kt +++ /dev/null @@ -1,141 +0,0 @@ -import com.beust.kobalt.buildScript -import com.beust.kobalt.localMaven -import com.beust.kobalt.plugin.java.javadoc -import com.beust.kobalt.plugin.java.javaCompiler -import com.beust.kobalt.plugin.packaging.assemble -import com.beust.kobalt.plugin.packaging.install -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.pom2xml.pom2xml -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.FileInputStream -import java.util.* - -val bs = buildScript { - repos(localMaven()) - plugins("net.thauvin.erik:kobalt-exec:", - "net.thauvin.erik:kobalt-pom2xml:") -} - -fun StringBuilder.prepend(s: String): StringBuilder { - if (this.isNotEmpty()) { - this.insert(0, s) - } - return this -} - -fun versionFor(directory: String = "./"): String { - val propsFile = directory + '/' + "version.properties" - val majorKey = "version.major" - val minorKey = "version.minor" - val patchKey = "version.patch" - val metaKey = "version.buildmeta" - val preKey = "version.prerelease" - - val p = Properties().apply { FileInputStream(propsFile).use { fis -> load(fis) } } - - return (p.getProperty(majorKey, "1") + "." + p.getProperty(minorKey, "0") + "." + p.getProperty(patchKey, "0") - + StringBuilder(p.getProperty(preKey, "")).prepend("-") - + StringBuilder(p.getProperty(metaKey, "")).prepend("+")) -} - -val semver = project { - - name = "semver" - description = "Semantic Version Annotation Processor" - group = "net.thauvin.erik" - artifactId = name - version = versionFor() - - pom = Model().apply { - description = project.description - url = "https://github.com/ethauvin/semver" - licenses = listOf(License().apply { - name = "BSD 3-Clause" - url = "https://opensource.org/licenses/BSD-3-Clause" - }) - scm = Scm().apply { - url = "https://github.com/ethauvin/semver" - connection = "https://github.com/ethauvin/semver.git" - developerConnection = "git@github.com:ethauvin/semver.git" - } - developers = listOf(Developer().apply { - id = "ethauvin" - name = "Erik C. Thauvin" - email = "erik@thauvin.net" - }) - } - - dependencies { - compile("com.github.spullara.mustache.java:compiler:0.9.6") - compileOnly("org.jetbrains.kotlin:kotlin-stdlib:1.3.21") - compileOnly("com.github.spotbugs:spotbugs-annotations:3.1.12") - } - - dependenciesTest { - compile("org.testng:testng:6.14.3") - } - - javaCompiler { - args("-source", "1.8", "-target", "1.8") - } - - assemble { - jar { - //fatJar = true - } - mavenJars { - //fatJar = true - } - } - - install { - target = "deploy" - } - - autoGitTag { - enabled = true - push = false - message = "Version $version" - } - - bintray { - name = "SemVer" - publish = true - description = "Release version $version" - issueTrackerUrl = "https://github.com/ethauvin/semver/issues" - vcsTag = version - sign = true - } - - javadoc { - title = "${project.description} ${project.version}" - tags("created") - author = true - //quiet = false - //verbose = true - links("http://docs.oracle.com/javase/8/docs/api/") - } - - exec { - taskName = "pandoc" - val args = arrayOf("--from", "markdown_github", - "--to", "html5", - "-s", - "-c", "github-pandoc.css", - "-o", "docs/README.html", - "README.md") - commandLine("pandoc", *args, os = setOf(Os.LINUX, Os.MINGW, Os.CYGWIN)) - commandLine("cmd", "/c", "pandoc", *args, os = setOf(Os.WINDOWS)) - } - - pom2xml { - - } -} diff --git a/kobalt/wrapper/kobalt-wrapper.jar b/kobalt/wrapper/kobalt-wrapper.jar deleted file mode 100644 index 8757609..0000000 Binary files a/kobalt/wrapper/kobalt-wrapper.jar and /dev/null differ diff --git a/kobalt/wrapper/kobalt-wrapper.properties b/kobalt/wrapper/kobalt-wrapper.properties deleted file mode 100644 index 0ca8045..0000000 --- a/kobalt/wrapper/kobalt-wrapper.properties +++ /dev/null @@ -1 +0,0 @@ -kobalt.version=1.0.122 \ No newline at end of file diff --git a/kobalt/wrapper/kobalt/wrapper/kobalt-wrapper.jar b/kobalt/wrapper/kobalt/wrapper/kobalt-wrapper.jar deleted file mode 100644 index 22d3ef5..0000000 Binary files a/kobalt/wrapper/kobalt/wrapper/kobalt-wrapper.jar and /dev/null differ diff --git a/kobalt/wrapper/kobalt/wrapper/kobalt-wrapper.properties b/kobalt/wrapper/kobalt/wrapper/kobalt-wrapper.properties deleted file mode 100644 index a96b6c5..0000000 --- a/kobalt/wrapper/kobalt/wrapper/kobalt-wrapper.properties +++ /dev/null @@ -1 +0,0 @@ -kobalt.version=1.0.118 diff --git a/kobalt/wrapper/kobaltw b/kobalt/wrapper/kobaltw deleted file mode 100644 index c5186d5..0000000 --- a/kobalt/wrapper/kobaltw +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env sh -java -jar "`dirname "$0"`/kobalt/wrapper/kobalt-wrapper.jar" $* diff --git a/kobalt/wrapper/kobaltw.bat b/kobalt/wrapper/kobaltw.bat deleted file mode 100644 index d578071..0000000 --- a/kobalt/wrapper/kobaltw.bat +++ /dev/null @@ -1,4 +0,0 @@ -@echo off -set DIRNAME=%~dp0 -if "%DIRNAME%" == "" set DIRNAME=. -java -jar "%DIRNAME%/kobalt/wrapper/kobalt-wrapper.jar" %* diff --git a/kobaltw b/kobaltw deleted file mode 100755 index c5186d5..0000000 --- a/kobaltw +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env sh -java -jar "`dirname "$0"`/kobalt/wrapper/kobalt-wrapper.jar" $* diff --git a/kobaltw-test b/kobaltw-test deleted file mode 100644 index 06230ec..0000000 --- a/kobaltw-test +++ /dev/null @@ -1,4 +0,0 @@ -#!/usr/bin/env sh -JAR=$(ls -1 -t /k/GitHub/kobalt/kobaltBuild/libs/*.jar | egrep -v "(sources|javadoc)" | head -1) -export KOBALT_JAR=$JAR -java -jar $JAR $* diff --git a/kobaltw.bat b/kobaltw.bat deleted file mode 100644 index d578071..0000000 --- a/kobaltw.bat +++ /dev/null @@ -1,4 +0,0 @@ -@echo off -set DIRNAME=%~dp0 -if "%DIRNAME%" == "" set DIRNAME=. -java -jar "%DIRNAME%/kobalt/wrapper/kobalt-wrapper.jar" %* diff --git a/pom.xml b/pom.xml deleted file mode 100644 index da36d4b..0000000 --- a/pom.xml +++ /dev/null @@ -1,42 +0,0 @@ - - - 4.0.0 - net.thauvin.erik - semver - 1.2.0 - semver - Semantic Version Annotation Processor - https://github.com/ethauvin/semver - - - BSD 3-Clause - https://opensource.org/licenses/BSD-3-Clause - - - - - ethauvin - Erik C. Thauvin - erik@thauvin.net - - - - https://github.com/ethauvin/semver.git - git@github.com:ethauvin/semver.git - https://github.com/ethauvin/semver - - - - com.github.spullara.mustache.java - compiler - 0.9.6 - - - org.testng - testng - 6.14.3 - test - - -