You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Practical3Gradle/build.gradle

37 lines
1.2 KiB

2 years ago
/*
* 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.
// We’ll 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) }
}
}