forked from acejump/AceJump
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
executable file
·58 lines (48 loc) · 1.32 KB
/
build.gradle.kts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
import org.jetbrains.gradle.ext.GradleTask
import org.jetbrains.gradle.ext.ProjectSettings
import org.jetbrains.intellij.tasks.RunIdeTask
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
tasks {
withType<KotlinCompile> {
kotlinOptions.jvmTarget = JavaVersion.VERSION_1_8.toString()
kotlinOptions.freeCompilerArgs += "-progressive"
}
named("buildPlugin") { dependsOn("test") }
withType<RunIdeTask> {
dependsOn("test")
findProperty("luginDev")?.let { args = listOf(projectDir.absolutePath) }
}
withType<Zip> {
archiveFileName.set("AceJump.zip")
}
}
plugins {
idea apply true
kotlin("jvm") version "1.3.41"
id("org.jetbrains.intellij") version "0.4.10"
id("org.jetbrains.gradle.plugin.idea-ext") version "0.3" apply true
}
idea.project {
(this as ExtensionAware)
configure<ProjectSettings> {
runConfigurations {
create<org.jetbrains.gradle.ext.Application>("Run AceJump") {
beforeRun.create<GradleTask>("runIde") {
task = tasks.getByPath("runIde")
}
}
}
}
}
dependencies {
// gradle-intellij-plugin doesn't attach sources properly for Kotlin :(
compileOnly(kotlin("stdlib-jdk8"))
}
repositories.mavenCentral()
intellij {
pluginName = "AceJump"
updateSinceUntilBuild = false
setPlugins("java")
}
group = "org.acejump"
version = "3.6.0"