forked from avisi-cloud/structurizr-site-generatr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
94 lines (73 loc) · 2.71 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
plugins {
kotlin("jvm") version "2.0.0"
kotlin("plugin.serialization") version "2.0.0"
application
}
description = "Structurizr Site Generatr"
group = "cloud.avisi"
version = project.properties["projectVersion"] ?: "0.0.0-SNAPSHOT"
repositories {
mavenCentral()
}
dependencies {
implementation(platform("org.jetbrains.kotlin:kotlin-bom"))
implementation("org.jetbrains.kotlin:kotlin-stdlib")
implementation("org.jetbrains.kotlinx:kotlinx-cli:0.3.6")
implementation("org.eclipse.jgit:org.eclipse.jgit:6.10.0.202406032230-r")
implementation("com.structurizr:structurizr-core:2.1.3")
implementation("com.structurizr:structurizr-dsl:2.1.3")
implementation("com.structurizr:structurizr-export:2.1.3")
implementation("net.sourceforge.plantuml:plantuml:1.2024.5")
implementation("com.vladsch.flexmark:flexmark-all:0.64.8")
implementation("org.asciidoctor:asciidoctorj:2.5.13")
implementation("org.jsoup:jsoup:1.17.2")
implementation("org.jetbrains.kotlinx:kotlinx-html-jvm:0.11.0")
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.7.0")
implementation("org.eclipse.jetty:jetty-server:12.0.10")
implementation("org.eclipse.jetty.websocket:jetty-websocket-jetty-server:12.0.10")
runtimeOnly("org.slf4j:slf4j-simple:2.0.13")
runtimeOnly("org.jetbrains.kotlin:kotlin-scripting-jsr223:2.0.0")
runtimeOnly("org.codehaus.groovy:groovy-jsr223:3.0.21")
runtimeOnly("org.jruby:jruby-core:9.4.7.0")
testImplementation(kotlin("test"))
testImplementation("org.junit.jupiter:junit-jupiter-params")
testImplementation("com.willowtreeapps.assertk:assertk-jvm:0.28.1")
}
application {
mainClass.set("nl.avisi.structurizr.site.generatr.AppKt")
}
kotlin {
jvmToolchain(21)
compilerOptions {
jvmTarget.set(JvmTarget.JVM_17)
}
}
java {
targetCompatibility = JavaVersion.VERSION_17
}
tasks {
processResources {
from("package.json")
}
test {
useJUnitPlatform()
}
jar {
manifest {
attributes["Implementation-Title"] = project.description
attributes["Implementation-Version"] = project.version
}
}
startScripts {
// This is a workaround for an issue with the generated .bat file,
// reported in https://github.com/avisi-cloud/structurizr-site-generatr/issues/463.
// Instead of listing each and every .jar file in the lib directory, we just use a
// wildcard to include everything in the lib directory in the classpath.
classpath = files("lib/*")
}
withType<Tar> {
archiveExtension.set("tar.gz")
compression = Compression.GZIP
}
}