build.gradle.kts 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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 = "2.0"
  10. repositories {
  11. mavenCentral()
  12. maven { url = uri("https://jitpack.io") }
  13. maven { url = uri("https://cache-redirector.jetbrains.com/jetbrains.bintray.com/intellij-plugin-service") }
  14. maven { url = uri("https://cache-redirector.jetbrains.com/repo1.maven.org/maven2") }
  15. maven { url = uri("https://cache-redirector.jetbrains.com/jcenter.bintray.com") }
  16. }
  17. configure<JavaPluginConvention> {
  18. sourceCompatibility = VERSION_1_8
  19. targetCompatibility = VERSION_1_8
  20. }
  21. dependencies {
  22. implementation(kotlin("stdlib"))
  23. testCompile("junit", "junit", "4.12")
  24. }
  25. // See https://github.com/JetBrains/gradle-intellij-plugin/
  26. intellij {
  27. version = "2021.1"
  28. setPlugins("Dart:211.7233", "io.flutter:56.0.5")
  29. }
  30. tasks {
  31. withType<KotlinCompile> {
  32. kotlinOptions {
  33. jvmTarget = "1.8"
  34. languageVersion = "1.4"
  35. apiVersion = "1.3"
  36. freeCompilerArgs = listOf("-Xjvm-default=enable")
  37. }
  38. }
  39. getByName<org.jetbrains.intellij.tasks.PatchPluginXmlTask>("patchPluginXml") {
  40. changeNotes("""""")
  41. }
  42. }