-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
113 lines (92 loc) · 3.46 KB
/
Copy pathbuild.gradle.kts
File metadata and controls
113 lines (92 loc) · 3.46 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
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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
import org.jetbrains.compose.desktop.application.dsl.TargetFormat
plugins {
kotlin("jvm") version "1.9.22"
id("org.jetbrains.compose") version "1.6.2"
jacoco
}
group = "org.team11.bdsm.graphs"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
maven("https://maven.pkg.jetbrains.space/public/p/compose/dev")
maven("https://raw.github.com/gephi/gephi/mvn-thirdparty-repo/")
google()
}
val exposedVersion = "0.50.1"
val sqliteJdbcVersion = "3.41.2.2"
dependencies {
implementation(compose.desktop.currentOs)
implementation(kotlin("reflect"))
// JetBrains Exposed
implementation("org.jetbrains.exposed:exposed-core:$exposedVersion")
implementation("org.jetbrains.exposed:exposed-dao:$exposedVersion")
implementation("org.jetbrains.exposed:exposed-jdbc:$exposedVersion")
// SQLite JDBC
implementation("org.xerial:sqlite-jdbc:$sqliteJdbcVersion")
// Logging
implementation("org.slf4j", "slf4j-simple", "2.0.13")
// File Picker
implementation("com.darkrockstudios:mpfilepicker:3.1.0")
implementation("org.gephi", "gephi-toolkit", "0.10.1", classifier = "all")
testImplementation("org.jetbrains.kotlin:kotlin-test")
testImplementation("org.jetbrains.kotlinx:kotlinx-coroutines-test:1.8.1")
testImplementation("org.jetbrains.kotlinx:kotlinx-coroutines-test")
testImplementation("io.mockk:mockk:1.13.11")
// JUnit 5
testImplementation("org.junit.jupiter:junit-jupiter-api:5.10.2")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.10.2")
testImplementation("org.junit.vintage:junit-vintage-engine:5.10.2")
// Compose UI Test
testImplementation("org.jetbrains.compose.ui:ui-test-junit4:1.6.2")
// Test Containers
testImplementation("org.junit.jupiter:junit-jupiter:5.8.1")
testImplementation("org.testcontainers:testcontainers:1.19.8")
testImplementation("org.testcontainers:junit-jupiter:1.19.8")
}
tasks.withType<Test> {
useJUnitPlatform()
systemProperty("java.awt.headless", "false")
// hides warning of the mockk testing library
jvmArgs("-XX:+EnableDynamicAgentLoading", "-Djdk.instrument.traceUsage")
}
tasks.test {
testLogging {
events("skipped", "failed")
afterSuite(
// spell
KotlinClosure2({ desc: TestDescriptor, result: TestResult ->
// Only execute on the outermost suite
if (desc.parent == null) {
println(" **** Result: ${result.resultType} ****")
println(" > Tests: ${result.testCount}")
println(" > Passed: ${result.successfulTestCount}")
println(" > Failed: ${result.failedTestCount}")
println(" > Skipped: ${result.skippedTestCount}")
}
}),
)
}
reports {
junitXml.required = true
}
finalizedBy(tasks.jacocoTestReport)
}
tasks.named<JacocoReport>("jacocoTestReport") {
dependsOn(tasks.test)
reports {
csv.required = true
xml.required = false
html.outputLocation = layout.buildDirectory.dir("jacocoHtml")
}
}
compose.desktop {
application {
mainClass = "MainKt"
nativeDistributions {
targetFormats(TargetFormat.Dmg, TargetFormat.Msi, TargetFormat.Deb)
modules("java.compiler", "java.instrument" , "java.sql", "jdk.unsupported")
packageName = "GraphsTeam11"
packageVersion = "1.0.0"
}
}
}