Removed kobalt.
This commit is contained in:
parent
b68048a2af
commit
fbcad6e611
6 changed files with 0 additions and 247 deletions
|
@ -1,145 +0,0 @@
|
||||||
import com.beust.kobalt.*
|
|
||||||
import com.beust.kobalt.api.Project
|
|
||||||
import com.beust.kobalt.api.annotation.Task
|
|
||||||
import com.beust.kobalt.misc.KobaltLogger
|
|
||||||
import com.beust.kobalt.misc.log
|
|
||||||
import com.beust.kobalt.plugin.application.application
|
|
||||||
import com.beust.kobalt.plugin.apt.apt
|
|
||||||
import com.beust.kobalt.plugin.java.javadoc
|
|
||||||
import com.beust.kobalt.plugin.packaging.assemble
|
|
||||||
import com.beust.kobalt.plugin.packaging.install
|
|
||||||
import com.beust.kobalt.plugin.publish.autoGitTag
|
|
||||||
import net.thauvin.erik.kobalt.plugin.pom2xml.pom2xml
|
|
||||||
import java.io.File
|
|
||||||
import java.io.FileInputStream
|
|
||||||
import java.util.*
|
|
||||||
|
|
||||||
val bs = buildScript {
|
|
||||||
repos(localMaven())
|
|
||||||
plugins("net.thauvin.erik:kobalt-pom2xml:")
|
|
||||||
}
|
|
||||||
|
|
||||||
val mainClassName = "net.thauvin.erik.mobibot.Mobibot"
|
|
||||||
val deploy = "deploy"
|
|
||||||
|
|
||||||
fun StringBuilder.prepend(s: String): StringBuilder {
|
|
||||||
if (this.isNotEmpty()) {
|
|
||||||
this.insert(0, s)
|
|
||||||
}
|
|
||||||
return this
|
|
||||||
}
|
|
||||||
|
|
||||||
val p = project {
|
|
||||||
|
|
||||||
name = "mobibot"
|
|
||||||
|
|
||||||
fun versionFor(): String {
|
|
||||||
val propsFile = "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("+"))
|
|
||||||
}
|
|
||||||
|
|
||||||
version = versionFor()
|
|
||||||
|
|
||||||
val processorJar = "net.thauvin.erik:semver:1.0.1"
|
|
||||||
val lib = "lib"
|
|
||||||
|
|
||||||
dependencies {
|
|
||||||
compile("pircbot:pircbot:1.5.0")
|
|
||||||
//compileOnly("pircbot:pircbot::sources:1.5.0")
|
|
||||||
|
|
||||||
compile("org.apache.logging.log4j:log4j-api:2.11.0",
|
|
||||||
"org.apache.logging.log4j:log4j-core:2.11.0",
|
|
||||||
"org.apache.logging.log4j:log4j-slf4j-impl:jar:2.11.0")
|
|
||||||
|
|
||||||
compile("commons-cli:commons-cli:1.4", "commons-net:commons-net:3.6")
|
|
||||||
compile("com.squareup.okhttp3:okhttp:3.11.0")
|
|
||||||
|
|
||||||
compile("com.rometools:rome:1.11.0")
|
|
||||||
|
|
||||||
compile("org.json:json:20180130")
|
|
||||||
compile("org.ostermiller:utils:1.07.00")
|
|
||||||
compile("org.jsoup:jsoup:1.11.3")
|
|
||||||
compile("net.objecthunter:exp4j:0.4.8")
|
|
||||||
|
|
||||||
compile("org.twitter4j:twitter4j-core:4.0.6")
|
|
||||||
compile("net.thauvin.erik:pinboard-poster:1.0.0")
|
|
||||||
|
|
||||||
compile("net.aksingh:owm-japis:2.5.2.2")
|
|
||||||
|
|
||||||
apt(processorJar)
|
|
||||||
compileOnly(processorJar)
|
|
||||||
|
|
||||||
compileOnly("com.github.spotbugs:spotbugs-annotations:3.1.5")
|
|
||||||
}
|
|
||||||
|
|
||||||
dependenciesTest {
|
|
||||||
compile("org.testng:testng:6.14.3")
|
|
||||||
compile("org.assertj:assertj-core:3.10.0")
|
|
||||||
}
|
|
||||||
|
|
||||||
apt {
|
|
||||||
outputDir = "../src/generated/java/"
|
|
||||||
}
|
|
||||||
|
|
||||||
autoGitTag {
|
|
||||||
enabled = true
|
|
||||||
message = "Version $version"
|
|
||||||
annotated = true
|
|
||||||
}
|
|
||||||
|
|
||||||
assemble {
|
|
||||||
jar {
|
|
||||||
name = "${project.name}.jar"
|
|
||||||
manifest {
|
|
||||||
attributes("Main-Class", mainClassName)
|
|
||||||
attributes("Class-Path",
|
|
||||||
collect(compileDependencies)
|
|
||||||
.map { it.file.name }
|
|
||||||
.joinToString(" ./$lib/", prefix = ". ./$lib/"))
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
application {
|
|
||||||
mainClass = mainClassName
|
|
||||||
args("-v")
|
|
||||||
}
|
|
||||||
|
|
||||||
install {
|
|
||||||
target = deploy
|
|
||||||
include(from("kobaltBuild/libs"), to(target), glob("**/*"))
|
|
||||||
include(from("properties"), to(target), glob("**/*"))
|
|
||||||
collect(compileDependencies)
|
|
||||||
.forEach {
|
|
||||||
copy(from(it.file.absolutePath), to("$target/$lib"))
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
javadoc {
|
|
||||||
title = project.name + ' ' + project.version
|
|
||||||
tags("created")
|
|
||||||
author = true
|
|
||||||
links("http://www.jibble.org/javadocs/pircbot/", "http://docs.oracle.com/javase/8/docs/api/")
|
|
||||||
}
|
|
||||||
|
|
||||||
pom2xml {
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@Task(name = "deploy", dependsOn = arrayOf("assemble", "install"), description = "Deploy application")
|
|
||||||
fun deploy(project: Project): TaskResult {
|
|
||||||
File("$deploy/logs").mkdir()
|
|
||||||
KobaltLogger.log(1, " Deployed to " + File(deploy).absolutePath)
|
|
||||||
return TaskResult()
|
|
||||||
}
|
|
Binary file not shown.
|
@ -1 +0,0 @@
|
||||||
kobalt.version=1.0.118
|
|
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 @@
|
||||||
@echo off
|
|
||||||
set DIRNAME=%~dp0
|
|
||||||
if "%DIRNAME%" == "" set DIRNAME=.
|
|
||||||
java -jar "%DIRNAME%/kobalt/wrapper/kobalt-wrapper.jar" %*
|
|
95
pom.xml
95
pom.xml
|
@ -1,95 +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>
|
|
||||||
<version>0.7.2-beta+030</version>
|
|
||||||
<name>mobibot</name>
|
|
||||||
<description></description>
|
|
||||||
<dependencies>
|
|
||||||
<dependency>
|
|
||||||
<groupId>pircbot</groupId>
|
|
||||||
<artifactId>pircbot</artifactId>
|
|
||||||
<version>1.5.0</version>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.apache.logging.log4j</groupId>
|
|
||||||
<artifactId>log4j-api</artifactId>
|
|
||||||
<version>2.10.0</version>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.apache.logging.log4j</groupId>
|
|
||||||
<artifactId>log4j-core</artifactId>
|
|
||||||
<version>2.10.0</version>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.apache.logging.log4j</groupId>
|
|
||||||
<artifactId>log4j-slf4j-impl</artifactId>
|
|
||||||
<version>2.10.0</version>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>commons-cli</groupId>
|
|
||||||
<artifactId>commons-cli</artifactId>
|
|
||||||
<version>1.4</version>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>commons-net</groupId>
|
|
||||||
<artifactId>commons-net</artifactId>
|
|
||||||
<version>3.6</version>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>com.squareup.okhttp3</groupId>
|
|
||||||
<artifactId>okhttp</artifactId>
|
|
||||||
<version>3.9.1</version>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>com.rometools</groupId>
|
|
||||||
<artifactId>rome</artifactId>
|
|
||||||
<version>1.9.0</version>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.json</groupId>
|
|
||||||
<artifactId>json</artifactId>
|
|
||||||
<version>20171018</version>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.ostermiller</groupId>
|
|
||||||
<artifactId>utils</artifactId>
|
|
||||||
<version>1.07.00</version>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.jsoup</groupId>
|
|
||||||
<artifactId>jsoup</artifactId>
|
|
||||||
<version>1.11.2</version>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>net.objecthunter</groupId>
|
|
||||||
<artifactId>exp4j</artifactId>
|
|
||||||
<version>0.4.8</version>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.twitter4j</groupId>
|
|
||||||
<artifactId>twitter4j-core</artifactId>
|
|
||||||
<version>4.0.6</version>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>net.thauvin.erik</groupId>
|
|
||||||
<artifactId>pinboard-poster</artifactId>
|
|
||||||
<version>0.9.3</version>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<systemPath>K:\java\mobibot\.\lib\owm-japis-2.5.0.5.jar</systemPath>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.testng</groupId>
|
|
||||||
<artifactId>testng</artifactId>
|
|
||||||
<version>6.13.1</version>
|
|
||||||
<scope>test</scope>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.assertj</groupId>
|
|
||||||
<artifactId>assertj-core</artifactId>
|
|
||||||
<version>3.9.0</version>
|
|
||||||
<scope>test</scope>
|
|
||||||
</dependency>
|
|
||||||
</dependencies>
|
|
||||||
</project>
|
|
Loading…
Add table
Add a link
Reference in a new issue