-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
57 lines (46 loc) · 1.33 KB
/
build.gradle.kts
File metadata and controls
57 lines (46 loc) · 1.33 KB
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
57
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
group = "nexos.intellij.ddd"
buildscript {
repositories {
mavenCentral()
}
}
repositories {
mavenCentral()
maven (url= "https://www.jetbrains.com/intellij-repository/releases")
maven ( url= "https://jetbrains.bintray.com/intellij-third-party-dependencies" )
}
dependencies {
testImplementation("org.junit.jupiter:junit-jupiter:5.10.0")
testImplementation("org.junit.jupiter", "junit-jupiter-api", "5.10.0")
testRuntimeOnly("org.junit.jupiter", "junit-jupiter-engine", "5.10.0")
runtimeOnly("org.jetbrains.kotlin","kotlin-reflect", "1.9.10")
}
plugins {
id("java")
id("org.jetbrains.kotlin.jvm") version "1.9.10"
id("org.jetbrains.intellij") version "1.16.0"
}
val pluginVersion: String by project
tasks.withType<JavaCompile> {
sourceCompatibility = "17"
targetCompatibility = "17"
}
tasks.withType<KotlinCompile> {
kotlinOptions {
jvmTarget = "17"
}
}
tasks.withType<Test> {
useJUnitPlatform()
}
intellij {
updateSinceUntilBuild.set(false)
downloadSources.set(true)
plugins.set(listOf("java", "org.jetbrains.plugins.gradle", "com.intellij.java"))
version.set("2023.2.4")
}
tasks.publishPlugin {
token.set(System.getenv("PUBLISH_TOKEN"))
channels.set(listOf(version.toString().split('-').getOrElse(1) { "default" }.split('.').first()))
}