You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

68 lines
2.5 KiB

/*
* Copyright 2016 straightway
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
val runtimeLib by configurations.creating
plugins {
id("org.openjfx.javafxplugin")
}
javafx {
version = "${project.properties["straightway.odo.version.javafx"]}"
modules = listOf(
"javafx.controls",
"javafx.graphics",
"javafx.media",
"javafx.fxml",
"javafx.swing",
"javafx.web")
}
dependencies {
implementation(project(":compiler"))
implementation(project(":crypto"))
implementation(project(":odo.api"))
implementation(project(":odo.api.common"))
implementation(project(":odo.api.meta"))
implementation(project(":odo.content"))
implementation(project(":odo.cloud"))
implementation("${project.properties["straightway.odo.lib.tornadofx"]}")
implementation("${project.properties["straightway.odo.lib.kotlinx-coroutines-core"]}")
testImplementation(project(":odo.testing"))
testImplementation(project(":utils"))
val javafxVersion = "${project.properties["straightway.odo.version.javafx"]}"
runtimeLib(project(":odo.api"))
runtimeLib(project(":odo.api.desktop"))
runtimeLib(project(":odo.boot"))
runtimeLib(project(":odo.kernel"))
runtimeLib("${project.properties["straightway.odo.lib.javafx-media"]}:$javafxVersion")
runtimeLib("${project.properties["straightway.odo.lib.javafx-fxml"]}:$javafxVersion")
runtimeLib("${project.properties["straightway.odo.lib.javafx-swing"]}:$javafxVersion")
runtimeLib("${project.properties["straightway.odo.lib.javafx-web"]}:$javafxVersion")
runtimeLib("${project.properties["straightway.odo.lib.tornadofx"]}")
runtimeLib("${project.properties["straightway.odo.lib.kotlinx-coroutines-core"]}")
runtimeLib("${project.properties["straightway.odo.lib.kotlinx-coroutines-jdk8"]}")
}
val copyRuntimeLibs = tasks.register<Copy>("copyRuntimeLibs") {
from(runtimeLib)
into("$buildDir/runtimeLibs")
}
tasks.named<Task>("build") {
dependsOn(copyRuntimeLibs)
}