37 lines
980 B
Groovy
37 lines
980 B
Groovy
apply plugin: 'java-library'
|
|
apply plugin: 'kotlin'
|
|
apply plugin: 'kotlinx-serialization'
|
|
|
|
dependencies {
|
|
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
|
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
|
|
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.3'
|
|
implementation "org.jetbrains.kotlinx:kotlinx-serialization-runtime:0.14.0"
|
|
implementation 'org.jsoup:jsoup:1.12.1'
|
|
testImplementation 'junit:junit:4.13'
|
|
}
|
|
|
|
buildscript {
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
dependencies {
|
|
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
|
classpath "org.jetbrains.kotlin:kotlin-serialization:$kotlin_version"
|
|
}
|
|
}
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
compileKotlin {
|
|
kotlinOptions {
|
|
jvmTarget = "1.8"
|
|
freeCompilerArgs += '-Xuse-experimental=kotlin.Experimental'
|
|
}
|
|
}
|
|
compileTestKotlin {
|
|
kotlinOptions {
|
|
jvmTarget = "1.8"
|
|
}
|
|
}
|