/* * This file contains a sample Java application project. */ plugins { // Apply the application plugin to add support for building a CLI application in Java. id 'application' } repositories { // Maven Central for core dependencies mavenCentral() } version = '1.0.0' group = "com.elitemastereric" archivesBaseName = "helloworld" sourceCompatibility = JavaVersion.VERSION_17 targetCompatibility = JavaVersion.VERSION_17 dependencies { implementation "com.google.guava:guava:21.0" } application { // Define the main class for the application. mainClass = 'com.elitemastereric.helloworld.Launch' } jar { manifest { // Define main class for use with java -jar attributes( 'Main-Class': application.mainClass ) } } task buildAndCopy(type: Copy) { group 'build' dependsOn 'assemble' from "build/libs/" into "../run/" }