Add Automatic-Module-Name to pgpainless-core and pgpainless-sop

This commit is contained in:
Paul Schaub 2024-03-19 15:51:09 +01:00
parent 265f72d99f
commit 337b5d68b6
Signed by: vanitasvitae
GPG Key ID: 62BEE9264BF17311
2 changed files with 14 additions and 0 deletions

View File

@ -27,3 +27,10 @@ dependencies {
// @Nullable, @Nonnull annotations
implementation "com.google.code.findbugs:jsr305:3.0.2"
}
// https://docs.gradle.org/current/userguide/java_library_plugin.html#sec:java_library_modular_auto
tasks.named('jar') {
manifest {
attributes('Automatic-Module-Name': 'org.pgpainless.core')
}
}

View File

@ -34,3 +34,10 @@ test {
useJUnitPlatform()
environment("test.implementation", "sop.testsuite.pgpainless.PGPainlessSopInstanceFactory")
}
// https://docs.gradle.org/current/userguide/java_library_plugin.html#sec:java_library_modular_auto
tasks.named('jar') {
manifest {
attributes('Automatic-Module-Name': 'org.pgpainless.sop')
}
}