jnetperf/build.gradle

49 lines
1.4 KiB
Groovy

/*
* This file was generated by the Gradle 'init' task.
*
* This generated file contains a sample Java application project to get you started.
* For more details take a look at the 'Building Java & JVM projects' chapter in the Gradle
* User Manual available at https://docs.gradle.org/8.1.1/userguide/building_java_projects.html
*/
plugins {
// Apply the groovy plugin to also add support for Groovy (needed for Spock)
id 'groovy'
// Apply the application plugin to add support for building a CLI application in Java.
id 'application'
}
repositories {
// Use Maven Central for resolving dependencies.
mavenCentral()
}
dependencies {
testImplementation 'org.codehaus.groovy:groovy:3.0.13'
testImplementation 'org.spockframework:spock-core:2.2-groovy-3.0'
testImplementation 'junit:junit:4.13.2'
implementation 'org.slf4j:slf4j-api:2.0.7'
implementation 'ch.qos.logback:logback-classic:1.3.8'
implementation 'info.picocli:picocli:4.7.4'
annotationProcessor 'info.picocli:picocli-codegen:4.7.4'
}
// Apply a specific Java toolchain to ease working on different environments.
java {
toolchain {
languageVersion = JavaLanguageVersion.of(11)
}
}
application {
// Define the main class for the application.
mainClass = 'biz.nellemann.jperf.App'
}
tasks.named('test') {
// Use JUnit Platform for unit tests.
useJUnitPlatform()
}