Skip to content

Commit

Permalink
Some fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Штенгауэр Никита Дмитриевич committed Dec 24, 2024
1 parent 2fa1fbb commit 61b10d7
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
projectName=grapl
version=2.3.7
version=2.3.8

# Versions
kotlinVersion=2.0.0
Expand Down
2 changes: 1 addition & 1 deletion gradle/addons/kotlin-module-info.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class ModuleInfoPlugin implements Plugin<Project> {
ClassWriter classWriter = new ClassWriter(0)
classWriter.visit(Opcodes.V9, Opcodes.ACC_MODULE, "module-info", null, null, null)

ModuleVisitor moduleVisitor = classWriter.visitModule(config.name.get(), 0, null)
ModuleVisitor moduleVisitor = classWriter.visitModule(config.name.get(), Opcodes.ACC_OPEN, null)
moduleVisitor.visitRequire("java.base", 0, null)

config.requires.get().forEach {
Expand Down
2 changes: 1 addition & 1 deletion modules/core/kotlin/com/huskerdev/grapl/GraplInfo.kt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ package com.huskerdev.grapl
// Generated with gradle
class GraplInfo {
companion object {
const val VERSION = "2.3.7"
const val VERSION = "2.3.8"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ abstract class Platform {
val tmpFile = File(System.getProperty("java.io.tmpdir"), fileName)
try {
FileOutputStream(tmpFile).use {
this::class.java.getResourceAsStream(path)!!.copyTo(it)
ClassLoader.getSystemResource(path).openStream().copyTo(it)
}
}catch (e: Exception){
e.printStackTrace()
Expand All @@ -70,7 +70,7 @@ abstract class Platform {
) {
val fileName = current.specifyLibName("$baseName-$version")
val path = classpath.replace(".", "/")
loadLibraryFromResources("/$path/${os.shortName}/$fileName")
loadLibraryFromResources("$path/${os.shortName}/$fileName")
}

init {
Expand Down

0 comments on commit 61b10d7

Please sign in to comment.