diff --git a/buildSrc/build.gradle.kts b/buildSrc/build.gradle.kts index 62c58995..4b2315db 100644 --- a/buildSrc/build.gradle.kts +++ b/buildSrc/build.gradle.kts @@ -10,7 +10,7 @@ repositories { dependencies { implementation("com.diffplug.spotless:spotless-plugin-gradle:6.25.0") - implementation("org.ow2.asm:asm:8.0.1") + implementation("org.ow2.asm:asm:9.7") implementation("org.springframework.boot:spring-boot-gradle-plugin:3.3.1") implementation("io.spring.gradle:dependency-management-plugin:1.1.5") implementation("org.hibernate.orm:hibernate-gradle-plugin:6.5.2.Final") diff --git a/buildSrc/src/main/java/org/gradle/transform/javamodules/ExtraModuleInfoTransform.java b/buildSrc/src/main/java/org/gradle/transform/javamodules/ExtraModuleInfoTransform.java index 7c21d189..36f82018 100644 --- a/buildSrc/src/main/java/org/gradle/transform/javamodules/ExtraModuleInfoTransform.java +++ b/buildSrc/src/main/java/org/gradle/transform/javamodules/ExtraModuleInfoTransform.java @@ -62,7 +62,7 @@ private static void copyEntries(JarInputStream inputStream, JarOutputStream outp private static byte[] addModuleInfo(ModuleInfo moduleInfo) { ClassWriter classWriter = new ClassWriter(0); - classWriter.visit(Opcodes.V9, Opcodes.ACC_MODULE, "module-info", null, null, null); + classWriter.visit(Opcodes.V21, Opcodes.ACC_MODULE, "module-info", null, null, null); ModuleVisitor moduleVisitor = classWriter.visitModule(moduleInfo.getModuleName(), Opcodes.ACC_OPEN, moduleInfo.getModuleVersion()); for (String packageName : moduleInfo.getExports()) { moduleVisitor.visitExport(packageName.replace('.', '/'), 0);