-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
54 lines (44 loc) · 1.13 KB
/
build.gradle.kts
File metadata and controls
54 lines (44 loc) · 1.13 KB
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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
id("org.jetbrains.intellij") version "1.10.0"
kotlin("jvm") version "1.7.21"
id("org.jmailen.kotlinter") version "3.12.0"
}
// Corresponds to IDEA 2022.1, see KotlinVersion class in ideaIC/3rd-party-rt.jar
val kotlinVersion = "1.6.10"
val kotlinLanguageVersion = kotlinVersion.substringBeforeLast('.')
group = "dev.architectury"
version = "1.6.3"
repositories {
mavenCentral()
}
dependencies {
implementation(kotlin("stdlib", kotlinVersion))
}
// See https://github.com/JetBrains/gradle-intellij-plugin/
intellij {
version.set("2022.1")
plugins.set(listOf("java", "Kotlin"))
updateSinceUntilBuild.set(false)
}
tasks {
jar {
from("COPYING", "COPYING.LESSER")
}
withType<KotlinCompile> {
kotlinOptions.jvmTarget = "11"
kotlinOptions {
apiVersion = kotlinLanguageVersion
languageVersion = kotlinLanguageVersion
}
}
patchPluginXml {
sinceBuild.set("221")
}
}
kotlinter {
disabledRules = arrayOf(
"filename",
"argument-list-wrapping",
)
}