-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle.kts
executable file
·110 lines (96 loc) · 2.94 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
import org.gradle.kotlin.dsl.compileKotlin
import org.gradle.kotlin.dsl.compileTestKotlin
import org.gradle.kotlin.dsl.implementation
import org.jetbrains.intellij.platform.gradle.IntelliJPlatformType
import org.jetbrains.intellij.platform.gradle.TestFrameworkType
import org.jetbrains.intellij.platform.gradle.models.ProductRelease
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
import org.jetbrains.kotlin.gradle.dsl.KotlinVersion
plugins {
id("java")
kotlin("jvm") version "2.0.10"
id("org.jetbrains.intellij.platform") version "2.0.1"
}
group = "cn.bestwu"
version = "0.1.11"
java {
sourceCompatibility = JavaVersion.VERSION_17
}
tasks {
compileKotlin {
compilerOptions {
apiVersion.set(KotlinVersion.KOTLIN_2_0)
languageVersion.set(KotlinVersion.KOTLIN_2_0)
jvmTarget.set(JvmTarget.JVM_17)
}
}
compileTestKotlin {
compilerOptions {
apiVersion.set(KotlinVersion.KOTLIN_2_0)
languageVersion.set(KotlinVersion.KOTLIN_2_0)
jvmTarget.set(JvmTarget.JVM_17)
}
}
}
repositories {
mavenLocal()
maven("https://maven.aliyun.com/repository/public/")
mavenCentral()
intellijPlatform {
defaultRepositories()
// jetbrainsRuntime()
}
}
dependencies {
implementation(kotlin("stdlib-jdk8"))
intellijPlatform {
intellijIdeaCommunity("2024.2")
bundledPlugin("com.intellij.java")
bundledPlugin("org.intellij.groovy")
bundledPlugin("com.intellij.gradle")
bundledPlugin("org.jetbrains.kotlin")
// jetbrainsRuntime()
instrumentationTools()
pluginVerifier()
testFramework(TestFrameworkType.Bundled)
}
testImplementation("junit:junit:4.13.2")
}
intellijPlatform {
buildSearchableOptions.set(false)
publishing {
token.set(project.findProperty("intellij.publish.token") as String)
channels.set(listOf("stable"))
}
pluginConfiguration {
id.set("cn.bestwu.gdph")
name.set("Gradle Dependencies And Plugins Helper")
version.set("${project.version}")
vendor {
name.set("Peter Wu")
email.set("[email protected]")
url.set("https://github.com/top-bettercode/gradle-dependencies-plugins-helper-plugin")
}
ideaVersion.sinceBuild.set("242.20224")
changeNotes.set(
"""
<b>${project.version}</b><br/><br/>
<ul>
<li>Adaptation to version 2024.2.</li>
</ul>
"""
)
}
pluginVerification {
ides {
ide(IntelliJPlatformType.IntellijIdeaUltimate, "2024.2.0.1")
recommended()
select {
types.set(listOf(IntelliJPlatformType.IntellijIdeaUltimate))
channels.set(listOf(ProductRelease.Channel.RELEASE))
sinceBuild.set("242.20224")
untilBuild.set("242.*")
}
}
}
}