From 2c80601df02ec603f12d29535de91c0724440f29 Mon Sep 17 00:00:00 2001 From: Pawel Lipski Date: Mon, 3 Oct 2022 22:29:58 +0200 Subject: [PATCH] Apply minor fixes --- CONTRIBUTING.md | 7 ++++--- build.gradle.kts | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index d5ee8902b..c084b383c 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -39,7 +39,8 @@ Use IntelliJ IDEA Community Edition/Ultimate. when running IntelliJ instance with the Git Machete plugin loaded. 6. Enable annotation processing (for Lombok): - `File > Settings > Build, Execution, Deployment > Compiler > Annotation Processors > Enable Annotation Processing`. + `File > Settings > Build, Execution, Deployment > Compiler > Annotation Processors > Enable Annotation Processing` + (`Preferences > Build, Execution, Deployment > Compiler > Annotation Processors > Enable Annotation Processing` on macOS). Select `Obtain annotation processors from classpath` radio box. 7. (optional) Increase maximum heap size for the IDE (the default value is 2048 MB) under `Help > Change Memory Settings`. @@ -49,7 +50,7 @@ Use IntelliJ IDEA Community Edition/Ultimate. To investigate the UI you may want to use `Tools > Internal Actions > UI > UI Inspector`. 9. (optional) Set `Class count before import with '*'` and `Names count to use static import with '*'` to a very high number (e.g. 500) - to avoid problems with CheckStyle when editing code. To do that go to `File > Settings > Code Style > Java/Kotlin/Scala` + to avoid problems with CheckStyle when editing code. To do that go to `File > Settings > Editor > Code Style > Java/Kotlin/Scala` (`Preferences > Editor > Code Style > Java/Kotlin/Scala` on macOS). ### Git config/hooks @@ -135,7 +136,7 @@ To watch the logs of this IntelliJ instance, run `tail -f build/idea-sandbox/sys To debug the plugin using IntelliJ go to `Run > Edit Configurations...` and create a new Run Configuration for Gradle:
![debug_configuration](docs/debug_configuration.png) -Now this new configuration can be chosen in the upper left corner of the IDE, and the debugging can be started with the Debug button or Shift+F9 (`^D` on macOS). +Now this new configuration can be chosen in the upper left corner of the IDE, and the debugging can be started with the Debug button or Shift+F9 (^D on macOS). ## Test diff --git a/build.gradle.kts b/build.gradle.kts index 1e018a86c..5d883e668 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -135,7 +135,7 @@ allprojects { // (i.e. for X=8 and Y=11: InputStream#readAllBytes, Stream#takeWhile and String#isBlank). // `options.release = X` makes sure that regardless of Java version used to run the compiler, // only Java X-compatible APIs are available to the compiled code. - options.release.set(Integer.parseInt(targetJavaVersion.toString())) + options.release.set(Integer.parseInt(targetJavaVersion.majorVersion)) } tasks.withType {