-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle.kts
51 lines (44 loc) · 1.22 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
/*
* This file was generated by the Gradle 'init' task.
*/
plugins {
id("com.diffplug.spotless") version "6.12.0"
id("org.jetbrains.kotlin.jvm") version "1.9.22"
id("org.jlleitschuh.gradle.ktlint") version "11.2.0"
id("org.jetbrains.dokka") version "1.9.10"
id("info.novatec.cbdg") version "3.0-SNAPSHOT"
}
repositories {
mavenLocal()
mavenCentral()
}
group = "info.novatec"
version = "3.0-SNAPSHOT"
description = "cbdg-gradle-test"
java.sourceCompatibility = JavaVersion.VERSION_17
dependencies {
implementation("org.freemarker:freemarker:2.3.32")
dokkaHtmlPlugin("org.jetbrains.dokka:kotlin-as-java-plugin:1.7.20")
}
tasks.named("build") {
dependsOn("spotlessApply")
dependsOn("generate")
}
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
kotlinOptions {
freeCompilerArgs = listOf("-Xjsr305=strict")
jvmTarget = "17"
}
}
configure<com.diffplug.gradle.spotless.SpotlessExtension> {
kotlin {
target("**/*.kt")
ktlint()
}
kotlinGradle {
target("*.gradle.kts")
ktlint()
}
}
// Configure the extension
// the<info.novatec.cbdg.plugin.CamundaBpmnDocumentationGeneratorConfiguration>().message.set("Hi from Gradle")