-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle.kts
72 lines (63 loc) · 1.72 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
71
72
/*
* This file was generated by the Gradle 'init' task.
*/
plugins {
java
`maven-publish`
`java-gradle-plugin`
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"
}
repositories {
mavenLocal()
mavenCentral()
}
group = "info.novatec"
version = "3.0-SNAPSHOT"
description = "camunda-bpmn-documentation-generator"
java.sourceCompatibility = JavaVersion.VERSION_17
dependencies {
implementation("org.camunda.bpm.model:camunda-bpmn-model:7.18.0")
implementation("org.freemarker:freemarker:2.3.32")
implementation("org.slf4j:slf4j-api:2.0.7")
dokkaHtmlPlugin("org.jetbrains.dokka:kotlin-as-java-plugin:1.9.10")
testImplementation("org.junit.jupiter:junit-jupiter-api:5.10.1")
testImplementation("org.junit.jupiter:junit-jupiter-engine:5.10.1")
}
publishing {
publications.create<MavenPublication>("maven") {
from(components["java"])
}
}
tasks.named("build") {
dependsOn("spotlessApply")
}
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
kotlinOptions {
freeCompilerArgs = listOf("-Xjsr305=strict")
jvmTarget = "17"
}
}
tasks.withType<Test> {
useJUnitPlatform()
}
configure<com.diffplug.gradle.spotless.SpotlessExtension> {
kotlin {
target("**/*.kt")
ktlint()
}
kotlinGradle {
target("*.gradle.kts")
ktlint()
}
}
gradlePlugin {
plugins {
create("CamundaBpmnDocumentationGenerator") {
id = "info.novatec.cbdg"
implementationClass = "info.novatec.cbdg.plugin.CamundaBpmnDocumentationGenerator"
}
}
}