Advertisement
Guest User

Untitled

a guest
Feb 19th, 2020
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.89 KB | None | 0 0
  1. plugins {
  2. id 'java'
  3.  
  4. id 'application'
  5.  
  6. id 'jacoco'
  7.  
  8. id 'com.github.sherter.google-java-format' version '0.8'
  9.  
  10. id 'org.openjfx.javafxplugin' version '0.0.8'
  11. }
  12.  
  13. run {
  14. applicationDefaultJvmArgs = ['--add-exports=javafx.graphics/com.sun.javafx.iio=ALL-UNNAMED',
  15. '--add-exports=javafx.graphics/com.sun.javafx.iio.common=ALL-UNNAMED',
  16. '--add-exports=javafx.graphics/com.sun.javafx.scene=ALL-UNNAMED',
  17. '--add-exports=javafx.graphics/com.sun.glass.ui=ALL-UNNAMED',
  18. ]
  19.  
  20. jvmArgs = ['--add-exports=javafx.graphics/com.sun.javafx.iio=ALL-UNNAMED',
  21. '--add-exports=javafx.graphics/com.sun.javafx.iio.common=ALL-UNNAMED',
  22. '--add-exports=javafx.graphics/com.sun.javafx.scene=ALL-UNNAMED',
  23. '--add-exports=javafx.graphics/com.sun.glass.ui=ALL-UNNAMED',
  24. ]
  25. }
  26.  
  27. javafx {
  28. modules = [ 'javafx.controls', 'javafx.fxml' ]
  29. }
  30.  
  31. repositories {
  32. jcenter()
  33. mavenCentral()
  34. }
  35.  
  36.  
  37.  
  38. dependencies {
  39. // https://mvnrepository.com/artifact/de.codecentric.centerdevice/javafxsvg
  40. compile group: 'de.codecentric.centerdevice', name: 'javafxsvg', version: '1.3.0'
  41.  
  42. // Use JUnit Jupiter Engine for testing.
  43. testImplementation 'org.junit.jupiter:junit-jupiter-api:5.5.1'
  44. testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.5.1'
  45. // Allow for JUnit 4 legacy
  46. testCompileOnly 'junit:junit:4.12'
  47. testRuntimeOnly 'org.junit.vintage:junit-vintage-engine:5.5.1'
  48. }
  49.  
  50. application {
  51. mainClassName = 'bfst20.tegneprogram.Main'
  52. }
  53.  
  54. compileJava.options.encoding = 'UTF-8'
  55.  
  56. test {
  57. useJUnitPlatform()
  58. }
  59.  
  60. jar {
  61. manifest {
  62. attributes 'Main-Class': application.mainClassName
  63. }
  64. from {
  65. configurations.compileClasspath.collect { it.isDirectory() ? it : zipTree(it) }
  66. }
  67. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement