From 8e2bc687d721b609b7c2de5577e4ba7c3e9771a8 Mon Sep 17 00:00:00 2001 From: "Daniel A. A. Pelsmaeker" Date: Fri, 19 Jul 2024 10:56:07 +0200 Subject: [PATCH] Add explicit language source/compile dependencies --- example/empty/empty.example/build.gradle.kts | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/example/empty/empty.example/build.gradle.kts b/example/empty/empty.example/build.gradle.kts index bc7e6be..bd80139 100644 --- a/example/empty/empty.example/build.gradle.kts +++ b/example/empty/empty.example/build.gradle.kts @@ -4,16 +4,20 @@ plugins { id("org.metaborg.devenv.spoofax.gradle.project") } -dependencies { - compileLanguage(project(":empty")) - - compileOnly(libs.spoofax.core) -} - spoofaxProject { + addCompileDependenciesFromMetaborgYaml.set(false) + addSourceDependenciesFromMetaborgYaml.set(false) + // Fixes: Could not resolve all dependencies for configuration ':compileClasspath'. // The project declares repositories, effectively ignoring the repositories you have declared in the settings. addSpoofaxRepository.set(false) // Fixes: Could not find org.metaborg:org.metaborg.spoofax.core:property(java.lang.String) addSpoofaxCoreDependency.set(false) } + + +dependencies { + compileLanguage(project(":empty")) + + compileOnly(libs.spoofax.core) +}