Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- plugins {
- id 'java'
- id 'application'
- id 'jacoco'
- id 'com.github.sherter.google-java-format' version '0.8'
- id 'org.openjfx.javafxplugin' version '0.0.8'
- }
- run {
- applicationDefaultJvmArgs = ['--add-exports=javafx.graphics/com.sun.javafx.iio=ALL-UNNAMED',
- '--add-exports=javafx.graphics/com.sun.javafx.iio.common=ALL-UNNAMED',
- '--add-exports=javafx.graphics/com.sun.javafx.scene=ALL-UNNAMED',
- '--add-exports=javafx.graphics/com.sun.glass.ui=ALL-UNNAMED',
- ]
- jvmArgs = ['--add-exports=javafx.graphics/com.sun.javafx.iio=ALL-UNNAMED',
- '--add-exports=javafx.graphics/com.sun.javafx.iio.common=ALL-UNNAMED',
- '--add-exports=javafx.graphics/com.sun.javafx.scene=ALL-UNNAMED',
- '--add-exports=javafx.graphics/com.sun.glass.ui=ALL-UNNAMED',
- ]
- }
- javafx {
- modules = [ 'javafx.controls', 'javafx.fxml' ]
- }
- repositories {
- jcenter()
- mavenCentral()
- }
- dependencies {
- // https://mvnrepository.com/artifact/de.codecentric.centerdevice/javafxsvg
- compile group: 'de.codecentric.centerdevice', name: 'javafxsvg', version: '1.3.0'
- // Use JUnit Jupiter Engine for testing.
- testImplementation 'org.junit.jupiter:junit-jupiter-api:5.5.1'
- testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.5.1'
- // Allow for JUnit 4 legacy
- testCompileOnly 'junit:junit:4.12'
- testRuntimeOnly 'org.junit.vintage:junit-vintage-engine:5.5.1'
- }
- application {
- mainClassName = 'bfst20.tegneprogram.Main'
- }
- compileJava.options.encoding = 'UTF-8'
- test {
- useJUnitPlatform()
- }
- jar {
- manifest {
- attributes 'Main-Class': application.mainClassName
- }
- from {
- configurations.compileClasspath.collect { it.isDirectory() ? it : zipTree(it) }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement