diff --git a/common/build.gradle b/common/build.gradle index 127831b37..9bfaa1702 100644 --- a/common/build.gradle +++ b/common/build.gradle @@ -13,6 +13,12 @@ dependencies { compile 'commons-io:commons-io:2.6' } +jar { + manifest { + attributes('Automatic-Module-Name':'com.sedmelluq.lava.common') + } +} + task sourceJar(type: Jar) { from sourceSets.main.allJava } diff --git a/main/build.gradle b/main/build.gradle index 940f391b9..be971d387 100644 --- a/main/build.gradle +++ b/main/build.gradle @@ -40,6 +40,9 @@ dependencies { jar { exclude("natives") + manifest { + attributes('Automatic-Module-Name':'com.sedmelluq.lavaplayer') + } } task updateVersion { diff --git a/natives/build.gradle b/natives/build.gradle index 7398de1e6..d3dfe39c2 100644 --- a/natives/build.gradle +++ b/natives/build.gradle @@ -17,6 +17,12 @@ ext.vorbisVersion = '1.3.6' ext.sampleRateVersion = '0.1.9' ext.fdkAacVersion = '2.0.0' +jar { + manifest { + attributes('Automatic-Module-Name':'com.sedmelluq.lavaplayer.natives') + } +} + task load { doLast { if (!file("$projectDir/samplerate/src").exists()) { def downloadPath = "$buildDir/tmp/libsamplerate.tar.gz"