Darklaf - A themeable swing Look and Feel based on Darcula-Laf
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.
 
 
 
 

37 lines
871 B

import com.github.vlsi.gradle.crlf.CrLfSpec
import com.github.vlsi.gradle.crlf.LineEndings
plugins {
`java-library`
`module-info-compile`
id("com.github.vlsi.crlf")
}
configure<ModuleInfoExtension> {
version = JavaVersion.VERSION_11
extraArgs = listOf(
"--add-exports",
"java.desktop/sun.awt=darklaf.compatibility"
)
stubModule("darklaf.core")
}
dependencies {
implementation(projects.darklafUtils)
implementation(projects.darklafPlatformBase)
}
fun Jar.includeLicenses() {
CrLfSpec(LineEndings.LF).run {
into("META-INF") {
filteringCharset = "UTF-8"
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
textFrom("$rootDir/licenses/INTELLIJ_LICENSE.txt")
textFrom("$rootDir/licenses/INTELLIJ_NOTICE.txt")
}
}
}
tasks.jar {
includeLicenses()
}