Removed kobalt.
This commit is contained in:
parent
b1602c78a9
commit
7c8e348b27
12 changed files with 0 additions and 243 deletions
|
@ -1,42 +0,0 @@
|
|||
<?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.90">
|
||||
<CLASSES>
|
||||
<root url="jar://$USER_HOME$/.kobalt/wrapper/dist/kobalt-1.0.90/kobalt/wrapper/kobalt-1.0.90.jar!/" />
|
||||
</CLASSES>
|
||||
<JAVADOC />
|
||||
<SOURCES>
|
||||
<root url="jar://$USER_HOME$/.kobalt/wrapper/dist/kobalt-1.0.90/kobalt/wrapper/kobalt-1.0.90-sources.jar!/" />
|
||||
</SOURCES>
|
||||
</library>
|
||||
</orderEntry>
|
||||
<orderEntry type="module-library">
|
||||
<library name="Kobalt: kobalt-pom2xml-0.1.0.jar">
|
||||
<CLASSES>
|
||||
<root url="jar://$USER_HOME$/.kobalt/cache/net/thauvin/erik/kobalt-pom2xml/0.1.0/kobalt-pom2xml-0.1.0.jar!/" />
|
||||
</CLASSES>
|
||||
<JAVADOC />
|
||||
<SOURCES />
|
||||
</library>
|
||||
</orderEntry>
|
||||
<orderEntry type="module-library">
|
||||
<library name="Kobalt: kobalt-exec-0.7.0.jar">
|
||||
<CLASSES>
|
||||
<root url="jar://$USER_HOME$/.kobalt/cache/net/thauvin/erik/kobalt-exec/0.7.0/kobalt-exec-0.7.0.jar!/" />
|
||||
</CLASSES>
|
||||
<JAVADOC />
|
||||
<SOURCES />
|
||||
</library>
|
||||
</orderEntry>
|
||||
</component>
|
||||
</module>
|
|
@ -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 {
|
||||
|
||||
}
|
||||
}
|
Binary file not shown.
|
@ -1 +0,0 @@
|
|||
kobalt.version=1.0.122
|
Binary file not shown.
|
@ -1 +0,0 @@
|
|||
kobalt.version=1.0.118
|
|
@ -1,2 +0,0 @@
|
|||
#!/usr/bin/env sh
|
||||
java -jar "`dirname "$0"`/kobalt/wrapper/kobalt-wrapper.jar" $*
|
|
@ -1,4 +0,0 @@
|
|||
@echo off
|
||||
set DIRNAME=%~dp0
|
||||
if "%DIRNAME%" == "" set DIRNAME=.
|
||||
java -jar "%DIRNAME%/kobalt/wrapper/kobalt-wrapper.jar" %*
|
2
kobaltw
2
kobaltw
|
@ -1,2 +0,0 @@
|
|||
#!/usr/bin/env sh
|
||||
java -jar "`dirname "$0"`/kobalt/wrapper/kobalt-wrapper.jar" $*
|
|
@ -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 $*
|
|
@ -1,4 +0,0 @@
|
|||
@echo off
|
||||
set DIRNAME=%~dp0
|
||||
if "%DIRNAME%" == "" set DIRNAME=.
|
||||
java -jar "%DIRNAME%/kobalt/wrapper/kobalt-wrapper.jar" %*
|
42
pom.xml
42
pom.xml
|
@ -1,42 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>net.thauvin.erik</groupId>
|
||||
<artifactId>semver</artifactId>
|
||||
<version>1.2.0</version>
|
||||
<name>semver</name>
|
||||
<description>Semantic Version Annotation Processor</description>
|
||||
<url>https://github.com/ethauvin/semver</url>
|
||||
<licenses>
|
||||
<license>
|
||||
<name>BSD 3-Clause</name>
|
||||
<url>https://opensource.org/licenses/BSD-3-Clause</url>
|
||||
</license>
|
||||
</licenses>
|
||||
<developers>
|
||||
<developer>
|
||||
<id>ethauvin</id>
|
||||
<name>Erik C. Thauvin</name>
|
||||
<email>erik@thauvin.net</email>
|
||||
</developer>
|
||||
</developers>
|
||||
<scm>
|
||||
<connection>https://github.com/ethauvin/semver.git</connection>
|
||||
<developerConnection>git@github.com:ethauvin/semver.git</developerConnection>
|
||||
<url>https://github.com/ethauvin/semver</url>
|
||||
</scm>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>com.github.spullara.mustache.java</groupId>
|
||||
<artifactId>compiler</artifactId>
|
||||
<version>0.9.6</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.testng</groupId>
|
||||
<artifactId>testng</artifactId>
|
||||
<version>6.14.3</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</project>
|
Loading…
Add table
Add a link
Reference in a new issue