mirror of
https://github.com/Mestima/ZomboidModsCopier.git
synced 2025-12-16 00:29:42 +00:00
Initial commit
This commit is contained in:
69
build.gradle
Normal file
69
build.gradle
Normal file
@ -0,0 +1,69 @@
|
||||
plugins {
|
||||
id 'java'
|
||||
id 'application'
|
||||
id 'org.jetbrains.kotlin.jvm' version '1.5.31'
|
||||
id 'org.openjfx.javafxplugin' version '0.0.10'
|
||||
id 'org.beryx.jlink' version '2.24.1'
|
||||
id 'org.javamodularity.moduleplugin' version '1.8.10'
|
||||
}
|
||||
|
||||
group 'me.mestima'
|
||||
version '1.0'
|
||||
mainClassName = 'me.mestima.zomboidmodscopier.ZomboidCopierKt'
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
}
|
||||
|
||||
sourceCompatibility = '11'
|
||||
targetCompatibility = '11'
|
||||
|
||||
tasks.withType(JavaCompile) {
|
||||
options.encoding = 'UTF-8'
|
||||
}
|
||||
|
||||
application {
|
||||
mainModule = 'me.mestima.zomboidmodscopier'
|
||||
mainClass = "$mainClassName"
|
||||
}
|
||||
|
||||
[compileKotlin, compileTestKotlin].forEach {
|
||||
it.kotlinOptions {
|
||||
jvmTarget = '1.8'
|
||||
}
|
||||
}
|
||||
|
||||
jar {
|
||||
duplicatesStrategy = 'include'
|
||||
manifest {
|
||||
attributes 'Main-Class': "$mainClassName"
|
||||
}
|
||||
from {
|
||||
configurations.compileClasspath.collect { it.isDirectory() ? it : zipTree(it) }
|
||||
}
|
||||
}
|
||||
|
||||
javafx {
|
||||
version = '11.0.2'
|
||||
modules = ['javafx.controls', 'javafx.fxml']
|
||||
}
|
||||
|
||||
dependencies {
|
||||
testImplementation('org.testng:testng:7.4.0')
|
||||
}
|
||||
|
||||
test {
|
||||
useTestNG()
|
||||
}
|
||||
|
||||
jlink {
|
||||
imageZip = project.file("${buildDir}/distributions/app-${javafx.platform.classifier}.zip")
|
||||
options = ['--strip-debug', '--compress', '2', '--no-header-files', '--no-man-pages']
|
||||
launcher {
|
||||
name = 'app'
|
||||
}
|
||||
}
|
||||
|
||||
jlinkZip {
|
||||
group = 'distribution'
|
||||
}
|
||||
Reference in New Issue
Block a user