From 2b64a30ae69a2c2876b1bd58b6091992367a9dca Mon Sep 17 00:00:00 2001 From: Chetan Gudisagar Date: Thu, 2 Nov 2023 17:57:56 -0700 Subject: [PATCH] try sourcesets fix --- gradle/java.gradle | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/gradle/java.gradle b/gradle/java.gradle index 8825368a..4658106f 100644 --- a/gradle/java.gradle +++ b/gradle/java.gradle @@ -8,6 +8,15 @@ java { withSourcesJar() } +sourceSets.all { + configurations.getByName(runtimeClasspathConfigurationName) { + attributes.attribute(Attribute.of("org.gradle.jvm.environment", String), "standard-jvm") + } + configurations.getByName(compileClasspathConfigurationName) { + attributes.attribute(Attribute.of("org.gradle.jvm.environment", String), "standard-jvm") + } +} + dependencies { implementation 'org.slf4j:slf4j-api:1.7.30'