代码拉取完成,页面将自动刷新
import java.text.SimpleDateFormat
plugins {
id 'java'
id 'scala'
id 'application'
id 'org.openjfx.javafxplugin' version '0.0.9'
// id 'com.gluonhq.client-gradle-plugin' version '0.1.36'
}
group 'cn.navigational'
version '1.0-SNAPSHOT'
mainClassName = 'cn.navigational.redisfx.Launcher'
//jvm args
applicationDefaultJvmArgs = ['-Dsun.java2d.opengl=true', '-XX:+UseZGC', '-Xms512M', '-Xmx1024M']
if (javafx.platform.classifier == 'linux') applicationDefaultJvmArgs.add("-Djdk.gtk.version=2")
javafx {
version = "15.0.1"
modules = ['javafx.controls', 'javafx.fxml', 'javafx.base', 'javafx.graphics']
}
//gluonClient {
// graalvmHome = '/home/yangkui/application/graalvm'
//}
//解决window乱码问题
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
}
tasks.withType(ScalaCompile) {
options.encoding = "UTF-8"
}
sourceSets {
main {
scala {
srcDirs = ['src/main/scala', 'src/main/java']
}
java {
srcDirs = []
}
}
test {
scala {
srcDirs = ['src/test/scala', 'src/test/java']
}
java {
srcDirs = []
}
}
}
jar {
from {
configurations.runtimeClasspath.collect {
if (!it.name.startsWith("javafx")) {
zipTree(it)
}
}
}
archiveFileName = "redisfx.jar"
manifest {
attributes 'Multi-Release': true
attributes 'Main-Class': mainClassName
attributes 'App-Name': rootProject.name
attributes "App-Version": project.version
attributes 'App-Author': '752544765@qq.com'
attributes 'App-Website': 'http://navigational.cn'
attributes 'Build-Time': new SimpleDateFormat().format(new Date())
attributes 'Copyright': 'Copyright © 2019-2020 navigational.cn'
}
}
repositories {
maven {
url "https://maven.aliyun.com/repository/google"
}
maven {
url "https://maven.aliyun.com/nexus/content/repositories/central"
}
maven {
url "https://maven.aliyun.com/nexus/content/groups/public/"
}
maven {
url "https://nexus.gluonhq.com/nexus/content/repositories/releases"
}
maven {
url "https://plugins.gradle.org/m2/"
}
jcenter()
mavenCentral()
}
dependencies {
implementation 'dom4j:dom4j:1.6.1'
implementation 'redis.clients:jedis:3.4.1'
implementation 'org.scala-lang:scala-library:2.13.1'
implementation 'org.controlsfx:controlsfx:11.0.3'
implementation 'org.slf4j:slf4j-api:2.0.0-alpha1'
implementation 'com.alibaba:fastjson:1.2.75'
implementation 'ch.qos.logback:logback-core:1.3.0-alpha5'
implementation 'ch.qos.logback:logback-classic:1.3.0-alpha5'
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。