Skip to content
Snippets Groups Projects
Select Git revision
  • 67d1269db964a12a178deee8305c11db1122b917
  • main default protected
2 results

build.gradle

Blame
  • Forked from NAVES Guyslain / sort-template
    1 commit ahead of the upstream repository.
    user avatar
    Guyslain authored
    7c981adf
    History
    Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    build.gradle 1.50 KiB
    plugins {
        id 'java'
        id 'application'
        id 'org.openjfx.javafxplugin' version '0.0.13'
        id 'org.beryx.jlink' version '2.25.0'
    }
    
    group 'fr.univamu'
    version '1.0-SNAPSHOT'
    
    repositories {
        mavenCentral()
    }
    
    ext {
        junitVersion = '5.8.2'
    }
    
    sourceCompatibility = '20'
    targetCompatibility = '20'
    
    tasks.withType(JavaCompile) {
        options.encoding = 'UTF-8'
    }
    
    application {
        mainModule = 'fr.univamu.sortvisualization'
        mainClass = 'fr.univamu.sortvisualization.Application'
    }
    
    task runInConsole(type: JavaExec) {
        group = "application"
        classpath = sourceSets.main.runtimeClasspath
        mainClass = 'fr.univamu.sorting.App'
    }
    
    javafx {
        version = '20.0.2'
        modules = ['javafx.controls', 'javafx.fxml']
    }
    
    dependencies {
        testImplementation 'org.assertj:assertj-core:3.23.1'
        testImplementation("org.junit.jupiter:junit-jupiter-api:${junitVersion}")
        testImplementation 'org.junit.jupiter:junit-jupiter:5.8.1'
        testImplementation 'org.junit.jupiter:junit-jupiter:5.8.1'
        testImplementation 'org.junit.jupiter:junit-jupiter:5.8.1'
        testImplementation 'org.junit.jupiter:junit-jupiter:5.8.1'
        testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:${junitVersion}")
    }
    
    test {
        useJUnitPlatform()
    }
    
    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'
    }