padlock-solver/build.gradle.kts

43 lines
1.1 KiB
Plaintext
Raw Normal View History

import java.io.FileOutputStream
2024-03-12 07:18:46 +00:00
plugins {
id("java")
}
group = "com.cleverthis.interview"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
}
dependencies {
implementation(project(":padlock-impl"))
2024-03-13 03:20:16 +00:00
// if you ever need import more dependencies, following this format:
// implementation("group-id:project-id:version")
// just like the logback classic
// implementation("ch.qos.logback:logback-classic:1.5.3")
2024-03-12 07:18:46 +00:00
testImplementation(platform("org.junit:junit-bom:5.9.1"))
testImplementation("org.junit.jupiter:junit-jupiter")
}
java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
tasks.test {
useJUnitPlatform()
2024-03-13 09:34:11 +00:00
jvmArgs = listOf("-Dfast=true")
}
tasks.register<JavaExec>("runPerformanceAnalyze")
tasks.named<JavaExec>("runPerformanceAnalyze") {
dependsOn("testClasses")
group = "verification"
classpath = sourceSets.test.get().runtimeClasspath
mainClass.set("com.cleverthis.interview.PerformanceAnalyze")
jvmArgs("-Dfast=true")
standardOutput = FileOutputStream("performance.txt")
2024-03-12 07:18:46 +00:00
}