build.gradle.kts 956 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. import org.gradle.api.JavaVersion.VERSION_1_8
  2. import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
  3. plugins {
  4. id("org.jetbrains.intellij") version "0.7.2"
  5. java
  6. kotlin("jvm") version "1.4.10"
  7. }
  8. group = "com.i2edu"
  9. version = "1.0-SNAPSHOT"
  10. repositories {
  11. mavenCentral()
  12. }
  13. configure<JavaPluginConvention> {
  14. sourceCompatibility = VERSION_1_8
  15. targetCompatibility = VERSION_1_8
  16. }
  17. dependencies {
  18. implementation(kotlin("stdlib"))
  19. testCompile("junit", "junit", "4.12")
  20. }
  21. // See https://github.com/JetBrains/gradle-intellij-plugin/
  22. intellij {
  23. version = "2020.3.1"
  24. }
  25. tasks {
  26. withType<KotlinCompile> {
  27. kotlinOptions {
  28. jvmTarget = "1.8"
  29. languageVersion = "1.4"
  30. apiVersion = "1.3"
  31. freeCompilerArgs = listOf("-Xjvm-default=enable")
  32. }
  33. }
  34. getByName<org.jetbrains.intellij.tasks.PatchPluginXmlTask>("patchPluginXml") {
  35. changeNotes("""""")
  36. }
  37. }