forked from JakeWharton/plex-orphaned-files
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
56 lines (46 loc) · 1.52 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
buildscript {
repositories {
mavenCentral()
gradlePluginPortal()
}
dependencies {
classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:1.4.31'
classpath 'org.jetbrains.kotlin:kotlin-serialization:1.4.31'
}
}
apply plugin: 'org.jetbrains.kotlin.jvm'
apply plugin: 'org.jetbrains.kotlin.plugin.serialization'
apply plugin: 'application'
mainClassName = 'com.jakewharton.plex.Main'
dependencies {
implementation 'com.github.ajalt.clikt:clikt:3.0.1'
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.4.3'
def okhttpVersion = '4.9.1'
implementation "com.squareup.okhttp3:okhttp:$okhttpVersion"
implementation "com.squareup.okhttp3:logging-interceptor:$okhttpVersion"
def kotlinxSerializationVersion = '1.1.0'
implementation "org.jetbrains.kotlinx:kotlinx-serialization-core:$kotlinxSerializationVersion"
implementation "org.jetbrains.kotlinx:kotlinx-serialization-json:$kotlinxSerializationVersion"
testImplementation 'junit:junit:4.13.2'
testImplementation 'com.google.jimfs:jimfs:1.2'
testImplementation 'com.google.truth:truth:1.1.2'
}
repositories {
mavenCentral()
}
tasks.named("distTar").configure { task ->
task.enabled = false
}
tasks.named("assemble").configure { task ->
task.dependsOn(tasks.getByName("installDist"))
}
tasks.withType(org.jetbrains.kotlin.gradle.dsl.KotlinJvmCompile).configureEach { task ->
task.kotlinOptions {
jvmTarget = '1.8'
freeCompilerArgs += [
'-progressive',
'-Xopt-in=kotlin.ExperimentalStdlibApi',
'-Xopt-in=kotlin.io.path.ExperimentalPathApi',
]
}
}