mirai/frontend/mirai-console-graphical/build.gradle.kts

73 lines
2.1 KiB
Plaintext
Raw Normal View History

2021-05-25 12:13:43 +08:00
/*
* Copyright 2019-2021 Mamoe Technologies and contributors.
*
* 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version 3 许可证的约束, 可以在以下链接找到该许可证.
* Use of this source code is governed by the GNU AGPLv3 license that can be found through the following link.
*
* https://github.com/mamoe/mirai/blob/master/LICENSE
*/
plugins {
id("kotlinx-serialization")
2020-03-28 21:12:48 +08:00
id("org.openjfx.javafxplugin") version "0.0.8"
id("kotlin")
id("java")
2020-03-29 15:58:35 +08:00
`maven-publish`
}
2020-03-28 17:04:14 +08:00
javafx {
version = "13.0.2"
modules = listOf("javafx.controls")
//mainClassName = "Application"
}
apply(plugin = "com.github.johnrengelman.shadow")
2020-03-24 18:02:19 +08:00
2020-03-29 15:58:35 +08:00
/*
2020-03-05 09:29:13 +08:00
tasks.withType<com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar>() {
manifest {
attributes["Main-Class"] = "net.mamoe.mirai.console.graphical.MiraiGraphicalLoader"
}
}
2020-03-29 15:58:35 +08:00
*/
2020-03-29 23:34:25 +08:00
version = Versions.Mirai.consoleGraphical
2020-03-05 09:29:13 +08:00
2020-05-10 14:22:33 +08:00
description = "Graphical frontend for mirai-console"
2020-03-05 09:29:13 +08:00
dependencies {
2020-06-20 22:55:07 +08:00
compileOnly("net.mamoe:mirai-core:${Versions.core}")
2020-03-30 23:34:05 +08:00
implementation(project(":mirai-console"))
2020-02-28 20:13:25 +08:00
api(group = "no.tornado", name = "tornadofx", version = "1.7.19")
2020-03-28 17:04:14 +08:00
api(group = "com.jfoenix", name = "jfoenix", version = "9.0.8")
2020-03-17 21:57:39 +08:00
2020-03-30 17:27:44 +08:00
testApi(project(":mirai-console"))
2020-06-20 22:55:07 +08:00
testApi(kotlinx("coroutines-core", Versions.coroutines))
2020-03-17 21:57:39 +08:00
testApi(group = "org.yaml", name = "snakeyaml", version = "1.25")
2020-06-20 22:55:07 +08:00
testApi("net.mamoe:mirai-core:${Versions.core}")
testApi("net.mamoe:mirai-core-qqandroid:${Versions.core}")
}
2020-05-11 13:17:58 +08:00
kotlin {
sourceSets {
all {
languageSettings.useExperimentalAnnotation("kotlin.Experimental")
2020-06-21 00:47:52 +08:00
languageSettings.useExperimentalAnnotation("kotlin.RequiresOptIn")
2020-05-11 13:17:58 +08:00
languageSettings.progressiveMode = true
languageSettings.useExperimentalAnnotation("net.mamoe.mirai.utils.MiraiInternalAPI")
}
}
}
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
kotlinOptions.jvmTarget = "1.8"
2020-03-05 09:29:13 +08:00
}
2020-03-29 15:58:35 +08:00
@Suppress("DEPRECATION")
val sourcesJar by tasks.registering(Jar::class) {
classifier = "sources"
from(sourceSets.main.get().allSource)
}