HelloWorldFabric/app/build.gradle

46 lines
879 B
Groovy
Raw Normal View History

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"
sourceCompatibility = JavaVersion.VERSION_16
targetCompatibility = JavaVersion.VERSION_16
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/"
}