This commit refactors the project structure by moving generator-related classes to a new package (`com.sdk.generators.actionmodels`) and standardizing template directory names (`src/main/resources/templates`). It introduces new FreeMarker templates (`actionDTO.ftl`, `actionDTO.extend.ftl`) and corresponding logic in `GeneratorServices.java` to support the generation of Data Transfer Object (DTO) classes alongside ActionBeans. The changes also involve enhancements related to `ActionField` and `DTOField` generation. Updates to `build.gradle.kts`, `plugin.xml`, and Gradle wrapper files reflect these structural and functional enhancements.
61 lines
1.3 KiB
Plaintext
61 lines
1.3 KiB
Plaintext
plugins {
|
|
id("java")
|
|
id("org.jetbrains.kotlin.jvm") version "2.1.0"
|
|
id("org.jetbrains.intellij.platform") version "2.7.0"
|
|
}
|
|
|
|
group = "com.sdk.generators.actionmodels"
|
|
version = "1.0.4"
|
|
|
|
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"))
|
|
// }
|
|
} |