Browse Source

Ensure licenses are included in the jar.

pull/188/head
weisj 5 years ago
parent
commit
2016816e34
  1. 15
      core/build.gradle.kts
  2. 0
      licenses/INTELLIJ_NOTICE.txt
  3. 5
      native-utils/build.gradle.kts

15
core/build.gradle.kts

@ -1,3 +1,6 @@
import com.github.vlsi.gradle.crlf.CrLfSpec
import com.github.vlsi.gradle.crlf.LineEndings
plugins {
`java-library`
id("com.github.vlsi.crlf")
@ -27,6 +30,18 @@ tasks.test {
workingDir.mkdirs()
}
tasks.jar {
CrLfSpec(LineEndings.LF).run {
into("META-INF") {
filteringCharset = "UTF-8"
textFrom("$rootDir/licenses/DARCULA_LICENSE.txt")
textFrom("$rootDir/licenses/INTELLIJ_LICENSE.txt")
textFrom("$rootDir/licenses/INTELLIJ_NOTICE.txt")
textFrom("$rootDir/licenses/PBJAR_LICENSE.txt")
}
}
}
val makeDocumentation by tasks.registering(JavaExec::class) {
group = "Development"
description = "Builds the documentation"

0
licenses/NOTICE.txt → licenses/INTELLIJ_NOTICE.txt

5
native-utils/build.gradle.kts

@ -1,9 +1,12 @@
import com.github.vlsi.gradle.crlf.CrLfSpec
import com.github.vlsi.gradle.crlf.LineEndings
plugins {
`java-library`
}
tasks.jar {
com.github.vlsi.gradle.crlf.CrLfSpec(com.github.vlsi.gradle.crlf.LineEndings.LF).run {
CrLfSpec(LineEndings.LF).run {
into("META-INF") {
filteringCharset = "UTF-8"
textFrom("$rootDir/licenses/NATIVEUTIL_LICENSE.txt")

Loading…
Cancel
Save