mirror of
https://github.com/HMCore/Orbot.git
synced 2025-12-10 21:06:18 +00:00
48 lines
1.0 KiB
Groovy
48 lines
1.0 KiB
Groovy
plugins {
|
|
id 'org.jetbrains.kotlin.jvm' version '1.3.61'
|
|
id 'org.jetbrains.kotlin.plugin.serialization' version '1.3.61'
|
|
}
|
|
|
|
group 'de.wulkanat'
|
|
version '1.0-SNAPSHOT'
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
jcenter()
|
|
}
|
|
|
|
dependencies {
|
|
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
|
|
|
|
compile 'net.dv8tion:JDA:4.2.0_189'
|
|
compile 'org.jsoup:jsoup:1.13.1'
|
|
compile "org.jetbrains.kotlinx:kotlinx-serialization-runtime:0.14.0"
|
|
}
|
|
|
|
compileKotlin {
|
|
kotlinOptions.jvmTarget = "1.8"
|
|
}
|
|
compileTestKotlin {
|
|
kotlinOptions.jvmTarget = "1.8"
|
|
}
|
|
|
|
jar {
|
|
manifest {
|
|
attributes('Main-Class': 'de.wulkanat.MainKt')
|
|
}
|
|
}
|
|
|
|
task fatJar(type: Jar) {
|
|
baseName = project.name + '-all'
|
|
from((configurations.compile.findAll { !it.path.endsWith(".pom") }).collect {
|
|
it.isDirectory() ? it : zipTree(it)
|
|
})
|
|
with jar
|
|
manifest {
|
|
attributes 'Main-Class': 'de.wulkanat.MainKt',
|
|
'Implementation-Version': version
|
|
}
|
|
}
|
|
|
|
apply plugin: 'kotlinx-serialization'
|