-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
70 lines (60 loc) · 1.63 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
59
60
61
62
63
64
65
66
67
68
69
70
import org.jlleitschuh.gradle.ktlint.reporter.ReporterType
plugins {
`java-gradle-plugin`
`maven-publish`
id("com.gradle.plugin-publish") version "1.2.1"
id("org.jetbrains.kotlin.jvm") version "1.9.25"
id("org.jlleitschuh.gradle.ktlint") version "12.1.1"
}
group = "no.item.xp.plugin"
version = "2.6.2"
kotlin {
jvmToolchain(11)
}
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(11))
}
}
repositories {
mavenCentral()
}
dependencies {
implementation(platform("org.jetbrains.kotlin:kotlin-bom"))
implementation("org.jetbrains.kotlin:kotlin-stdlib")
implementation("io.arrow-kt:arrow-core:1.2.4")
testImplementation("org.junit.jupiter:junit-jupiter:5.10.3")
testImplementation("org.jetbrains.kotlin:kotlin-test")
testImplementation("org.jetbrains.kotlin:kotlin-test-junit5")
}
gradlePlugin {
website.set("https://item.no")
vcsUrl.set("https://github.com/ItemConsulting/xp-codegen-plugin")
plugins {
create("codegen") {
id = "no.item.xp.codegen"
implementationClass = "no.item.xp.plugin.GenerateCodePlugin"
displayName = "Enonic XP Code Generation"
description = "Plugin for generating code based on XMLs in Enonic XP 7"
tags.set(listOf("enonic", "xp", "codegen", "typescript", "javascript", "jsdoc"))
}
}
}
tasks.withType<Test>().configureEach {
useJUnitPlatform()
}
tasks.withType<Javadoc>().all {
enabled = false
}
ktlint {
debug.set(false)
verbose.set(true)
android.set(false)
outputToConsole.set(true)
outputColorName.set("RED")
ignoreFailures.set(true)
reporters {
reporter(ReporterType.PLAIN)
reporter(ReporterType.CHECKSTYLE)
}
}