代码拉取完成,页面将自动刷新
同步操作将从 dromara/RedisFront 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
@file:Suppress("UNCHECKED_CAST", "PLATFORM_CLASS_MAPPED_TO_KOTLIN")
import groovy.lang.Closure
import io.github.fvarrui.javapackager.gradle.PackagePluginExtension
import io.github.fvarrui.javapackager.gradle.PackageTask
import io.github.fvarrui.javapackager.model.*
import io.github.fvarrui.javapackager.model.Platform
import org.gradle.api.tasks.testing.logging.TestExceptionFormat
import java.lang.Boolean
import java.time.LocalDateTime
import java.time.format.DateTimeFormatter
import kotlin.RuntimeException
import kotlin.String
import kotlin.Suppress
import kotlin.to
plugins {
`java-library`
}
val javaHome: String = System.getProperty("java.home")
val appName: String = "RedisFront"
buildscript {
repositories {
maven("https://maven.aliyun.com/repository/public/")
mavenLocal()
mavenCentral()
dependencies {
classpath("io.github.fvarrui:javapackager:1.6.7")
}
}
}
plugins.apply("io.github.fvarrui.javapackager.plugin")
val releaseVersion = "1.0.0"
val developmentVersion = "1.0.0.B"
version = if (Boolean.getBoolean("release")) releaseVersion else developmentVersion
val flatlafVersion = "2.4"
val hutoolVersion = "5.8.3"
val fifesoftVersion = "3.2.0"
val derbyVersion = "10.15.2.0"
val lettuceVersion = "6.2.0.RELEASE"
val logbackVersion = "1.2.11"
val fatJar: kotlin.Boolean = false
val requireModules = listOf(
"java.desktop",
"java.prefs",
"java.base",
"java.logging",
"java.sql",
"java.naming"
)
val currentJdk = File(javaHome)
if (JavaVersion.current() < JavaVersion.VERSION_17)
throw RuntimeException("compile required Java ${JavaVersion.VERSION_17}, current Java ${JavaVersion.current()}")
val dateTimeFormatter: DateTimeFormatter = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss")
println()
println("-------------------------------------------------------------------------------")
println("$name Version: $version")
println("Project Path: $projectDir")
println("Java Version: ${System.getProperty("java.version")}")
println("Gradle Version: ${gradle.gradleVersion} at ${gradle.gradleHomeDir}")
println("Current Date: ${LocalDateTime.now().format(dateTimeFormatter)}")
println("-------------------------------------------------------------------------------")
println()
dependencies {
testImplementation("org.junit.jupiter:junit-jupiter-api:5.9.0")
testImplementation("org.junit.jupiter:junit-jupiter-params:5.9.0")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.9.0")
implementation("io.lettuce:lettuce-core:${lettuceVersion}")
implementation("io.netty:netty-common:4.1.79.Final")
implementation("com.formdev:flatlaf:${flatlafVersion}")
implementation("org.jfree:jfreechart:1.5.3")
implementation("com.formdev:flatlaf-swingx:${flatlafVersion}")
implementation("com.formdev:flatlaf-intellij-themes:${flatlafVersion}")
implementation("com.formdev:flatlaf-extras:${flatlafVersion}")
implementation("cn.hutool:hutool-extra:${hutoolVersion}")
implementation("cn.hutool:hutool-json:${hutoolVersion}")
implementation("org.apache.derby:derby:${derbyVersion}")
implementation("com.fifesoft:rsyntaxtextarea:${fifesoftVersion}")
implementation("com.fifesoft:rstaui:${fifesoftVersion}")
implementation("ch.qos.logback:logback-classic:${logbackVersion}")
implementation("at.swimmesberger:swingx-core:1.6.8")
implementation("com.jgoodies:jgoodies-forms:1.9.0")
implementation("commons-net:commons-net:3.8.0")
implementation("org.bouncycastle:bcpkix-jdk15on:1.70")
implementation("org.bouncycastle:bcprov-jdk15on:1.70")
implementation("com.intellij:forms_rt:7.0.3")
implementation("com.jcraft:jsch:0.1.55")
}
tasks.test {
useJUnitPlatform()
testLogging.exceptionFormat = TestExceptionFormat.FULL
}
tasks.compileJava {
sourceCompatibility = "17"
targetCompatibility = "17"
options.encoding = "utf-8"
options.isDeprecation = false
}
tasks.jar {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
manifest {
attributes("Main-Class" to "com.redisfront.RedisFrontApplication")
attributes("Implementation-Vendor" to "www.redisfront.com")
attributes("Implementation-Copyright" to "redisfront")
attributes("Implementation-Version" to project.version)
attributes("Multi-Release" to "true")
}
exclude("module-info.class")
exclude("META-INF/versions/*/module-info.class")
exclude("META-INF/*.SF")
exclude("META-INF/*.DSA")
exclude("META-INF/*.LIST")
exclude("META-INF/*.factories")
if (fatJar) {
from({
configurations.runtimeClasspath.get()
.filter { it.name.endsWith("jar") }
.map {
zipTree(it).matching {
exclude("META-INF/LICENSE")
}
}
})
}
from("${rootDir}/LICENSE") {
into("META-INF")
}
}
configure<PackagePluginExtension> {
mainClass("com.redisfront.RedisFrontApplication")
packagingJdk(currentJdk)
bundleJre(true)
customizedJre(true)
modules(requireModules)
jreDirectoryName("runtimes")
}
val setupLanguageMap = LinkedHashMap<String,String>()
setupLanguageMap["Chinese"] = "compiler:Languages\\ChineseSimplified.isl"
setupLanguageMap["English"] = "compiler:Default.isl"
tasks.register<PackageTask>("packageForWindows") {
description = "package For Windows"
platform = Platform.windows
isCreateZipball = false
winConfig(closureOf<WindowsConfig> {
icoFile = getIconFile("redisfront.ico")
headerType = HeaderType.gui
setupLanguages = setupLanguageMap
isDisableDirPage = false
isDisableFinishedPage = false
isDisableWelcomePage = false
isGenerateSetup = true
isCreateZipball = true
isGenerateMsi = false
isGenerateMsm = false
} as Closure<WindowsConfig>)
dependsOn(tasks.build)
}
tasks.register<PackageTask>("packageForLinux") {
description = "package For Linux"
platform = Platform.linux
linuxConfig(
closureOf<LinuxConfig> {
pngFile = getIconFile("redisfront.png")
isGenerateRpm = true
isCreateTarball=true
isGenerateInstaller=true
categories = listOf("Office")
} as Closure<LinuxConfig>
)
dependsOn(tasks.build)
}
tasks.register<PackageTask>("packageForMac") {
description = "package For Mac"
platform = Platform.mac
macConfig(
closureOf<MacConfig> {
icnsFile = getIconFile("redisfront.icns")
isGenerateDmg = true
macStartup = MacStartup.X86_64
} as Closure<MacConfig>
)
dependsOn(tasks.build)
}
fun getIconFile(fileName: String): File {
return File(projectDir.absolutePath + File.separator + "assets" + File.separator + fileName)
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。