Suggest a feature
×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Text
Posted by: usere4d07
Added: Nov 19, 2019 10:11 PM
Modified: Oct 3, 2020 9:22 PM
Views: 152
Tags: no tags
  1. plugins {
  2.     id "java"
  3.     id "org.jetbrains.kotlin.jvm" version "1.3.71"
  4.     id "org.openjfx.javafxplugin" version "0.0.8"
  5.     id "org.beryx.jlink" version "2.16.2"
  6.     id "application"
  7. }
  8.  
  9. javafx {
  10.     version = "13"
  11.     modules = ["javafx.controls", "javafx.fxml", "javafx.graphics"]
  12. }
  13.  
  14. group "prsv"
  15. version "1.0-SNAPSHOT"
  16.  
  17. repositories {
  18.     mavenLocal()
  19.     mavenCentral()
  20.     jcenter()
  21. }
  22.  
  23. test {
  24.     useJUnitPlatform()
  25. }
  26.  
  27. dependencies {
  28.     implementation "org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.61"
  29.     implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
  30.     implementation "org.simpleframework:simple-xml:2.7.1"
  31.     implementation "org.apache.poi:poi:4.1.0"
  32.     implementation "com.luckycatlabs:SunriseSunsetCalculator:1.2"
  33.     implementation "net.time4j:time4j-calendar:4.38"
  34.     implementation "commons-net:commons-net:3.6"
  35.     implementation "ch.qos.logback:logback-classic:1.2.3"
  36.     implementation "eu.hansolo:tilesfx:11.25"
  37.     implementation "org.kordamp.jsilhouette:jsilhouette-javafx:0.3.0"
  38.     implementation "org.kordamp.ikonli:ikonli-swing:11.3.4"
  39.     implementation "org.controlsfx:controlsfx:11.0.0"
  40.     implementation "com.google.code.gson:gson:2.8.6"
  41.     implementation "com.jfoenix:jfoenix:9.0.8"
  42.     implementation "com.jidesoft:jidefx-fields:0.9.1"
  43.  
  44.     compile "org.controlsfx:controlsfx:8.40.12"
  45.  
  46.     testImplementation "org.junit.jupiter:junit-jupiter-api:5.4.0"
  47.     testRuntime "org.junit.jupiter:junit-jupiter-engine:5.4.0"
  48.  
  49.     testCompile "org.testfx:testfx-core:4.0.16-alpha"
  50. }
  51.  
  52. compileJava {
  53.     sourceCompatibility = JavaVersion.VERSION_11
  54.     targetCompatibility = JavaVersion.VERSION_11
  55. }
  56.  
  57. compileKotlin {
  58.     kotlinOptions.jvmTarget = "11"
  59.     sourceCompatibility = 11
  60.     targetCompatibility = 11
  61. }
  62. compileTestKotlin {
  63.     kotlinOptions.jvmTarget = "11"
  64. }
  65.  
  66. application {
  67.     mainClassName = "prsv.view.StartUI"
  68.     applicationDefaultJvmArgs = [
  69.             "--add-opens=javafx.base/com.sun.javafx.runtime=ALL-UNNAMED",
  70.             "--add-exports=javafx.base/com.sun.javafx.event=ALL-UNNAMED",
  71.             "--add-exports=javafx.base/com.sun.javafx.binding=ALL-UNNAMED",
  72.             "--add-opens=javafx.base/com.sun.javafx.collections=ALL-UNNAMED",
  73.             "--add-opens=javafx.graphics/com.sun.javafx.css=ALL-UNNAMED",
  74.             "--add-opens=javafx.graphics/com.sun.javafx.scene=ALL-UNNAMED",
  75.             "--add-exports=javafx.graphics/com.sun.javafx.stage=ALL-UNNAMED",
  76.             "--add-opens=javafx.graphics/com.sun.javafx.scene.traversal=ALL-UNNAMED",
  77.             "--add-opens=javafx.graphics/javafx.scene=ALL-UNNAMED",
  78.             "--add-opens=javafx.controls/com.sun.javafx.scene.control=ALL-UNNAMED",
  79.             "--add-opens=javafx.controls/com.sun.javafx.scene.control.behavior=ALL-UNNAMED",
  80.             "--add-opens=javafx.controls/javafx.scene.control.skin=ALL-UNNAMED"
  81.     ]
  82. }
  83.  
  84. jar {
  85.    manifest {
  86.        attributes "Main-Class": "prsv.view.StartUIKt"
  87.    }
  88.  
  89.    from {
  90.        configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
  91.    }
  92. }