summaryrefslogtreecommitdiff
path: root/build.gradle.kts
diff options
context:
space:
mode:
authorLinnea Gräf <nea@nea.moe>2024-04-30 00:12:27 +0200
committerLinnea Gräf <nea@nea.moe>2024-04-30 00:12:27 +0200
commitb51321b27fdf513a3de09d084bbd4e69a26fb76e (patch)
tree873c433cc96e382321736fe0bcb4e2948789ced6 /build.gradle.kts
parent37d5b9ce0acf6eb25162c097990983f388ec3a19 (diff)
downloadnealisp-b51321b27fdf513a3de09d084bbd4e69a26fb76e.tar.gz
nealisp-b51321b27fdf513a3de09d084bbd4e69a26fb76e.tar.bz2
nealisp-b51321b27fdf513a3de09d084bbd4e69a26fb76e.zip
Add lists
Diffstat (limited to 'build.gradle.kts')
-rw-r--r--build.gradle.kts51
1 files changed, 26 insertions, 25 deletions
diff --git a/build.gradle.kts b/build.gradle.kts
index c0e28f1..5bfff26 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -3,42 +3,43 @@ group = "moe.nea"
version = "1.0.0"
repositories { mavenCentral() }
java.toolchain { languageVersion.set(JavaLanguageVersion.of(8)) }
+java.withSourcesJar()
sourceSets.main { java.setSrcDirs(listOf("src/")); resources.setSrcDirs(listOf("res")) }
sourceSets.test { java.setSrcDirs(listOf("test/src")); resources.setSrcDirs(listOf("test/res")) }
publishing {
- publications {
- create<MavenPublication>("maven") {
- from(components["java"])
- }
- }
+ publications {
+ create<MavenPublication>("maven") {
+ from(components["java"])
+ }
+ }
}
val testReportFile = layout.buildDirectory.file("test-results/nealisp/results.xml")
tasks.create("testLisps", JavaExec::class) {
- javaLauncher.set(javaToolchains.launcherFor(java.toolchain))
- classpath(sourceSets.test.get().runtimeClasspath)
- mainClass.set("TestMain")
- dependsOn(tasks.testClasses)
- dependsOn(tasks.processTestResources)
- outputs.file(testReportFile)
- systemProperty("test.report", testReportFile.map { it.asFile.absolutePath }.get())
- systemProperty("test.suites", "test")
- systemProperty("test.imports", "secondary")
- group = "verification"
+ javaLauncher.set(javaToolchains.launcherFor(java.toolchain))
+ classpath(sourceSets.test.get().runtimeClasspath)
+ mainClass.set("TestMain")
+ dependsOn(tasks.testClasses)
+ dependsOn(tasks.processTestResources)
+ outputs.file(testReportFile)
+ systemProperty("test.report", testReportFile.map { it.asFile.absolutePath }.get())
+ systemProperty("test.suites", "test")
+ systemProperty("test.imports", "secondary")
+ group = "verification"
}
tasks.create("testLispsHtml", Exec::class) {
- dependsOn("testLisps")
- executable("xunit-viewer")
- inputs.file(testReportFile)
- val testReportHtmlFile = layout.buildDirectory.file("reports/nealisp/tests/index.html")
- outputs.file(testReportHtmlFile)
- args(
- "-r", testReportFile.map { it.asFile.absolutePath }.get(),
- "-o", testReportHtmlFile.map { it.asFile.absolutePath }.get()
- )
- group = "verification"
+ dependsOn("testLisps")
+ executable("xunit-viewer")
+ inputs.file(testReportFile)
+ val testReportHtmlFile = layout.buildDirectory.file("reports/nealisp/tests/index.html")
+ outputs.file(testReportHtmlFile)
+ args(
+ "-r", testReportFile.map { it.asFile.absolutePath }.get(),
+ "-o", testReportHtmlFile.map { it.asFile.absolutePath }.get()
+ )
+ group = "verification"
}