代码拉取完成,页面将自动刷新
buildscript {
ext.kotlin_version = "1.3.50"
ext.tornadofx_version = "1.7.19"
ext.junit_version = "5.1.0"
ext.jfinal_version = "4.6"
ext.druid_version = "1.1.20"
ext.mysql_version = "8.0.16"
ext.hutool_version = "5.0.1"
ext.log4j_version = "1.2.17"
repositories {
mavenLocal()
maven {url 'http://maven.aliyun.com/nexus/content/groups/public/'}
maven{ url 'http://maven.aliyun.com/nexus/content/repositories/jcenter'}
maven{ url 'https://oss.sonatype.org/content/repositories/snapshots'}
mavenCentral()
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
apply plugin: "kotlin"
apply plugin: "application"
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}
repositories {
mavenLocal()
maven {url 'http://maven.aliyun.com/nexus/content/groups/public/'}
maven{ url 'http://maven.aliyun.com/nexus/content/repositories/jcenter'}
mavenCentral()
maven {
url "https://oss.sonatype.org/content/repositories/snapshots/"
}
}
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
compile "no.tornado:tornadofx:$tornadofx_version"
compile "com.jfinal:jfinal:$jfinal_version"
compile "com.alibaba:druid:$druid_version"
compile("mysql:mysql-connector-java:$mysql_version")
compile("cn.hutool:hutool-all:$hutool_version")
compile("de.dynamicfiles.projects.gradle.plugins:javafx-gradle-plugin:8.8.2")
// compile("com.github.bkenn:kfoenix:0.1.3")
compile("no.tornado:tornadofx-controlsfx:0.1.1")
compile("log4j:log4j:$log4j_version")
//
// testCompile "org.junit.jupiter:junit-jupiter-api:$junit_version"
// testRuntime "org.junit.jupiter:junit-jupiter-engine:$junit_version"
}
//processResources {
// exclude { "**/*.*" }
//}
mainClassName = "com.cyy.app.MyApp"
jar {
manifest {
attributes(
"Class-Path": configurations.compile.collect { it.getName() }.join(" "),
"Main-Class": mainClassName
)
}
from(configurations.compile.collect { entry -> zipTree(entry) }) {
exclude "META-INF/MANIFEST.MF"
exclude "META-INF/*.SF"
exclude "META-INF/*.DSA"
exclude "META-INF/*.RSA"
}
}
//shadowJar{
// zip64 = true
//}
//task pack(type: Copy, dependsOn: [clean, installDist]) {
// sourceSets.main.resources.srcDirs.each {
// from it
// into "$buildDir/install/$rootProject.name/bin/resources"
// }
//}
//
/**
* 生成可执行jar
* 1. export JAVA_HOME=/soft/sss/jdk8
* 2. gradle jfxJar
*/
//jfx {
// appName = "Code_Generator"
//
// // 启动类
// mainClass = mainClassName
//
// // 公司名称
// vendor = 'cyy'
// jfxAppOutputDir = "/soft"
// jfxMainAppJarName = "Code_Generator.jar"
//
// // 启动画面
//// preLoader = 'xxx.xxx.XxxSplashScreen'
//
//}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。