build.gradle.kts 1000 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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.3.72"
  7. }
  8. group = "com.i2edu"
  9. version = "1.0"
  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. setPlugins("Dart:203.6912", "io.flutter:52.1.5")
  25. }
  26. tasks {
  27. withType<KotlinCompile> {
  28. kotlinOptions {
  29. jvmTarget = "1.8"
  30. languageVersion = "1.4"
  31. apiVersion = "1.3"
  32. freeCompilerArgs = listOf("-Xjvm-default=enable")
  33. }
  34. }
  35. getByName<org.jetbrains.intellij.tasks.PatchPluginXmlTask>("patchPluginXml") {
  36. changeNotes("""""")
  37. }
  38. }