plugins { // Tell Gradle that we are builing java as a library (non-executable piece of code intended for use by other applications). id 'java' id 'java-library' } repositories { // Specify the repository mirror that we want to download our dependencies from. JCentral is configured by default when creating a new Gradle project. jcenter() } dependencies { // Download JUnit so that we can use it in our tests. testImplementation 'org.junit.jupiter:junit-jupiter-api:5.7.2' testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.7.2' testRuntimeOnly "org.junit.platform:junit-platform-commons:1.7.0" } test { // For running our tests, use the test runner provided by JUnit. useJUnitPlatform() }