2023-11-25 06:43:52 +00:00
|
|
|
/*
|
|
|
|
* 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"
|
|
|
|
|
2024-12-29 14:46:01 +00:00
|
|
|
sourceCompatibility = JavaVersion.VERSION_17
|
|
|
|
targetCompatibility = JavaVersion.VERSION_17
|
2023-11-25 06:43:52 +00:00
|
|
|
|
|
|
|
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/"
|
|
|
|
}
|