Influence-Bootstrap-Node/build.gradle

47 lines
1.0 KiB
Groovy
Raw Normal View History

2019-02-28 11:21:49 +00:00
plugins {
id 'java'
id 'org.jetbrains.kotlin.jvm' version '1.3.21'
2019-02-28 11:21:49 +00:00
}
group 'io.github.chronosx88'
version '0.1'
2019-02-28 11:21:49 +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()
/*maven {
2019-03-05 11:24:33 +00:00
url "http://tomp2p.net/dev/mvn/"
}*/
2019-02-28 11:21:49 +00:00
}
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
//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
}
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}
2019-02-28 11:21:49 +00:00
jar {
manifest {
attributes(
'Main-Class': 'io.github.chronosx88.dhtBootstrap.MainKt'
2019-02-28 11:21:49 +00:00
)
}
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
}