Added examples to main build file.
This commit is contained in:
parent
d41911525c
commit
da97656616
9 changed files with 966 additions and 410 deletions
|
@ -10,9 +10,18 @@
|
|||
<orderEntry type="inheritedJdk" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
<orderEntry type="module-library">
|
||||
<library name="Kobalt: com.beust.kobalt:kobalt:jar:1.0.3">
|
||||
<library name="Kobalt: com.beust.kobalt:kobalt:jar:1.0.5">
|
||||
<CLASSES>
|
||||
<root url="jar://$USER_HOME$/.kobalt/wrapper/dist/kobalt-1.0.3/kobalt/wrapper/kobalt-1.0.3.jar!/" />
|
||||
<root url="jar://$USER_HOME$/.kobalt/wrapper/dist/kobalt-1.0.5/kobalt/wrapper/kobalt-1.0.5.jar!/" />
|
||||
</CLASSES>
|
||||
<JAVADOC />
|
||||
<SOURCES />
|
||||
</library>
|
||||
</orderEntry>
|
||||
<orderEntry type="module-library">
|
||||
<library name="Kobalt: kobalt-versioneye-0.4.3-beta.jar">
|
||||
<CLASSES>
|
||||
<root url="jar://$USER_HOME$/.kobalt/cache/net/thauvin/erik/kobalt-versioneye/0.4.3-beta/kobalt-versioneye-0.4.3-beta.jar!/" />
|
||||
</CLASSES>
|
||||
<JAVADOC />
|
||||
<SOURCES />
|
||||
|
|
|
@ -1,17 +1,35 @@
|
|||
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.bintray
|
||||
import com.beust.kobalt.project
|
||||
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
|
||||
|
||||
val semver = "0.4.4"
|
||||
|
||||
val bs = buildScript {
|
||||
val f = java.io.File("kobaltBuild/libs/kobalt-versioneye-$semver.jar")
|
||||
val p = if (f.exists()) {
|
||||
kobaltLog(1, " >>> Using: ${f.path}")
|
||||
file(f.path)
|
||||
} else {
|
||||
"net.thauvin.erik:kobalt-versioneye:"
|
||||
}
|
||||
plugins(p)
|
||||
}
|
||||
|
||||
val p = project {
|
||||
|
||||
name = "kobalt-versioneye"
|
||||
group = "net.thauvin.erik"
|
||||
artifactId = name
|
||||
version = "0.4.4"
|
||||
version = semver
|
||||
|
||||
pom = Model().apply {
|
||||
description = "VersionEye plug-in for the Kobalt build system."
|
||||
|
@ -57,3 +75,58 @@ val p = project {
|
|||
publish = true
|
||||
}
|
||||
}
|
||||
|
||||
val example = project(p) {
|
||||
|
||||
name = "example"
|
||||
group = "com.example"
|
||||
artifactId = name
|
||||
version = "0.1"
|
||||
directory = "example"
|
||||
|
||||
sourceDirectories {
|
||||
path("src/main/kotlin")
|
||||
}
|
||||
|
||||
sourceDirectoriesTest {
|
||||
path("src/test/kotlin")
|
||||
}
|
||||
|
||||
dependencies {
|
||||
compile("com.beust:jcommander:1.47")
|
||||
//compile("org.slf4j:slf4j-api:")
|
||||
compile("ch.qos.logback:logback-core:0.5")
|
||||
compile("ch.qos.logback:logback-classic:1.1.7")
|
||||
compile("commons-httpclient:commons-httpclient:jar:3.1")
|
||||
compile("com.beust:kobalt-plugin-api:0.878")
|
||||
}
|
||||
|
||||
|
||||
|
||||
dependenciesTest {
|
||||
compile("org.testng:testng:")
|
||||
}
|
||||
|
||||
assemble {
|
||||
jar {
|
||||
}
|
||||
}
|
||||
|
||||
application {
|
||||
mainClass = "com.example.MainKt"
|
||||
}
|
||||
|
||||
versionEye {
|
||||
// baseUrl = "https://www.versioneye.com/"
|
||||
// colors = true
|
||||
// name = ""
|
||||
// org = ""
|
||||
// quiet = false
|
||||
// team = ""
|
||||
// verbose = true
|
||||
// visibility = "public"
|
||||
|
||||
//failOn(Fail.licensesUnknownCheck, Fail.licensesCheck, Fail.securityCheck, Fail.dependenciesCheck)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -1 +1 @@
|
|||
kobalt.version=1.0.3
|
||||
kobalt.version=1.0.5
|
Loading…
Add table
Add a link
Reference in a new issue