This commit includes the basic project structure, the initial implementation of the plugin, and fixes for duplicate API calls and deprecated code.
62 lines
1.3 KiB
Plaintext
62 lines
1.3 KiB
Plaintext
plugins {
|
|
id("java")
|
|
id("org.jetbrains.kotlin.jvm") version "2.1.0"
|
|
id("org.jetbrains.intellij.platform") version "2.6.0"
|
|
}
|
|
|
|
|
|
group = "com.sdk.actionbean.generator"
|
|
version = "1.0-SNAPSHOT"
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
intellijPlatform {
|
|
defaultRepositories()
|
|
}
|
|
}
|
|
|
|
// Configure Gradle IntelliJ Plugin
|
|
// Read more: https://plugins.jetbrains.com/docs/intellij/tools-intellij-platform-gradle-plugin.html
|
|
dependencies {
|
|
intellijPlatform {
|
|
create("IU", "2025.1")
|
|
testFramework(org.jetbrains.intellij.platform.gradle.TestFrameworkType.Platform)
|
|
|
|
// Add necessary plugin dependencies for compilation here, example:
|
|
bundledPlugin("com.intellij.java")
|
|
bundledPlugin("com.intellij.database")
|
|
|
|
implementation("org.freemarker:freemarker:2.3.32")
|
|
}
|
|
}
|
|
|
|
|
|
intellijPlatform {
|
|
pluginConfiguration {
|
|
ideaVersion {
|
|
sinceBuild = "251"
|
|
}
|
|
|
|
changeNotes = """
|
|
Initial version
|
|
""".trimIndent()
|
|
}
|
|
}
|
|
|
|
tasks {
|
|
// Set the JVM compatibility versions
|
|
withType<JavaCompile> {
|
|
sourceCompatibility = "21"
|
|
targetCompatibility = "21"
|
|
}
|
|
|
|
// signPlugin {
|
|
// certificateChain.set(System.getenv("CERTIFICATE_CHAIN"))
|
|
// privateKey.set(System.getenv("PRIVATE_KEY"))
|
|
// password.set(System.getenv("PRIVATE_KEY_PASSWORD"))
|
|
// }
|
|
//
|
|
// publishPlugin {
|
|
// token.set(System.getenv("PUBLISH_TOKEN"))
|
|
// }
|
|
} |