diff --git a/core/build.gradle.kts b/core/build.gradle.kts index 409e3679..d0cc8151 100644 --- a/core/build.gradle.kts +++ b/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" diff --git a/licenses/NOTICE.txt b/licenses/INTELLIJ_NOTICE.txt similarity index 100% rename from licenses/NOTICE.txt rename to licenses/INTELLIJ_NOTICE.txt diff --git a/native-utils/build.gradle.kts b/native-utils/build.gradle.kts index 4314b20a..48c13fe4 100644 --- a/native-utils/build.gradle.kts +++ b/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")