chore: Project structure
This commit is contained in:
parent
948de3de02
commit
4054ed5fce
9 changed files with 511 additions and 2 deletions
41
build.gradle.kts
Normal file
41
build.gradle.kts
Normal file
|
@ -0,0 +1,41 @@
|
|||
plugins {
|
||||
kotlin("jvm") version "2.1.10"
|
||||
}
|
||||
|
||||
group = "be.ugent.logprog"
|
||||
version = "0.1-SNAPSHOT"
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
}
|
||||
|
||||
dependencies {
|
||||
testImplementation(kotlin("test"))
|
||||
}
|
||||
|
||||
sourceSets {
|
||||
getByName("main") {
|
||||
kotlin.srcDir("src")
|
||||
}
|
||||
getByName("test") {
|
||||
kotlin.srcDir("tests")
|
||||
}
|
||||
}
|
||||
|
||||
tasks {
|
||||
withType<Jar> {
|
||||
manifest {
|
||||
attributes["Main-Class"] = "MainKt"
|
||||
}
|
||||
from(configurations.runtimeClasspath.get().map {
|
||||
if (it.isDirectory) it else zipTree(it)
|
||||
})
|
||||
}
|
||||
|
||||
test {
|
||||
useJUnitPlatform()
|
||||
testLogging {
|
||||
events("passed", "skipped", "failed")
|
||||
}
|
||||
}
|
||||
}
|
Reference in a new issue