2019-02-28 11:21:49 +00:00
|
|
|
plugins {
|
|
|
|
id 'java'
|
2019-04-07 14:42:04 +00:00
|
|
|
id 'org.jetbrains.kotlin.jvm' version '1.3.21'
|
2019-02-28 11:21:49 +00:00
|
|
|
}
|
2019-04-07 14:42:04 +00:00
|
|
|
group 'io.github.chronosx88'
|
|
|
|
version '0.1'
|
2019-02-28 11:21:49 +00:00
|
|
|
|
2019-04-07 14:42:04 +00:00
|
|
|
task fatJar(type: Jar) {
|
|
|
|
manifest {
|
|
|
|
attributes(
|
|
|
|
'Main-Class': 'io.github.chronosx88.dhtBootstrap.MainKt'
|
|
|
|
)
|
|
|
|
}
|
|
|
|
baseName = project.name + '-all'
|
|
|
|
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
|
|
|
|
with jar
|
|
|
|
}
|
2019-02-28 11:21:49 +00:00
|
|
|
|
|
|
|
sourceCompatibility = 1.8
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
2019-03-05 11:24:33 +00:00
|
|
|
maven {
|
|
|
|
url "http://tomp2p.net/dev/mvn/"
|
|
|
|
}
|
2019-02-28 11:21:49 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2019-04-07 14:42:04 +00:00
|
|
|
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
|
2019-03-05 11:24:33 +00:00
|
|
|
implementation 'net.tomp2p:tomp2p-all:5.0-Beta8'
|
2019-03-11 16:54:56 +00:00
|
|
|
implementation 'org.slf4j:slf4j-log4j12:+'
|
2019-02-28 11:21:49 +00:00
|
|
|
}
|
|
|
|
|
2019-04-07 14:42:04 +00:00
|
|
|
compileKotlin {
|
|
|
|
kotlinOptions.jvmTarget = "1.8"
|
|
|
|
}
|
|
|
|
compileTestKotlin {
|
|
|
|
kotlinOptions.jvmTarget = "1.8"
|
|
|
|
}
|
2019-02-28 11:21:49 +00:00
|
|
|
jar {
|
|
|
|
manifest {
|
|
|
|
attributes(
|
2019-04-07 14:42:04 +00:00
|
|
|
'Main-Class': 'io.github.chronosx88.dhtBootstrap.MainKt'
|
2019-02-28 11:21:49 +00:00
|
|
|
)
|
|
|
|
}
|
2019-04-07 14:42:04 +00:00
|
|
|
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
|
|
|
|
}
|