Exit Full View

ToolApp / build.gradle

// toolapp (top-level)

buildscript {
    ext.kotlin_version = '1.4.10'
}


plugins {
    id 'org.jetbrains.kotlin.jvm' version "$kotlin_version"
    id 'org.openjfx.javafxplugin' version '0.0.9'
}

javafx {
    version = "13"
    modules = ['javafx.controls']
}

repositories {
    mavenCentral()
    jcenter()
    mavenLocal()
    /*
    maven {
        url "https://github.com/javaterminal/terminalfx/raw/master/releases"
        name "terminalfx"
    }
    */
    maven {
        // For dependency harbourfx hosted at gitlab.com/nickthecoder
        url "https://gitlab.com/api/v4/projects/11515658/packages/maven"
        name "harbourfx"
    }
    maven {
        // For dependency paratask hosted at gitlab.com/nickthecoder
        url "https://gitlab.com/api/v4/projects/9096904/packages/maven"
        name "paratask"
    }
    maven {
        // For dependency tedi hosted at gitlab.com/nickthecoder
        url "https://gitlab.com/api/v4/projects/9097181/packages/maven"
        name "tedi"
    }
}

subprojects {
    apply plugin: 'kotlin'
    apply plugin: 'maven'

    repositories {
        mavenCentral()
        jcenter()
        mavenLocal()
        /*
        maven {
            url "https://github.com/javaterminal/terminalfx/raw/master/releases"
            name "terminalfx"
        }
        */
        maven {
            // gitlab.com/nickthecoder/harbourfx
            url "https://gitlab.com/api/v4/projects/11515658/packages/maven"
            name "harbourfx"
        }
         maven {
            // gitlab.com/nickthecoder/paratask
            url "https://gitlab.com/api/v4/projects/9096904/packages/maven"
            name "paratask"
        }
         maven {
            // gitlab.com/nickthecoder/tedi
            url "https://gitlab.com/api/v4/projects/9097181/packages/maven"
            name "tedi"
        }

    }

}

apply plugin: 'idea'
apply plugin: 'application'
apply plugin: 'kotlin'

mainClassName = "uk.co.nickthecoder.toolapp.ToolAppKt"

defaultTasks 'install', 'installDist'

dependencies {
    compile project(':toolapp-core')
    // Comment out the following line, and also the line in settings.gradle to compile paratask without jediterm.
    compile project(':toolapp-terminalfx')
}

/*
task generateCompletion(type: Exec) {
    executable = 'build/install/toolapp/bin/toolapp'
    args = ['generateCompletion']
}
distTar.dependsOn generateCompletion
distZip.dependsOn generateCompletion
run.dependsOn generateCompletion
*/