Last active
June 14, 2022 02:19
-
-
Save khayyamsaleem/34625047711df121bceee72c07d6e3de to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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