2019-04-10 12:25:22 +00:00
|
|
|
buildscript {
|
|
|
|
ext.kotlin_version = '1.3.21'
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
jcenter()
|
|
|
|
}
|
2019-02-28 11:21:49 +00:00
|
|
|
|
2019-04-10 12:25:22 +00:00
|
|
|
dependencies {
|
|
|
|
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
|
|
|
classpath 'com.github.jengelman.gradle.plugins:shadow:4.0.4'
|
2019-04-07 14:42:04 +00:00
|
|
|
}
|
|
|
|
}
|
2019-02-28 11:21:49 +00:00
|
|
|
|
2019-04-10 12:25:22 +00:00
|
|
|
apply plugin: 'kotlin'
|
|
|
|
apply plugin: 'java'
|
|
|
|
apply plugin: 'com.github.johnrengelman.shadow'
|
|
|
|
|
|
|
|
group 'io.github.chronosx88'
|
|
|
|
version '0.1'
|
2019-02-28 11:21:49 +00:00
|
|
|
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
2019-04-10 14:20:25 +00:00
|
|
|
maven {
|
|
|
|
url 'http://tomp2p.net/dev/mvn/'
|
|
|
|
}
|
2019-02-28 11:21:49 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2019-04-10 12:25:22 +00:00
|
|
|
implementation fileTree(include: ['*.jar'], dir: 'libs')
|
2019-04-10 14:20:25 +00:00
|
|
|
implementation 'net.tomp2p:tomp2p-all:5.0-Beta8'
|
2019-04-07 14:42:04 +00:00
|
|
|
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
|
2019-04-10 14:20:25 +00:00
|
|
|
implementation 'org.slf4j:slf4j-log4j12:1.7.26'
|
2019-02-28 11:21:49 +00:00
|
|
|
}
|
|
|
|
|
2019-04-07 14:42:04 +00:00
|
|
|
compileKotlin {
|
|
|
|
kotlinOptions.jvmTarget = "1.8"
|
|
|
|
}
|
2019-04-10 12:25:22 +00:00
|
|
|
|
2019-04-07 14:42:04 +00:00
|
|
|
compileTestKotlin {
|
|
|
|
kotlinOptions.jvmTarget = "1.8"
|
|
|
|
}
|
2019-04-10 12:25:22 +00:00
|
|
|
|
2019-02-28 11:21:49 +00:00
|
|
|
jar {
|
|
|
|
manifest {
|
2019-04-10 12:25:22 +00:00
|
|
|
attributes 'Main-Class': 'MainKt'
|
|
|
|
}
|
|
|
|
from {
|
|
|
|
configurations.compile.collect {
|
|
|
|
it.isDirectory() ? it : zipTree(it)
|
|
|
|
}
|
2019-02-28 11:21:49 +00:00
|
|
|
}
|
2019-04-07 14:42:04 +00:00
|
|
|
}
|