forked from gilday/dark-mode-sync-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
47 lines (37 loc) · 940 Bytes
/
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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
id("java")
kotlin("jvm") version "1.3.61"
id("org.jetbrains.intellij") version "0.4.15"
id("com.github.sherter.google-java-format") version "0.8"
}
group = "com.github.gilday"
version = "1.2.2"
repositories {
mavenCentral()
}
dependencies {
testImplementation(platform("org.junit:junit-bom:5.5.2"))
testApi("org.junit.jupiter:junit-jupiter-api")
testImplementation("org.junit.jupiter:junit-jupiter-engine")
}
java {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
intellij {
version = "2020.1"
}
tasks.withType<KotlinCompile> {
kotlinOptions.jvmTarget = JavaVersion.VERSION_11.majorVersion
}
tasks.test {
useJUnitPlatform()
}
tasks.patchPluginXml {
setSinceBuild("201")
}
tasks.publishPlugin {
val jetBrainsToken: String? by project
token(jetBrainsToken)
}