Skip to content

Commit 6934f5a

Browse files
committed
Add automatic module name
1 parent d953a8f commit 6934f5a

File tree

4 files changed

+24
-0
lines changed

4 files changed

+24
-0
lines changed

api/build.gradle.kts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,12 @@ tasks.named<JavaCompile>("compileJava") {
2727
options.release.set(8)
2828
}
2929

30+
tasks.jar {
31+
manifest {
32+
attributes("Automatic-Module-Name" to "discord.zstd.java.api")
33+
}
34+
}
35+
3036
registerPublication(
3137
name = fullProjectName,
3238
description = "Core of the Zstandard streaming decompression API for JVM Discord API wrappers",

ffm-impl/build.gradle.kts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,12 @@ tasks.withType<Test> {
5151
}
5252
}
5353

54+
tasks.jar {
55+
manifest {
56+
attributes("Automatic-Module-Name" to "discord.zstd.java.ffm.impl")
57+
}
58+
}
59+
5460
registerPublication(
5561
name = fullProjectName,
5662
description = "Zstandard streaming decompression API for JVM Discord API wrappers using the Foreign Function & Memory API",

jni-impl/build.gradle.kts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,12 @@ tasks.withType<Test> {
5050
}
5151
}
5252

53+
tasks.jar {
54+
manifest {
55+
attributes("Automatic-Module-Name" to "discord.zstd.java.jni.impl")
56+
}
57+
}
58+
5359
registerPublication(
5460
name = fullProjectName,
5561
description = "Zstandard streaming decompression API for JVM Discord API wrappers using Java Native Interface (JNI)",

natives/build.gradle.kts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,12 @@ tasks.named<JavaCompile>("compileJava") {
2020
options.release.set(8)
2121
}
2222

23+
tasks.jar {
24+
manifest {
25+
attributes("Automatic-Module-Name" to "discord.zstd.java.natives")
26+
}
27+
}
28+
2329
registerPublication(
2430
name = fullProjectName,
2531
description = "Minimal Zstandard decompression natives for JVM Discord API wrappers",

0 commit comments

Comments
 (0)