Rebuild IDEA project.
Added kobalt Build.kt reference to readme.
This commit is contained in:
parent
c27ba6dc98
commit
71a0fd4ee2
17 changed files with 641 additions and 311 deletions
12
example/kobalt/Build.kt.iml
Normal file
12
example/kobalt/Build.kt.iml
Normal file
|
@ -0,0 +1,12 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module type="JAVA_MODULE" version="4">
|
||||
<component name="NewModuleRootManager" inherit-compiler-output="true">
|
||||
<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="library" name="kobalt.jar" level="project" />
|
||||
</component>
|
||||
</module>
|
|
@ -1,23 +1,15 @@
|
|||
import com.beust.kobalt.plugin.application.application
|
||||
import com.beust.kobalt.plugin.apt.apt
|
||||
import com.beust.kobalt.plugin.packaging.assemble
|
||||
import com.beust.kobalt.project
|
||||
import java.io.FileInputStream
|
||||
import java.io.FileOutputStream
|
||||
import java.lang.NumberFormatException
|
||||
import java.util.Properties
|
||||
|
||||
import com.beust.kobalt.*
|
||||
import com.beust.kobalt.api.annotation.Task
|
||||
import com.beust.kobalt.api.Project
|
||||
import com.beust.kobalt.plugin.application.*
|
||||
import com.beust.kobalt.plugin.apt.*
|
||||
import com.beust.kobalt.plugin.java.*
|
||||
import com.beust.kobalt.plugin.packaging.*
|
||||
|
||||
val repos = repos()
|
||||
import java.util.*
|
||||
|
||||
val p = project {
|
||||
|
||||
name = "example"
|
||||
|
||||
fun getVersion(isIncrement: Boolean = false): String {
|
||||
fun versionFor(): String {
|
||||
val propsFile = "version.properties"
|
||||
val majorKey = "version.major"
|
||||
val minorKey = "version.minor"
|
||||
|
@ -42,7 +34,7 @@ val p = project {
|
|||
+ prerelease + metadata)
|
||||
}
|
||||
|
||||
version = getVersion()
|
||||
version = versionFor()
|
||||
|
||||
val mainClassName = "net.thauvin.erik.semver.example.Example"
|
||||
val processorJar = "net.thauvin.erik:semver:0.9.5-beta"
|
||||
|
@ -75,4 +67,4 @@ val p = project {
|
|||
application {
|
||||
mainClass = mainClassName
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1 +1 @@
|
|||
kobalt.version=0.839
|
||||
kobalt.version=0.840
|
Loading…
Add table
Add a link
Reference in a new issue