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")
|
2024-03-14 03:30:15 +00:00
|
|
|
}
|
|
|
|
|
2024-03-14 03:34:25 +00:00
|
|
|
tasks.register<JavaExec>("runPerformanceAnalyze")
|
2024-03-14 03:30:15 +00:00
|
|
|
tasks.named<JavaExec>("runPerformanceAnalyze") {
|
|
|
|
dependsOn("testClasses")
|
|
|
|
group = "verification"
|
|
|
|
classpath = sourceSets.test.get().runtimeClasspath
|
|
|
|
mainClass.set("com.cleverthis.interview.PerformanceAnalyze")
|
2024-03-14 03:34:25 +00:00
|
|
|
jvmArgs("-Dfast=true")
|
2024-03-12 07:18:46 +00:00
|
|
|
}
|