Updated build scripts for testing.

This commit is contained in:
Erik C. Thauvin 2017-04-22 09:09:12 -07:00
parent d3f7130cc7
commit 03d1488600
5 changed files with 10 additions and 26 deletions

View file

@ -1,5 +1,5 @@
plugins { plugins {
id "com.jfrog.bintray" version "1.5" id "com.jfrog.bintray" version "1.7.3"
} }
apply plugin: 'java' apply plugin: 'java'
apply plugin: 'idea' apply plugin: 'idea'

View file

@ -1,5 +1,5 @@
plugins { plugins {
id "com.ewerk.gradle.plugins.annotation-processor" version "1.0.3" id "com.ewerk.gradle.plugins.annotation-processor" version "1.0.4"
} }
apply plugin: 'java' apply plugin: 'java'
apply plugin: 'idea' apply plugin: 'idea'

View file

@ -1,3 +1,4 @@
import com.beust.kobalt.*
import com.beust.kobalt.plugin.application.application import com.beust.kobalt.plugin.application.application
import com.beust.kobalt.plugin.apt.apt import com.beust.kobalt.plugin.apt.apt
import com.beust.kobalt.plugin.packaging.* import com.beust.kobalt.plugin.packaging.*
@ -6,6 +7,10 @@ import java.io.FileInputStream
import java.util.* import java.util.*
val bs = buildScript {
repos(file("K:/maven/repository/"))
}
fun StringBuilder.prepend(s: String): StringBuilder { fun StringBuilder.prepend(s: String): StringBuilder {
if (this.isNotEmpty()) { if (this.isNotEmpty()) {
this.insert(0, s) this.insert(0, s)
@ -35,7 +40,7 @@ val example = project {
version = versionFor() version = versionFor()
val mainClassName = "net.thauvin.erik.semver.example.Example" val mainClassName = "net.thauvin.erik.semver.example.Example"
val processorJar = "net.thauvin.erik:semver:" val processorJar = "net.thauvin.erik:semver:0.9.7"
dependencies { dependencies {
apt(processorJar) apt(processorJar)

View file

@ -1 +1 @@
kobalt.version=1.0.71 kobalt.version=1.0.72

View file

@ -98,25 +98,4 @@ val semver = project {
commandLine(listOf("pandoc") + args, os = setOf(Os.LINUX)) commandLine(listOf("pandoc") + args, os = setOf(Os.LINUX))
commandLine(listOf("cmd", "/c", "pandoc") + args, os = setOf(Os.WINDOWS)) commandLine(listOf("cmd", "/c", "pandoc") + args, os = setOf(Os.WINDOWS))
} }
} }
val example = project(semver) {
name = "example"
directory = "example"
version = versionFor(directory)
val mainClassName = "net.thauvin.erik.semver.example.Example"
assemble {
jar {
manifest {
attributes("Main-Class", mainClassName)
}
}
}
application {
mainClass = mainClassName
}
}