diff options
-rw-r--r-- | README.md | 2 | ||||
-rw-r--r-- | build.gradle | 5 | ||||
-rw-r--r-- | gradle/java-common.gradle | 3 |
3 files changed, 7 insertions, 3 deletions
@@ -28,7 +28,7 @@ | |||
28 | 28 | ||
29 | 7. Clone the project Git repository but do not import it into Eclipse yet. | 29 | 7. Clone the project Git repository but do not import it into Eclipse yet. |
30 | 30 | ||
31 | 8. Open a new terminal an run `./gradlew build` (`.\gradlew build` on Windows) in the cloned repository. This should complete without any compilation errors. If you get any errors about the JVM version, check whether the `JAVA_HOME` environment variable is set to the location of JDK. You can query the variable with `echo $JAVA_HOME` on Linux and `echo $Env:JAVA_HOME` in PowerShell on Windows. To set it, use `export JAVA_HOME=/java/path/here` or `$Env:JAVA_HOME="C:\java\path\here"`, respectively. | 31 | 8. Open a new terminal an run `./gradlew generateXtext eclipseJdt` (`.\gradlew generateXtext eclipseJdt` on Windows) in the cloned repository. This should complete without any compilation errors. If you get any errors about the JVM version, check whether the `JAVA_HOME` environment variable is set to the location of JDK. You can query the variable with `echo $JAVA_HOME` on Linux and `echo $Env:JAVA_HOME` in PowerShell on Windows. To set it, use `export JAVA_HOME=/java/path/here` or `$Env:JAVA_HOME="C:\java\path\here"`, respectively. |
32 | 32 | ||
33 | 9. Select _File > Import... > Gradle > Existing Gradle Project_ and import the cloned repository in Eclipse. | 33 | 9. Select _File > Import... > Gradle > Existing Gradle Project_ and import the cloned repository in Eclipse. |
34 | Make sure to select the root of the repository (containing this file) as the _Project root directory_ and that the _Gradle distribution_ is _Gradle wrapper_. | 34 | Make sure to select the root of the repository (containing this file) as the _Project root directory_ and that the _Gradle distribution_ is _Gradle wrapper_. |
diff --git a/build.gradle b/build.gradle index 8f787889..3591c286 100644 --- a/build.gradle +++ b/build.gradle | |||
@@ -10,7 +10,7 @@ allprojects { | |||
10 | version = '0.0.0-SNAPSHOT' | 10 | version = '0.0.0-SNAPSHOT' |
11 | 11 | ||
12 | sonarqube.properties { | 12 | sonarqube.properties { |
13 | // Make sure 'exclusions' is a List in every subproject | 13 | // Make sure `exclusions` is a List in every subproject |
14 | property 'sonar.exclusions', [] | 14 | property 'sonar.exclusions', [] |
15 | } | 15 | } |
16 | } | 16 | } |
@@ -20,3 +20,6 @@ sonarqube.properties { | |||
20 | property 'sonar.organization', 'graphs4value' | 20 | property 'sonar.organization', 'graphs4value' |
21 | property 'sonar.host.url', 'https://sonarcloud.io' | 21 | property 'sonar.host.url', 'https://sonarcloud.io' |
22 | } | 22 | } |
23 | |||
24 | apply plugin: 'eclipse' | ||
25 | |||
diff --git a/gradle/java-common.gradle b/gradle/java-common.gradle index daacecd3..bfcf2657 100644 --- a/gradle/java-common.gradle +++ b/gradle/java-common.gradle | |||
@@ -25,8 +25,9 @@ eclipse { | |||
25 | } | 25 | } |
26 | } | 26 | } |
27 | 27 | ||
28 | jdt.file.whenMerged { properties -> | 28 | jdt.file.withProperties { properties -> |
29 | // Allow @SupperessWarnings to suppress SonarLint warnings | 29 | // Allow @SupperessWarnings to suppress SonarLint warnings |
30 | properties['org.eclipse.jdt.core.compiler.problem.unhandledWarningToken'] = 'ignore' | 30 | properties['org.eclipse.jdt.core.compiler.problem.unhandledWarningToken'] = 'ignore' |
31 | } | 31 | } |
32 | } | 32 | } |
33 | |||