From 556051dc9a538546323fdb0625b61a076de23213 Mon Sep 17 00:00:00 2001 From: Kosma Moczek Date: Sun, 29 May 2022 12:35:53 +0200 Subject: [PATCH] build.gradle: workaround for Shadow not supporting Java 19 classes --- build.gradle | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/build.gradle b/build.gradle index f8877613..b8e6ac94 100644 --- a/build.gradle +++ b/build.gradle @@ -1,3 +1,16 @@ +// Workaround for Shadow not supporting Java 19 classes. +// Remove this once Shadow updates. +// See: https://github.com/johnrengelman/shadow/pull/770 +// See: https://discord.com/channels/722722769950998560/793019909055578113/978939925061857315 +buildscript { + configurations.all { + resolutionStrategy { + force("org.ow2.asm:asm:9.3") + force("org.ow2.asm:asm-commons:9.3") + } + } +} + plugins { id "com.github.johnrengelman.shadow" version "7.1.0" id 'java'