Practical3Gradle/build.gradle
simonkellet 2c02f7eef1 init
2022-09-27 08:58:00 +01:00

37 lines
1.2 KiB
Groovy
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*
* This file was generated by the Gradle 'init' task.
*
* This is a general purpose Gradle build.
* Learn more about Gradle by exploring our samples at https://docs.gradle.org/7.4.2/samples
*/
plugins {
id 'java'
}
sourceCompatibility = 11
// this tells Gradle where to find the dependencies
// mavenCentral has pretty much anything you're likely to want
repositories {
mavenCentral()
}
// "implementation" dependencies are needed by the program to run.
// "TestImplementation" dependencies are only needed when testing the program.
// Well come back to that shortly.
dependencies {
implementation group: 'com.github.spullara.cli-parser', name: 'cli-parser', version: '1.1.5'
implementation group: 'org.apache.commons', name: 'commons-math3', version: '3.0'
implementation group: 'com.opencsv', name: 'opencsv', version: '3.7'
testImplementation group: 'junit', name: 'junit', version: '4.13.2'
}
// this will gather up all the libraries and include them in the "build" jar
// so the program can be more easily run
jar {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
from {
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
}
}