Initial commit.

This commit is contained in:
Erik C. Thauvin 2017-05-17 00:41:35 -07:00
commit 2ee3568e40
25 changed files with 882 additions and 0 deletions

24
kobalt/Build.kt.iml Normal file
View file

@ -0,0 +1,24 @@
<?xml version="1.0" encoding="UTF-8"?>
<module external.linked.project.id="Build.kt" external.linked.project.path="$MODULE_DIR$/.." external.root.project.path="$MODULE_DIR$/.." external.system.id="KOBALT" type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager">
<output url="file://$MODULE_DIR$/out/classes" />
<output-test url="file://$MODULE_DIR$/out/test-classes" />
<exclude-output />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="module-library">
<library name="Kobalt: com.beust.kobalt:kobalt:jar:1.0.86">
<CLASSES>
<root url="jar://$USER_HOME$/.kobalt/wrapper/dist/kobalt-1.0.86/kobalt/wrapper/kobalt-1.0.86.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES>
<root url="jar://$USER_HOME$/.kobalt/wrapper/dist/kobalt-1.0.86/kobalt/wrapper/kobalt-1.0.86-sources.jar!/" />
</SOURCES>
</library>
</orderEntry>
</component>
</module>

90
kobalt/src/Build.kt Normal file
View file

@ -0,0 +1,90 @@
import com.beust.kobalt.glob
import com.beust.kobalt.plugin.application.application
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 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 p = project {
name = "pinboard-poster"
group = "net.thauvin.erik"
artifactId = name
version = "0.9.0"
val localProperties = Properties().apply { FileInputStream("local.properties").use { fis -> load(fis) } }
val apiToken = localProperties.getProperty("pinboard-api-token", "")
pom = Model().apply {
description = project.description
url = "https://github.com/ethauvin/pinboard-poster"
licenses = listOf(License().apply {
name = "BSD 3-Clause"
url = "https://opensource.org/licenses/BSD-3-Clause"
})
scm = Scm().apply {
url = "https://github.com/ethauvin/pinboard-poster"
connection = "https://github.com/ethauvin/pinboard-poster.git"
developerConnection = "git@github.com:ethauvin/pinboard-poster.git"
}
developers = listOf(Developer().apply {
id = "ethauvin"
name = "Erik C. Thauvin"
email = "erik@thauvin.net"
})
}
dependencies {
compile("org.jetbrains.kotlin:kotlin-stdlib:1.1.2-3")
compile("com.squareup.okhttp3:okhttp:3.8.0")
}
dependenciesTest {
compile("org.testng:testng:6.11")
compile("org.jetbrains.kotlin:kotlin-test:1.1.2-3")
}
assemble {
jar { }
mavenJars { }
}
application {
mainClass = "net.thauvin.erik.pinboard.PinboardPosterKt"
args(apiToken)
}
application {
taskName = "runJava"
mainClass = "net.thauvin.erik.pinboard.JavaExample"
args(apiToken)
}
install {
target = "deploy"
include(from("kobaltBuild/libs"), to(target), glob("**/*"))
collect(compileDependencies).forEach {
copy(from(it.file.absolutePath), to(target))
}
}
autoGitTag {
enabled = true
//push = false
message = "Version $version"
}
bintray {
publish = true
description = "Release version $version"
issueTrackerUrl = "https://github.com/ethauvin/pinboard-poster/issues"
vcsTag = version
sign = true
}
}

Binary file not shown.

View file

@ -0,0 +1 @@
kobalt.version=1.0.86