Skip to content

Instantly share code, notes, and snippets.

@khayyamsaleem
Last active June 14, 2022 02:19
Show Gist options
  • Save khayyamsaleem/34625047711df121bceee72c07d6e3de to your computer and use it in GitHub Desktop.
Save khayyamsaleem/34625047711df121bceee72c07d6e3de to your computer and use it in GitHub Desktop.
plugins {
// 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 {
// Use JUnit Jupiter for testing.
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.2'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.2'
}
sourceSets {
main {
java {
srcDirs = ['src/']
}
resources {
srcDirs = ['src/resources/']
}
}
test {
java {
srcDirs = ['tst/']
}
resources {
srcDirs = ['tst/resources/']
}
}
}
application {
// Define the main class for the application.
mainClass = 'com.bloomtech.App'
}
test {
// Use JUnit Platform for unit tests.
useJUnitPlatform()
// Show test results.
testLogging {
events "passed", "skipped", "failed"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment