|
|
|
@ -1,11 +1,12 @@
|
|
|
|
|
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
|
|
|
|
|
|
|
|
|
plugins {
|
|
|
|
|
id("java")
|
|
|
|
|
id("org.jetbrains.kotlin.jvm") version "1.3.72"
|
|
|
|
|
id("org.jetbrains.intellij") version "0.4.18"
|
|
|
|
|
id("java") // Compiles Java source files
|
|
|
|
|
id("org.jetbrains.kotlin.jvm") version "1.3.72" // Kotlin plugins for Gradle
|
|
|
|
|
id("org.jetbrains.intellij") version "0.4.18" // gradle-intellij-plugin
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Import variables from gradle.properties file
|
|
|
|
|
val pluginGroup: String by project
|
|
|
|
|
val pluginName: String by project
|
|
|
|
|
val pluginVersion: String by project
|
|
|
|
@ -16,6 +17,7 @@ val sources: String by project
|
|
|
|
|
group = pluginGroup
|
|
|
|
|
version = pluginVersion
|
|
|
|
|
|
|
|
|
|
// Set the compatibility versions to 1.8
|
|
|
|
|
tasks.withType<JavaCompile> {
|
|
|
|
|
sourceCompatibility = "1.8"
|
|
|
|
|
targetCompatibility = "1.8"
|
|
|
|
@ -26,16 +28,15 @@ listOf("compileKotlin", "compileTestKotlin").forEach {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Configure project's dependencies
|
|
|
|
|
repositories {
|
|
|
|
|
mavenCentral()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
|
implementation(kotlin("stdlib-jdk8"))
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// https://github.com/JetBrains/gradle-intellij-plugin
|
|
|
|
|
|
|
|
|
|
// Configure gradle-intellij-plugin plugin. Read more: https://github.com/JetBrains/gradle-intellij-plugin
|
|
|
|
|
intellij {
|
|
|
|
|
pluginName = pluginName
|
|
|
|
|
version = ideaVersion
|
|
|
|
|