-
-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
110 lines (93 loc) · 3.15 KB
/
Copy pathbuild.gradle.kts
File metadata and controls
110 lines (93 loc) · 3.15 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
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.jetbrains.intellij.platform.gradle.TestFrameworkType
import org.jetbrains.intellij.platform.gradle.tasks.VerifyPluginTask
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
plugins {
id("org.jetbrains.intellij.platform") version "2.18.1"
java
kotlin("jvm") version "2.4.10"
}
group = "com.asyncapi.plugin.idea"
version = "3.2.0+jre21"
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("2024.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",
"com.intellij.modules.json"
))
pluginVerifier()
jetbrainsRuntime()
testFramework(TestFrameworkType.Platform)
}
implementation("com.fasterxml.jackson.core:jackson-core:2.22.1")
implementation("com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.22.1")
implementation("com.fasterxml.jackson.module:jackson-module-kotlin:2.22.1")
testRuntimeOnly("org.junit.vintage:junit-vintage-engine:6.1.2")
testImplementation("junit:junit:4.13.2")
}
// 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>Changed</h3>
<ul>
<li>AsyncAPI preview editor now uses new API. Enjoy new fancy view</li>
</ul>
""".trimIndent()
}
pluginVerification {
failureLevel = listOf(
VerifyPluginTask.FailureLevel.INVALID_PLUGIN,
VerifyPluginTask.FailureLevel.COMPATIBILITY_PROBLEMS,
VerifyPluginTask.FailureLevel.NOT_DYNAMIC,
VerifyPluginTask.FailureLevel.MISSING_DEPENDENCIES,
)
ides {
ides(listOf(
"2024.3",
"2024.3.1",
"2024.3.2",
"2024.3.3",
"2024.3.4",
"2025.1",
))
}
}
}
tasks {
patchPluginXml {
sinceBuild = "243"
untilBuild = provider { null }
}
}
tasks {
test {
useJUnitPlatform()
}
}
kotlin {
compilerOptions {
jvmTarget.set(JvmTarget.JVM_21)
}
jvmToolchain {
this.languageVersion.set(JavaLanguageVersion.of(21))
}
}