From 089479fb31419b92c04f80d4cca9f09e34c684c6 Mon Sep 17 00:00:00 2001 From: Kristóf Marussy Date: Sat, 2 Oct 2021 19:30:05 +0200 Subject: build: fix Eclipse project generation instructions BuildShip and Gradle :eclipse are incompatible: https://github.com/eclipse/buildship/issues/267#issuecomment-547318667 Therefore, we run :eclipseJdt manually instead to genrate the JDT configuration to ignore @SuppressWarning unknown warnings, which lets us silence Sonar warnings in-line. We also run :generateXtext to make sure all generated sources are ready for the Eclipse build. --- build.gradle | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'build.gradle') diff --git a/build.gradle b/build.gradle index 8f787889..3591c286 100644 --- a/build.gradle +++ b/build.gradle @@ -10,7 +10,7 @@ allprojects { version = '0.0.0-SNAPSHOT' sonarqube.properties { - // Make sure 'exclusions' is a List in every subproject + // Make sure `exclusions` is a List in every subproject property 'sonar.exclusions', [] } } @@ -20,3 +20,6 @@ sonarqube.properties { property 'sonar.organization', 'graphs4value' property 'sonar.host.url', 'https://sonarcloud.io' } + +apply plugin: 'eclipse' + -- cgit v1.2.3-54-g00ecf