-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.gradle.kts
143 lines (126 loc) · 4.11 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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
import org.jetbrains.intellij.platform.gradle.TestFrameworkType
import org.jetbrains.intellij.platform.gradle.tasks.VerifyPluginTask
plugins {
id("org.jetbrains.intellij.platform") version "2.2.1"
java
kotlin("jvm") version "2.1.0"
}
group = "com.asyncapi.plugin.idea"
version = "2.6.0+jre17"
repositories {
mavenCentral()
intellijPlatform {
jetbrainsRuntime()
defaultRepositories()
}
}
dependencies {
intellijPlatform {
/*
Our developers believe that you likely built the plugin against version 2024.2, which includes
a companion object in this class. As a result, the generated bytecode references it. To ensure compatibility,
the plugin should be built against the lowest supported version, which in this case is 2022.3.
Please adjust the IntelliJ version to 2022.3 in the Gradle build script and try building the plugin again.
*/
intellijIdeaCommunity("2022.3", useInstaller = false) // MUST NOT be changed
// Plugin Dependencies. Uses `platformBundledPlugins` property from the gradle.properties file for bundled IntelliJ Platform plugins.
bundledPlugins(listOf(
"org.jetbrains.plugins.yaml"
))
pluginVerifier()
jetbrainsRuntime()
instrumentationTools()
testFramework(TestFrameworkType.Platform)
}
implementation("com.fasterxml.jackson.core:jackson-core:2.18.2")
implementation("com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.18.2")
implementation("com.fasterxml.jackson.module:jackson-module-kotlin:2.18.2")
testImplementation("org.junit.jupiter:junit-jupiter-api:5.11.4")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.11.4")
testRuntimeOnly("org.junit.vintage:junit-vintage-engine:5.11.4")
}
// See https://plugins.jetbrains.com/docs/intellij/tools-intellij-platform-gradle-plugin-extension.html
intellijPlatform {
instrumentCode = true
pluginConfiguration {
description = providers.fileContents(
layout.projectDirectory.file("src/main/resources/META-INF/description.html")
).asText
changeNotes = """
<h3>Added</h3>
<ul>
<li>IDEA 2024.2</li>
<li>Yaml single quoted references handling - '#/components/messages/welcomeMessage', '../common/messages/welcomeMessage.yml'</li>
<li><code>.yml</code> file recognition</li>
</ul>
""".trimIndent()
}
pluginVerification {
failureLevel = listOf(
VerifyPluginTask.FailureLevel.INVALID_PLUGIN,
VerifyPluginTask.FailureLevel.COMPATIBILITY_PROBLEMS,
VerifyPluginTask.FailureLevel.NOT_DYNAMIC
)
ides {
ides(listOf(
"2022.3",
"2022.3.1",
"2022.3.2",
"2022.3.3",
"2023.1",
"2023.1.1",
"2023.1.2",
"2023.1.3",
"2023.1.4",
"2023.1.5",
"2023.2",
"2023.2.1",
"2023.2.2",
"2023.2.3",
"2023.2.4",
"2023.2.5",
"2023.3",
"2023.3.1",
"2023.3.2",
"2023.3.3",
"2023.3.4",
"2023.3.5",
"2023.3.6",
"2023.3.7",
"2024.1",
"2024.1.1",
"2024.1.2",
"2024.1.3",
"2024.1.4",
"2024.1.5",
"2024.1.6",
"2024.2",
"2024.2.0.1",
"2024.2.0.2",
"2024.2.1"
))
}
}
}
tasks {
patchPluginXml {
sinceBuild = "223"
untilBuild = "242.*"
}
}
tasks {
compileKotlin {
kotlinOptions.jvmTarget = "17"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "17"
}
test {
useJUnitPlatform()
}
}
kotlin {
jvmToolchain {
this.languageVersion.set(JavaLanguageVersion.of(17))
}
}