-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
49 lines (43 loc) · 1.32 KB
/
build.gradle.kts
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
val studioCompilePath: String by project
val studioRunPath: String by project
plugins {
id("org.jetbrains.intellij") version "1.14.1"
java
kotlin("jvm") version "1.8.22"
}
group = "dev.boldizsar.zsolt"
version = "0.8.0"
repositories {
mavenCentral()
}
dependencies {
val androidPlugin =
fileTree(baseDir = "$studioCompilePath/plugins/android/lib").apply {
include("*.jar")
}
compileOnly(androidPlugin)
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.7.0")
testImplementation("junit", "junit", "4.12")
}
// See https://github.com/JetBrains/gradle-intellij-plugin/
intellij {
updateSinceUntilBuild.set(false)
localPath.set(if (project.hasProperty("studioRunPath")) studioRunPath else studioCompilePath)
}
configure<JavaPluginExtension> {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
tasks {
compileKotlin {
kotlinOptions.jvmTarget = "17"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "17"
}
instrumentCode {
// Depending on your local IDE used ($studioCompilePath) a corresponding compiler version must be set.
// The releases can be found at: https://www.jetbrains.com/intellij-repository/releases
compilerVersion.set("223.7571.182")
}
}