Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions api/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,11 @@ if (canSign) {
sign publishing.publications.Release
}
}

jar {
manifest {
attributes(
'Automatic-Module-Name': 'opus.java.api'
)
}
}
2 changes: 1 addition & 1 deletion api/src/main/java/club/minnced/opus/util/NativeUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public static void loadLibraryFromJar(String path) throws IOException {
int readBytes;

// Open and check input stream
InputStream is = NativeUtil.class.getResourceAsStream(path);
InputStream is = NativeUtil.class.getClassLoader().getResourceAsStream(path.replaceFirst("/", ""));
if (is == null) {
throw new FileNotFoundException("File " + path + " was not found inside JAR.");
}
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ plugins {
}

group = 'club.minnced'
project.version = '1.1.1'
project.version = '1.1.2'

def getProjectProperty(String name) { return project.properties.getOrDefault(name, null) }

Expand Down
8 changes: 8 additions & 0 deletions natives/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,12 @@ if (canSign) {
signing {
sign publishing.publications.Release
}
}

jar {
manifest {
attributes(
'Automatic-Module-Name': 'opus.java.natives'
)
}
}