Slackbot
02/05/2023, 3:36 PMVampire
02/05/2023, 4:07 PMChad Hogg
02/05/2023, 4:08 PMVampire
02/05/2023, 4:09 PMChad Hogg
02/05/2023, 4:09 PMChad Hogg
02/05/2023, 4:10 PMplugins {
// This subproject will be an application.
id 'application'
}
repositories {
// We will be able to find dependencies here.
mavenCentral()
}
dependencies {
// This subproject will be using the musearchtools library (another subproject).
implementation project(':musearchtools')
// This subproject will be using the jsoup library.
implementation 'org.jsoup:jsoup:1.15.3'
// The tests for this application will use JUnit 4.
testImplementation 'junit:junit:4.13.2'
}
application {
mainClass = 'edu.millersville.csci406.spring2023.CrawlerMain'
}
jar {
manifest {
attributes {
'Main-Class': application.mainClass
}
}
}Chad Hogg
02/05/2023, 4:10 PMVampire
02/05/2023, 4:11 PMapplication plugin that can build you a proper distribution.Vampire
02/05/2023, 4:12 PMjar block and use the tasks of the application plugin like distTar or distZip to create a distributable archive with your code, your dependencies, and generated start scripts that properly run your applicationChad Hogg
02/05/2023, 4:12 PMVampire
02/05/2023, 4:13 PMVampire
02/05/2023, 4:14 PMVampire
02/05/2023, 4:14 PMattributes 🙂Chad Hogg
02/05/2023, 4:16 PM(./gradlew :mucrawer:run 2>&1) | tee crawler.log and with the parenthesis I am capturing all of the output that I want.Vampire
02/05/2023, 6:10 PM