mirror of
https://github.com/HMCore/Orbot.git
synced 2025-12-12 22:06:23 +00:00
54 lines
1.2 KiB
Groovy
54 lines
1.2 KiB
Groovy
plugins {
|
|
id 'org.jetbrains.kotlin.jvm' version '1.5.10'
|
|
id 'org.jetbrains.kotlin.plugin.serialization' version '1.5.10'
|
|
}
|
|
|
|
group 'de.wulkanat'
|
|
version '2.0.0'
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
jcenter()
|
|
maven {
|
|
url 'https://m2.dv8tion.net/releases'
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
|
|
|
|
implementation 'net.dv8tion:JDA:4.2.1_253'
|
|
implementation 'org.jsoup:jsoup:1.13.1'
|
|
implementation 'org.jetbrains.kotlinx:kotlinx-serialization-json:1.2.1'
|
|
|
|
implementation 'com.github.redouane59.twitter:twittered:1.20'
|
|
implementation group: 'org.quartz-scheduler', name: 'quartz', version: '2.3.2'
|
|
}
|
|
|
|
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'
|