From dfcaad15ea8df07bb394f862752abe409e11ddb7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yann=20C=C3=A9bron?= Date: Thu, 15 Jun 2023 12:47:10 +0200 Subject: [PATCH] code samples: add gradle.properties to enable caching and defaults for use of Kotlin --- action_basics/gradle.properties | 13 +++++++++++++ .../gradle.properties | 13 +++++++++++++ conditional_operator_intention/gradle.properties | 13 +++++++++++++ editor_basics/gradle.properties | 13 +++++++++++++ facet_basics/gradle.properties | 13 +++++++++++++ framework_basics/gradle.properties | 13 +++++++++++++ kotlin_demo/gradle.properties | 15 +++++++++------ live_templates/gradle.properties | 13 +++++++++++++ max_opened_projects/gradle.properties | 13 +++++++++++++ module/gradle.properties | 13 +++++++++++++ product_specific/pycharm_basics/gradle.properties | 13 +++++++++++++ project_model/gradle.properties | 13 +++++++++++++ project_view_pane/gradle.properties | 13 +++++++++++++ project_wizard/gradle.properties | 13 +++++++++++++ psi_demo/gradle.properties | 13 +++++++++++++ run_configuration/gradle.properties | 13 +++++++++++++ settings/gradle.properties | 13 +++++++++++++ simple_language_plugin/gradle.properties | 13 +++++++++++++ tool_window/gradle.properties | 13 +++++++++++++ tree_structure_provider/gradle.properties | 13 +++++++++++++ 20 files changed, 256 insertions(+), 6 deletions(-) create mode 100644 action_basics/gradle.properties create mode 100644 comparing_string_references_inspection/gradle.properties create mode 100644 conditional_operator_intention/gradle.properties create mode 100644 editor_basics/gradle.properties create mode 100644 facet_basics/gradle.properties create mode 100644 framework_basics/gradle.properties create mode 100644 live_templates/gradle.properties create mode 100644 max_opened_projects/gradle.properties create mode 100644 module/gradle.properties create mode 100644 product_specific/pycharm_basics/gradle.properties create mode 100644 project_model/gradle.properties create mode 100644 project_view_pane/gradle.properties create mode 100644 project_wizard/gradle.properties create mode 100644 psi_demo/gradle.properties create mode 100644 run_configuration/gradle.properties create mode 100644 settings/gradle.properties create mode 100644 simple_language_plugin/gradle.properties create mode 100644 tool_window/gradle.properties create mode 100644 tree_structure_provider/gradle.properties diff --git a/action_basics/gradle.properties b/action_basics/gradle.properties new file mode 100644 index 000000000..761df0ff0 --- /dev/null +++ b/action_basics/gradle.properties @@ -0,0 +1,13 @@ +# Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. + +# Opt-out flag for bundling Kotlin standard library -> https://jb.gg/intellij-platform-kotlin-stdlib +kotlin.stdlib.default.dependency = false + +# TODO temporary workaround for Kotlin 1.8.20+ (https://jb.gg/intellij-platform-kotlin-oom) +kotlin.incremental.useClasspathSnapshot = false + +# Enable Gradle Configuration Cache -> https://docs.gradle.org/current/userguide/configuration_cache.html +org.gradle.configuration-cache = true + +# Enable Gradle Build Cache -> https://docs.gradle.org/current/userguide/build_cache.html +org.gradle.caching = true diff --git a/comparing_string_references_inspection/gradle.properties b/comparing_string_references_inspection/gradle.properties new file mode 100644 index 000000000..761df0ff0 --- /dev/null +++ b/comparing_string_references_inspection/gradle.properties @@ -0,0 +1,13 @@ +# Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. + +# Opt-out flag for bundling Kotlin standard library -> https://jb.gg/intellij-platform-kotlin-stdlib +kotlin.stdlib.default.dependency = false + +# TODO temporary workaround for Kotlin 1.8.20+ (https://jb.gg/intellij-platform-kotlin-oom) +kotlin.incremental.useClasspathSnapshot = false + +# Enable Gradle Configuration Cache -> https://docs.gradle.org/current/userguide/configuration_cache.html +org.gradle.configuration-cache = true + +# Enable Gradle Build Cache -> https://docs.gradle.org/current/userguide/build_cache.html +org.gradle.caching = true diff --git a/conditional_operator_intention/gradle.properties b/conditional_operator_intention/gradle.properties new file mode 100644 index 000000000..761df0ff0 --- /dev/null +++ b/conditional_operator_intention/gradle.properties @@ -0,0 +1,13 @@ +# Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. + +# Opt-out flag for bundling Kotlin standard library -> https://jb.gg/intellij-platform-kotlin-stdlib +kotlin.stdlib.default.dependency = false + +# TODO temporary workaround for Kotlin 1.8.20+ (https://jb.gg/intellij-platform-kotlin-oom) +kotlin.incremental.useClasspathSnapshot = false + +# Enable Gradle Configuration Cache -> https://docs.gradle.org/current/userguide/configuration_cache.html +org.gradle.configuration-cache = true + +# Enable Gradle Build Cache -> https://docs.gradle.org/current/userguide/build_cache.html +org.gradle.caching = true diff --git a/editor_basics/gradle.properties b/editor_basics/gradle.properties new file mode 100644 index 000000000..761df0ff0 --- /dev/null +++ b/editor_basics/gradle.properties @@ -0,0 +1,13 @@ +# Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. + +# Opt-out flag for bundling Kotlin standard library -> https://jb.gg/intellij-platform-kotlin-stdlib +kotlin.stdlib.default.dependency = false + +# TODO temporary workaround for Kotlin 1.8.20+ (https://jb.gg/intellij-platform-kotlin-oom) +kotlin.incremental.useClasspathSnapshot = false + +# Enable Gradle Configuration Cache -> https://docs.gradle.org/current/userguide/configuration_cache.html +org.gradle.configuration-cache = true + +# Enable Gradle Build Cache -> https://docs.gradle.org/current/userguide/build_cache.html +org.gradle.caching = true diff --git a/facet_basics/gradle.properties b/facet_basics/gradle.properties new file mode 100644 index 000000000..761df0ff0 --- /dev/null +++ b/facet_basics/gradle.properties @@ -0,0 +1,13 @@ +# Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. + +# Opt-out flag for bundling Kotlin standard library -> https://jb.gg/intellij-platform-kotlin-stdlib +kotlin.stdlib.default.dependency = false + +# TODO temporary workaround for Kotlin 1.8.20+ (https://jb.gg/intellij-platform-kotlin-oom) +kotlin.incremental.useClasspathSnapshot = false + +# Enable Gradle Configuration Cache -> https://docs.gradle.org/current/userguide/configuration_cache.html +org.gradle.configuration-cache = true + +# Enable Gradle Build Cache -> https://docs.gradle.org/current/userguide/build_cache.html +org.gradle.caching = true diff --git a/framework_basics/gradle.properties b/framework_basics/gradle.properties new file mode 100644 index 000000000..761df0ff0 --- /dev/null +++ b/framework_basics/gradle.properties @@ -0,0 +1,13 @@ +# Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. + +# Opt-out flag for bundling Kotlin standard library -> https://jb.gg/intellij-platform-kotlin-stdlib +kotlin.stdlib.default.dependency = false + +# TODO temporary workaround for Kotlin 1.8.20+ (https://jb.gg/intellij-platform-kotlin-oom) +kotlin.incremental.useClasspathSnapshot = false + +# Enable Gradle Configuration Cache -> https://docs.gradle.org/current/userguide/configuration_cache.html +org.gradle.configuration-cache = true + +# Enable Gradle Build Cache -> https://docs.gradle.org/current/userguide/build_cache.html +org.gradle.caching = true diff --git a/kotlin_demo/gradle.properties b/kotlin_demo/gradle.properties index 8d010a93a..761df0ff0 100644 --- a/kotlin_demo/gradle.properties +++ b/kotlin_demo/gradle.properties @@ -1,10 +1,13 @@ -# Copyright 2000-2023 JetBrains s.r.o. and other contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. -kotlin.code.style=official +# Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. -# Opt-out flag for bundling Kotlin standard library. -# See https://plugins.jetbrains.com/docs/intellij/using-kotlin.html#kotlin-standard-library for details. -# suppress inspection "UnusedProperty" +# Opt-out flag for bundling Kotlin standard library -> https://jb.gg/intellij-platform-kotlin-stdlib kotlin.stdlib.default.dependency = false # TODO temporary workaround for Kotlin 1.8.20+ (https://jb.gg/intellij-platform-kotlin-oom) -kotlin.incremental.useClasspathSnapshot=false +kotlin.incremental.useClasspathSnapshot = false + +# Enable Gradle Configuration Cache -> https://docs.gradle.org/current/userguide/configuration_cache.html +org.gradle.configuration-cache = true + +# Enable Gradle Build Cache -> https://docs.gradle.org/current/userguide/build_cache.html +org.gradle.caching = true diff --git a/live_templates/gradle.properties b/live_templates/gradle.properties new file mode 100644 index 000000000..761df0ff0 --- /dev/null +++ b/live_templates/gradle.properties @@ -0,0 +1,13 @@ +# Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. + +# Opt-out flag for bundling Kotlin standard library -> https://jb.gg/intellij-platform-kotlin-stdlib +kotlin.stdlib.default.dependency = false + +# TODO temporary workaround for Kotlin 1.8.20+ (https://jb.gg/intellij-platform-kotlin-oom) +kotlin.incremental.useClasspathSnapshot = false + +# Enable Gradle Configuration Cache -> https://docs.gradle.org/current/userguide/configuration_cache.html +org.gradle.configuration-cache = true + +# Enable Gradle Build Cache -> https://docs.gradle.org/current/userguide/build_cache.html +org.gradle.caching = true diff --git a/max_opened_projects/gradle.properties b/max_opened_projects/gradle.properties new file mode 100644 index 000000000..761df0ff0 --- /dev/null +++ b/max_opened_projects/gradle.properties @@ -0,0 +1,13 @@ +# Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. + +# Opt-out flag for bundling Kotlin standard library -> https://jb.gg/intellij-platform-kotlin-stdlib +kotlin.stdlib.default.dependency = false + +# TODO temporary workaround for Kotlin 1.8.20+ (https://jb.gg/intellij-platform-kotlin-oom) +kotlin.incremental.useClasspathSnapshot = false + +# Enable Gradle Configuration Cache -> https://docs.gradle.org/current/userguide/configuration_cache.html +org.gradle.configuration-cache = true + +# Enable Gradle Build Cache -> https://docs.gradle.org/current/userguide/build_cache.html +org.gradle.caching = true diff --git a/module/gradle.properties b/module/gradle.properties new file mode 100644 index 000000000..761df0ff0 --- /dev/null +++ b/module/gradle.properties @@ -0,0 +1,13 @@ +# Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. + +# Opt-out flag for bundling Kotlin standard library -> https://jb.gg/intellij-platform-kotlin-stdlib +kotlin.stdlib.default.dependency = false + +# TODO temporary workaround for Kotlin 1.8.20+ (https://jb.gg/intellij-platform-kotlin-oom) +kotlin.incremental.useClasspathSnapshot = false + +# Enable Gradle Configuration Cache -> https://docs.gradle.org/current/userguide/configuration_cache.html +org.gradle.configuration-cache = true + +# Enable Gradle Build Cache -> https://docs.gradle.org/current/userguide/build_cache.html +org.gradle.caching = true diff --git a/product_specific/pycharm_basics/gradle.properties b/product_specific/pycharm_basics/gradle.properties new file mode 100644 index 000000000..761df0ff0 --- /dev/null +++ b/product_specific/pycharm_basics/gradle.properties @@ -0,0 +1,13 @@ +# Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. + +# Opt-out flag for bundling Kotlin standard library -> https://jb.gg/intellij-platform-kotlin-stdlib +kotlin.stdlib.default.dependency = false + +# TODO temporary workaround for Kotlin 1.8.20+ (https://jb.gg/intellij-platform-kotlin-oom) +kotlin.incremental.useClasspathSnapshot = false + +# Enable Gradle Configuration Cache -> https://docs.gradle.org/current/userguide/configuration_cache.html +org.gradle.configuration-cache = true + +# Enable Gradle Build Cache -> https://docs.gradle.org/current/userguide/build_cache.html +org.gradle.caching = true diff --git a/project_model/gradle.properties b/project_model/gradle.properties new file mode 100644 index 000000000..761df0ff0 --- /dev/null +++ b/project_model/gradle.properties @@ -0,0 +1,13 @@ +# Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. + +# Opt-out flag for bundling Kotlin standard library -> https://jb.gg/intellij-platform-kotlin-stdlib +kotlin.stdlib.default.dependency = false + +# TODO temporary workaround for Kotlin 1.8.20+ (https://jb.gg/intellij-platform-kotlin-oom) +kotlin.incremental.useClasspathSnapshot = false + +# Enable Gradle Configuration Cache -> https://docs.gradle.org/current/userguide/configuration_cache.html +org.gradle.configuration-cache = true + +# Enable Gradle Build Cache -> https://docs.gradle.org/current/userguide/build_cache.html +org.gradle.caching = true diff --git a/project_view_pane/gradle.properties b/project_view_pane/gradle.properties new file mode 100644 index 000000000..761df0ff0 --- /dev/null +++ b/project_view_pane/gradle.properties @@ -0,0 +1,13 @@ +# Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. + +# Opt-out flag for bundling Kotlin standard library -> https://jb.gg/intellij-platform-kotlin-stdlib +kotlin.stdlib.default.dependency = false + +# TODO temporary workaround for Kotlin 1.8.20+ (https://jb.gg/intellij-platform-kotlin-oom) +kotlin.incremental.useClasspathSnapshot = false + +# Enable Gradle Configuration Cache -> https://docs.gradle.org/current/userguide/configuration_cache.html +org.gradle.configuration-cache = true + +# Enable Gradle Build Cache -> https://docs.gradle.org/current/userguide/build_cache.html +org.gradle.caching = true diff --git a/project_wizard/gradle.properties b/project_wizard/gradle.properties new file mode 100644 index 000000000..761df0ff0 --- /dev/null +++ b/project_wizard/gradle.properties @@ -0,0 +1,13 @@ +# Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. + +# Opt-out flag for bundling Kotlin standard library -> https://jb.gg/intellij-platform-kotlin-stdlib +kotlin.stdlib.default.dependency = false + +# TODO temporary workaround for Kotlin 1.8.20+ (https://jb.gg/intellij-platform-kotlin-oom) +kotlin.incremental.useClasspathSnapshot = false + +# Enable Gradle Configuration Cache -> https://docs.gradle.org/current/userguide/configuration_cache.html +org.gradle.configuration-cache = true + +# Enable Gradle Build Cache -> https://docs.gradle.org/current/userguide/build_cache.html +org.gradle.caching = true diff --git a/psi_demo/gradle.properties b/psi_demo/gradle.properties new file mode 100644 index 000000000..761df0ff0 --- /dev/null +++ b/psi_demo/gradle.properties @@ -0,0 +1,13 @@ +# Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. + +# Opt-out flag for bundling Kotlin standard library -> https://jb.gg/intellij-platform-kotlin-stdlib +kotlin.stdlib.default.dependency = false + +# TODO temporary workaround for Kotlin 1.8.20+ (https://jb.gg/intellij-platform-kotlin-oom) +kotlin.incremental.useClasspathSnapshot = false + +# Enable Gradle Configuration Cache -> https://docs.gradle.org/current/userguide/configuration_cache.html +org.gradle.configuration-cache = true + +# Enable Gradle Build Cache -> https://docs.gradle.org/current/userguide/build_cache.html +org.gradle.caching = true diff --git a/run_configuration/gradle.properties b/run_configuration/gradle.properties new file mode 100644 index 000000000..761df0ff0 --- /dev/null +++ b/run_configuration/gradle.properties @@ -0,0 +1,13 @@ +# Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. + +# Opt-out flag for bundling Kotlin standard library -> https://jb.gg/intellij-platform-kotlin-stdlib +kotlin.stdlib.default.dependency = false + +# TODO temporary workaround for Kotlin 1.8.20+ (https://jb.gg/intellij-platform-kotlin-oom) +kotlin.incremental.useClasspathSnapshot = false + +# Enable Gradle Configuration Cache -> https://docs.gradle.org/current/userguide/configuration_cache.html +org.gradle.configuration-cache = true + +# Enable Gradle Build Cache -> https://docs.gradle.org/current/userguide/build_cache.html +org.gradle.caching = true diff --git a/settings/gradle.properties b/settings/gradle.properties new file mode 100644 index 000000000..761df0ff0 --- /dev/null +++ b/settings/gradle.properties @@ -0,0 +1,13 @@ +# Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. + +# Opt-out flag for bundling Kotlin standard library -> https://jb.gg/intellij-platform-kotlin-stdlib +kotlin.stdlib.default.dependency = false + +# TODO temporary workaround for Kotlin 1.8.20+ (https://jb.gg/intellij-platform-kotlin-oom) +kotlin.incremental.useClasspathSnapshot = false + +# Enable Gradle Configuration Cache -> https://docs.gradle.org/current/userguide/configuration_cache.html +org.gradle.configuration-cache = true + +# Enable Gradle Build Cache -> https://docs.gradle.org/current/userguide/build_cache.html +org.gradle.caching = true diff --git a/simple_language_plugin/gradle.properties b/simple_language_plugin/gradle.properties new file mode 100644 index 000000000..761df0ff0 --- /dev/null +++ b/simple_language_plugin/gradle.properties @@ -0,0 +1,13 @@ +# Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. + +# Opt-out flag for bundling Kotlin standard library -> https://jb.gg/intellij-platform-kotlin-stdlib +kotlin.stdlib.default.dependency = false + +# TODO temporary workaround for Kotlin 1.8.20+ (https://jb.gg/intellij-platform-kotlin-oom) +kotlin.incremental.useClasspathSnapshot = false + +# Enable Gradle Configuration Cache -> https://docs.gradle.org/current/userguide/configuration_cache.html +org.gradle.configuration-cache = true + +# Enable Gradle Build Cache -> https://docs.gradle.org/current/userguide/build_cache.html +org.gradle.caching = true diff --git a/tool_window/gradle.properties b/tool_window/gradle.properties new file mode 100644 index 000000000..761df0ff0 --- /dev/null +++ b/tool_window/gradle.properties @@ -0,0 +1,13 @@ +# Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. + +# Opt-out flag for bundling Kotlin standard library -> https://jb.gg/intellij-platform-kotlin-stdlib +kotlin.stdlib.default.dependency = false + +# TODO temporary workaround for Kotlin 1.8.20+ (https://jb.gg/intellij-platform-kotlin-oom) +kotlin.incremental.useClasspathSnapshot = false + +# Enable Gradle Configuration Cache -> https://docs.gradle.org/current/userguide/configuration_cache.html +org.gradle.configuration-cache = true + +# Enable Gradle Build Cache -> https://docs.gradle.org/current/userguide/build_cache.html +org.gradle.caching = true diff --git a/tree_structure_provider/gradle.properties b/tree_structure_provider/gradle.properties new file mode 100644 index 000000000..761df0ff0 --- /dev/null +++ b/tree_structure_provider/gradle.properties @@ -0,0 +1,13 @@ +# Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. + +# Opt-out flag for bundling Kotlin standard library -> https://jb.gg/intellij-platform-kotlin-stdlib +kotlin.stdlib.default.dependency = false + +# TODO temporary workaround for Kotlin 1.8.20+ (https://jb.gg/intellij-platform-kotlin-oom) +kotlin.incremental.useClasspathSnapshot = false + +# Enable Gradle Configuration Cache -> https://docs.gradle.org/current/userguide/configuration_cache.html +org.gradle.configuration-cache = true + +# Enable Gradle Build Cache -> https://docs.gradle.org/current/userguide/build_cache.html +org.gradle.caching = true