ImageTagger/img-ui/build.gradle

69 lines
1.6 KiB
Groovy
Raw Normal View History

2024-03-19 12:11:11 +00:00
plugins {
id 'java'
id 'application'
id 'org.jetbrains.kotlin.jvm' version '1.8.22'
id 'org.javamodularity.moduleplugin' version '1.8.12'
id 'org.openjfx.javafxplugin' version '0.0.13'
id 'org.beryx.jlink' version '2.25.0'
}
group 'com.nuculabs.dev'
2024-03-27 21:38:41 +00:00
version '1.1'
2024-03-19 12:11:11 +00:00
repositories {
mavenCentral()
}
ext {
junitVersion = '5.10.0'
}
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
application {
2024-03-23 21:20:19 +00:00
mainModule = 'dev.nuculabs.imagetagger.ui'
mainClass = 'dev.nuculabs.imagetagger.ui.MainPage'
2024-03-19 12:11:11 +00:00
}
kotlin {
jvmToolchain( 17 )
}
javafx {
version = '21'
modules = ['javafx.controls', 'javafx.fxml']
}
dependencies {
2024-03-30 11:08:15 +00:00
implementation(project(":img-ai"))
2024-03-19 12:11:11 +00:00
implementation('org.controlsfx:controlsfx:11.1.2')
implementation('com.dlsc.formsfx:formsfx-core:11.6.0') {
exclude(group: 'org.openjfx')
}
implementation('net.synedra:validatorfx:0.4.0') {
exclude(group: 'org.openjfx')
}
implementation('org.kordamp.ikonli:ikonli-javafx:12.3.1')
2024-03-23 14:15:23 +00:00
implementation('org.kordamp.ikonli:ikonli-fontawesome5-pack:12.3.1')
2024-03-22 20:28:43 +00:00
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.8.1-Beta")
2024-03-19 12:11:11 +00:00
testImplementation("org.junit.jupiter:junit-jupiter-api:${junitVersion}")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:${junitVersion}")
}
test {
2024-03-19 19:53:06 +00:00
useJUnitPlatform()
}
2024-03-19 12:11:11 +00:00
jlink {
2024-03-27 21:53:34 +00:00
imageZip = project.file("${buildDir}/distributions/ImageTagger-${javafx.platform.classifier}-${version}.zip")
2024-03-19 12:11:11 +00:00
options = ['--strip-debug', '--compress', '2', '--no-header-files', '--no-man-pages']
launcher {
2024-03-23 20:07:33 +00:00
name = 'ImageTagger'
2024-03-19 12:11:11 +00:00
}
}
jlinkZip {
group = 'distribution'
}