mirror of
https://github.com/JetBrains/intellij-sdk-code-samples.git
synced 2025-07-28 01:07:49 +08:00
code_samples: migrate gradle build scripts from groovy to kotlin + aligned docs
This commit is contained in:
parent
4980a715e8
commit
4a8fb8b2b0
6
.github/workflows/code-samples.yml
vendored
6
.github/workflows/code-samples.yml
vendored
@ -78,10 +78,12 @@ jobs:
|
|||||||
- name: Run Plugin Verifier
|
- name: Run Plugin Verifier
|
||||||
run: |
|
run: |
|
||||||
echo "
|
echo "
|
||||||
|
tasks {
|
||||||
runPluginVerifier {
|
runPluginVerifier {
|
||||||
ideVersions = '$PLUGIN_VERIFIER_IDE_VERSIONS'.split(' ').toList()
|
ideVersions.set("\"$PLUGIN_VERIFIER_IDE_VERSIONS\"".split(' ').toList())
|
||||||
}
|
}
|
||||||
" >> code_samples/${{ matrix.plugin }}/build.gradle
|
}
|
||||||
|
" >> code_samples/${{ matrix.plugin }}/build.gradle.kts
|
||||||
cd code_samples/${{ matrix.plugin }}
|
cd code_samples/${{ matrix.plugin }}
|
||||||
./gradlew runPluginVerifier -Pplugin.verifier.home.dir=${{ steps.properties.outputs.pluginVerifierHomeDir }}
|
./gradlew runPluginVerifier -Pplugin.verifier.home.dir=${{ steps.properties.outputs.pluginVerifierHomeDir }}
|
||||||
|
|
||||||
|
@ -1,26 +0,0 @@
|
|||||||
// Copyright 2000-2022 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.
|
|
||||||
|
|
||||||
// Composite Build for all SDK Code Sample projects (excluding those under /product_specific/ to reduce dependencies)
|
|
||||||
|
|
||||||
rootProject.name = 'SDK Code Samples'
|
|
||||||
|
|
||||||
includeBuild '../action_basics'
|
|
||||||
includeBuild '../comparing_references_inspection'
|
|
||||||
includeBuild '../conditional_operator_intention'
|
|
||||||
includeBuild '../editor_basics'
|
|
||||||
includeBuild '../facet_basics'
|
|
||||||
includeBuild '../framework_basics'
|
|
||||||
includeBuild '../inspection_basics'
|
|
||||||
includeBuild '../kotlin_demo'
|
|
||||||
includeBuild '../live_templates'
|
|
||||||
includeBuild '../max_opened_projects'
|
|
||||||
includeBuild '../module'
|
|
||||||
includeBuild '../project_model'
|
|
||||||
includeBuild '../project_view_pane'
|
|
||||||
includeBuild '../project_wizard'
|
|
||||||
includeBuild '../psi_demo'
|
|
||||||
includeBuild '../run_configuration'
|
|
||||||
includeBuild '../settings'
|
|
||||||
includeBuild '../simple_language_plugin'
|
|
||||||
includeBuild '../tool_window'
|
|
||||||
includeBuild '../tree_structure_provider'
|
|
26
code_samples/_gradleCompositeBuild/settings.gradle.kts
Normal file
26
code_samples/_gradleCompositeBuild/settings.gradle.kts
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
// Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||||
|
|
||||||
|
// Composite Build for all SDK Code Sample projects (excluding those under /product_specific/ to reduce dependencies)
|
||||||
|
|
||||||
|
rootProject.name = "SDK Code Samples"
|
||||||
|
|
||||||
|
includeBuild("../action_basics")
|
||||||
|
includeBuild("../comparing_references_inspection")
|
||||||
|
includeBuild("../conditional_operator_intention")
|
||||||
|
includeBuild("../editor_basics")
|
||||||
|
includeBuild("../facet_basics")
|
||||||
|
includeBuild("../framework_basics")
|
||||||
|
includeBuild("../inspection_basics")
|
||||||
|
includeBuild("../kotlin_demo")
|
||||||
|
includeBuild("../live_templates")
|
||||||
|
includeBuild("../max_opened_projects")
|
||||||
|
includeBuild("../module")
|
||||||
|
includeBuild("../project_model")
|
||||||
|
includeBuild("../project_view_pane")
|
||||||
|
includeBuild("../project_wizard")
|
||||||
|
includeBuild("../psi_demo")
|
||||||
|
includeBuild("../run_configuration")
|
||||||
|
includeBuild("../settings")
|
||||||
|
includeBuild("../simple_language_plugin")
|
||||||
|
includeBuild("../tool_window")
|
||||||
|
includeBuild("../tree_structure_provider")
|
@ -1,30 +0,0 @@
|
|||||||
// Copyright 2000-2022 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.
|
|
||||||
|
|
||||||
plugins {
|
|
||||||
id 'java'
|
|
||||||
id 'org.jetbrains.intellij' version '1.4.0'
|
|
||||||
}
|
|
||||||
|
|
||||||
group 'org.intellij.sdk'
|
|
||||||
version '2.0.0'
|
|
||||||
|
|
||||||
sourceCompatibility = 11
|
|
||||||
|
|
||||||
repositories {
|
|
||||||
mavenCentral()
|
|
||||||
}
|
|
||||||
|
|
||||||
// See https://github.com/JetBrains/gradle-intellij-plugin/
|
|
||||||
intellij {
|
|
||||||
version = '2021.1.3'
|
|
||||||
}
|
|
||||||
|
|
||||||
buildSearchableOptions {
|
|
||||||
enabled = false
|
|
||||||
}
|
|
||||||
|
|
||||||
patchPluginXml {
|
|
||||||
version = project.version
|
|
||||||
sinceBuild = '211'
|
|
||||||
untilBuild = '213.*'
|
|
||||||
}
|
|
34
code_samples/action_basics/build.gradle.kts
Normal file
34
code_samples/action_basics/build.gradle.kts
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
// Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||||
|
|
||||||
|
plugins {
|
||||||
|
id("java")
|
||||||
|
id("org.jetbrains.intellij") version "1.4.0"
|
||||||
|
}
|
||||||
|
|
||||||
|
group = "org.intellij.sdk"
|
||||||
|
version = "2.0.0"
|
||||||
|
|
||||||
|
repositories {
|
||||||
|
mavenCentral()
|
||||||
|
}
|
||||||
|
|
||||||
|
java {
|
||||||
|
sourceCompatibility = JavaVersion.VERSION_11
|
||||||
|
}
|
||||||
|
|
||||||
|
// See https://github.com/JetBrains/gradle-intellij-plugin/
|
||||||
|
intellij {
|
||||||
|
version.set("2021.1.3")
|
||||||
|
}
|
||||||
|
|
||||||
|
tasks {
|
||||||
|
buildSearchableOptions {
|
||||||
|
enabled = false
|
||||||
|
}
|
||||||
|
|
||||||
|
patchPluginXml {
|
||||||
|
version.set("${project.version}")
|
||||||
|
sinceBuild.set("211")
|
||||||
|
untilBuild.set("213.*")
|
||||||
|
}
|
||||||
|
}
|
@ -1,3 +0,0 @@
|
|||||||
// Copyright 2000-2022 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.
|
|
||||||
|
|
||||||
rootProject.name = 'action'
|
|
3
code_samples/action_basics/settings.gradle.kts
Normal file
3
code_samples/action_basics/settings.gradle.kts
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
// Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||||
|
|
||||||
|
rootProject.name = "action"
|
@ -1,41 +0,0 @@
|
|||||||
// Copyright 2000-2022 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.
|
|
||||||
|
|
||||||
plugins {
|
|
||||||
id 'java'
|
|
||||||
id 'org.jetbrains.intellij' version '1.4.0'
|
|
||||||
}
|
|
||||||
|
|
||||||
group 'org.intellij.sdk'
|
|
||||||
version '2.0.0'
|
|
||||||
|
|
||||||
sourceCompatibility = 11
|
|
||||||
|
|
||||||
repositories {
|
|
||||||
mavenCentral()
|
|
||||||
}
|
|
||||||
|
|
||||||
dependencies {
|
|
||||||
testImplementation group: 'junit', name: 'junit', version: '4.13.2'
|
|
||||||
}
|
|
||||||
|
|
||||||
test {
|
|
||||||
// Set idea.home.path to the absolute path to the intellij-community source
|
|
||||||
// on your local machine.
|
|
||||||
systemProperty "idea.home.path", "/Users/jhake/Documents/source/comm"
|
|
||||||
}
|
|
||||||
|
|
||||||
// See https://github.com/JetBrains/gradle-intellij-plugin/
|
|
||||||
intellij {
|
|
||||||
version = '2021.1.3'
|
|
||||||
plugins = ['com.intellij.java']
|
|
||||||
}
|
|
||||||
|
|
||||||
buildSearchableOptions {
|
|
||||||
enabled = false
|
|
||||||
}
|
|
||||||
|
|
||||||
patchPluginXml {
|
|
||||||
version = project.version
|
|
||||||
sinceBuild = '211'
|
|
||||||
untilBuild = '213.*'
|
|
||||||
}
|
|
@ -0,0 +1,45 @@
|
|||||||
|
// Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||||
|
|
||||||
|
plugins {
|
||||||
|
id("java")
|
||||||
|
id("org.jetbrains.intellij") version "1.4.0"
|
||||||
|
}
|
||||||
|
|
||||||
|
group = "org.intellij.sdk"
|
||||||
|
version = "2.0.0"
|
||||||
|
|
||||||
|
repositories {
|
||||||
|
mavenCentral()
|
||||||
|
}
|
||||||
|
|
||||||
|
dependencies {
|
||||||
|
testImplementation("junit:junit:4.13.2")
|
||||||
|
}
|
||||||
|
|
||||||
|
java {
|
||||||
|
sourceCompatibility = JavaVersion.VERSION_11
|
||||||
|
}
|
||||||
|
|
||||||
|
// See https://github.com/JetBrains/gradle-intellij-plugin/
|
||||||
|
intellij {
|
||||||
|
version.set("2021.1.3")
|
||||||
|
plugins.set(listOf("com.intellij.java"))
|
||||||
|
}
|
||||||
|
|
||||||
|
tasks {
|
||||||
|
buildSearchableOptions {
|
||||||
|
enabled = false
|
||||||
|
}
|
||||||
|
|
||||||
|
patchPluginXml {
|
||||||
|
version.set("${project.version}")
|
||||||
|
sinceBuild.set("211")
|
||||||
|
untilBuild.set("213.*")
|
||||||
|
}
|
||||||
|
|
||||||
|
test {
|
||||||
|
// Set idea.home.path to the absolute path to the intellij-community source
|
||||||
|
// on your local machine.
|
||||||
|
systemProperty("idea.home.path", "/Users/jhake/Documents/source/comm")
|
||||||
|
}
|
||||||
|
}
|
@ -1,3 +0,0 @@
|
|||||||
// Copyright 2000-2022 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.
|
|
||||||
|
|
||||||
rootProject.name = 'comparing_references_inspection'
|
|
@ -0,0 +1,3 @@
|
|||||||
|
// Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||||
|
|
||||||
|
rootProject.name = "comparing_references_inspection"
|
@ -1,4 +1,4 @@
|
|||||||
// Copyright 2000-2022 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.
|
// Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||||
|
|
||||||
package org.intellij.sdk.codeInspection;
|
package org.intellij.sdk.codeInspection;
|
||||||
|
|
||||||
@ -11,7 +11,7 @@ import java.util.List;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Class for testing ComparingReferencesInspection.
|
* Class for testing ComparingReferencesInspection.
|
||||||
* Requires {@code idea.home.path} to be set in build.gradle.
|
* Requires {@code idea.home.path} to be set in build.gradle.kts.
|
||||||
* doTest() does the work for individual test cases.
|
* doTest() does the work for individual test cases.
|
||||||
*/
|
*/
|
||||||
public class ComparingReferencesInspectionTest extends LightJavaCodeInsightFixtureTestCase {
|
public class ComparingReferencesInspectionTest extends LightJavaCodeInsightFixtureTestCase {
|
||||||
|
@ -1,41 +0,0 @@
|
|||||||
// Copyright 2000-2022 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.
|
|
||||||
|
|
||||||
plugins {
|
|
||||||
id 'java'
|
|
||||||
id 'org.jetbrains.intellij' version '1.4.0'
|
|
||||||
}
|
|
||||||
|
|
||||||
group 'org.intellij.sdk'
|
|
||||||
version '2.0.0'
|
|
||||||
|
|
||||||
sourceCompatibility = 11
|
|
||||||
|
|
||||||
repositories {
|
|
||||||
mavenCentral()
|
|
||||||
}
|
|
||||||
|
|
||||||
dependencies {
|
|
||||||
testImplementation group: 'junit', name: 'junit', version: '4.13.2'
|
|
||||||
}
|
|
||||||
|
|
||||||
test {
|
|
||||||
// Set idea.home.path to the absolute path to the intellij-community source
|
|
||||||
// on your local machine.
|
|
||||||
systemProperty "idea.home.path", "/Users/jhake/Documents/source/comm"
|
|
||||||
}
|
|
||||||
|
|
||||||
// See https://github.com/JetBrains/gradle-intellij-plugin/
|
|
||||||
intellij {
|
|
||||||
version = '2021.1.3'
|
|
||||||
plugins = ['com.intellij.java']
|
|
||||||
}
|
|
||||||
|
|
||||||
buildSearchableOptions {
|
|
||||||
enabled = false
|
|
||||||
}
|
|
||||||
|
|
||||||
patchPluginXml {
|
|
||||||
version = project.version
|
|
||||||
sinceBuild = '211'
|
|
||||||
untilBuild = '213.*'
|
|
||||||
}
|
|
45
code_samples/conditional_operator_intention/build.gradle.kts
Normal file
45
code_samples/conditional_operator_intention/build.gradle.kts
Normal file
@ -0,0 +1,45 @@
|
|||||||
|
// Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||||
|
|
||||||
|
plugins {
|
||||||
|
id("java")
|
||||||
|
id("org.jetbrains.intellij") version "1.4.0"
|
||||||
|
}
|
||||||
|
|
||||||
|
group = "org.intellij.sdk"
|
||||||
|
version = "2.0.0"
|
||||||
|
|
||||||
|
repositories {
|
||||||
|
mavenCentral()
|
||||||
|
}
|
||||||
|
|
||||||
|
dependencies {
|
||||||
|
testImplementation("junit:junit:4.13.2")
|
||||||
|
}
|
||||||
|
|
||||||
|
java {
|
||||||
|
sourceCompatibility = JavaVersion.VERSION_11
|
||||||
|
}
|
||||||
|
|
||||||
|
// See https://github.com/JetBrains/gradle-intellij-plugin/
|
||||||
|
intellij {
|
||||||
|
version.set("2021.1.3")
|
||||||
|
plugins.set(listOf("com.intellij.java"))
|
||||||
|
}
|
||||||
|
|
||||||
|
tasks {
|
||||||
|
buildSearchableOptions {
|
||||||
|
enabled = false
|
||||||
|
}
|
||||||
|
|
||||||
|
patchPluginXml {
|
||||||
|
version.set("${project.version}")
|
||||||
|
sinceBuild.set("211")
|
||||||
|
untilBuild.set("213.*")
|
||||||
|
}
|
||||||
|
|
||||||
|
test {
|
||||||
|
// Set idea.home.path to the absolute path to the intellij-community source
|
||||||
|
// on your local machine.
|
||||||
|
systemProperty("idea.home.path", "/Users/jhake/Documents/source/comm")
|
||||||
|
}
|
||||||
|
}
|
@ -1,3 +0,0 @@
|
|||||||
// Copyright 2000-2022 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.
|
|
||||||
|
|
||||||
rootProject.name = 'conditional_operator_intention'
|
|
@ -0,0 +1,3 @@
|
|||||||
|
// Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||||
|
|
||||||
|
rootProject.name = "conditional_operator_intention"
|
@ -1,30 +0,0 @@
|
|||||||
// Copyright 2000-2022 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.
|
|
||||||
|
|
||||||
plugins {
|
|
||||||
id 'java'
|
|
||||||
id 'org.jetbrains.intellij' version '1.4.0'
|
|
||||||
}
|
|
||||||
|
|
||||||
group 'org.intellij.sdk'
|
|
||||||
version '2.0.0'
|
|
||||||
|
|
||||||
sourceCompatibility = 11
|
|
||||||
|
|
||||||
repositories {
|
|
||||||
mavenCentral()
|
|
||||||
}
|
|
||||||
|
|
||||||
// See https://github.com/JetBrains/gradle-intellij-plugin/
|
|
||||||
intellij {
|
|
||||||
version = '2021.1.3'
|
|
||||||
}
|
|
||||||
|
|
||||||
buildSearchableOptions {
|
|
||||||
enabled = false
|
|
||||||
}
|
|
||||||
|
|
||||||
patchPluginXml {
|
|
||||||
version = project.version
|
|
||||||
sinceBuild = '211'
|
|
||||||
untilBuild = '213.*'
|
|
||||||
}
|
|
34
code_samples/editor_basics/build.gradle.kts
Normal file
34
code_samples/editor_basics/build.gradle.kts
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
// Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||||
|
|
||||||
|
plugins {
|
||||||
|
id("java")
|
||||||
|
id("org.jetbrains.intellij") version "1.4.0"
|
||||||
|
}
|
||||||
|
|
||||||
|
group = "com.intellij.sdk"
|
||||||
|
version = "2.0.0"
|
||||||
|
|
||||||
|
repositories {
|
||||||
|
mavenCentral()
|
||||||
|
}
|
||||||
|
|
||||||
|
java {
|
||||||
|
sourceCompatibility = JavaVersion.VERSION_11
|
||||||
|
}
|
||||||
|
|
||||||
|
// See https://github.com/JetBrains/gradle-intellij-plugin/
|
||||||
|
intellij {
|
||||||
|
version.set("2021.1.3")
|
||||||
|
}
|
||||||
|
|
||||||
|
tasks {
|
||||||
|
buildSearchableOptions {
|
||||||
|
enabled = false
|
||||||
|
}
|
||||||
|
|
||||||
|
patchPluginXml {
|
||||||
|
version.set("${project.version}")
|
||||||
|
sinceBuild.set("211")
|
||||||
|
untilBuild.set("213.*")
|
||||||
|
}
|
||||||
|
}
|
@ -1,3 +0,0 @@
|
|||||||
// Copyright 2000-2022 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.
|
|
||||||
|
|
||||||
rootProject.name = 'editor'
|
|
3
code_samples/editor_basics/settings.gradle.kts
Normal file
3
code_samples/editor_basics/settings.gradle.kts
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
// Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||||
|
|
||||||
|
rootProject.name = "editor"
|
@ -1,30 +0,0 @@
|
|||||||
// Copyright 2000-2022 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.
|
|
||||||
|
|
||||||
plugins {
|
|
||||||
id 'java'
|
|
||||||
id 'org.jetbrains.intellij' version '1.4.0'
|
|
||||||
}
|
|
||||||
|
|
||||||
group 'org.intellij.sdk'
|
|
||||||
version '2.0.0'
|
|
||||||
|
|
||||||
sourceCompatibility = 11
|
|
||||||
|
|
||||||
repositories {
|
|
||||||
mavenCentral()
|
|
||||||
}
|
|
||||||
|
|
||||||
// See https://github.com/JetBrains/gradle-intellij-plugin/
|
|
||||||
intellij {
|
|
||||||
version = '2021.1.3'
|
|
||||||
}
|
|
||||||
|
|
||||||
buildSearchableOptions {
|
|
||||||
enabled = false
|
|
||||||
}
|
|
||||||
|
|
||||||
patchPluginXml {
|
|
||||||
version = project.version
|
|
||||||
sinceBuild = '211'
|
|
||||||
untilBuild = '213.*'
|
|
||||||
}
|
|
34
code_samples/facet_basics/build.gradle.kts
Normal file
34
code_samples/facet_basics/build.gradle.kts
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
// Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||||
|
|
||||||
|
plugins {
|
||||||
|
id("java")
|
||||||
|
id("org.jetbrains.intellij") version "1.4.0"
|
||||||
|
}
|
||||||
|
|
||||||
|
group = "org.intellij.sdk"
|
||||||
|
version = "2.0.0"
|
||||||
|
|
||||||
|
repositories {
|
||||||
|
mavenCentral()
|
||||||
|
}
|
||||||
|
|
||||||
|
java {
|
||||||
|
sourceCompatibility = JavaVersion.VERSION_11
|
||||||
|
}
|
||||||
|
|
||||||
|
// See https://github.com/JetBrains/gradle-intellij-plugin/
|
||||||
|
intellij {
|
||||||
|
version.set("2021.1.3")
|
||||||
|
}
|
||||||
|
|
||||||
|
tasks {
|
||||||
|
buildSearchableOptions {
|
||||||
|
enabled = false
|
||||||
|
}
|
||||||
|
|
||||||
|
patchPluginXml {
|
||||||
|
version.set("${project.version}")
|
||||||
|
sinceBuild.set("211")
|
||||||
|
untilBuild.set("213.*")
|
||||||
|
}
|
||||||
|
}
|
@ -1,3 +0,0 @@
|
|||||||
// Copyright 2000-2022 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.
|
|
||||||
|
|
||||||
rootProject.name = 'facet'
|
|
3
code_samples/facet_basics/settings.gradle.kts
Normal file
3
code_samples/facet_basics/settings.gradle.kts
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
// Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||||
|
|
||||||
|
rootProject.name = "facet"
|
@ -1,31 +0,0 @@
|
|||||||
// Copyright 2000-2022 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.
|
|
||||||
|
|
||||||
plugins {
|
|
||||||
id 'java'
|
|
||||||
id 'org.jetbrains.intellij' version '1.4.0'
|
|
||||||
}
|
|
||||||
|
|
||||||
group 'org.intellij.sdk'
|
|
||||||
version '2.0.0'
|
|
||||||
|
|
||||||
sourceCompatibility = 11
|
|
||||||
|
|
||||||
repositories {
|
|
||||||
mavenCentral()
|
|
||||||
}
|
|
||||||
|
|
||||||
// See https://github.com/JetBrains/gradle-intellij-plugin/
|
|
||||||
intellij {
|
|
||||||
version = '2021.1.3'
|
|
||||||
plugins = ['com.intellij.java']
|
|
||||||
}
|
|
||||||
|
|
||||||
buildSearchableOptions {
|
|
||||||
enabled = false
|
|
||||||
}
|
|
||||||
|
|
||||||
patchPluginXml {
|
|
||||||
version = project.version
|
|
||||||
sinceBuild = '202'
|
|
||||||
untilBuild = '203.*'
|
|
||||||
}
|
|
35
code_samples/framework_basics/build.gradle.kts
Normal file
35
code_samples/framework_basics/build.gradle.kts
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
// Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||||
|
|
||||||
|
plugins {
|
||||||
|
id("java")
|
||||||
|
id("org.jetbrains.intellij") version "1.4.0"
|
||||||
|
}
|
||||||
|
|
||||||
|
group = "org.intellij.sdk"
|
||||||
|
version = "2.0.0"
|
||||||
|
|
||||||
|
repositories {
|
||||||
|
mavenCentral()
|
||||||
|
}
|
||||||
|
|
||||||
|
java {
|
||||||
|
sourceCompatibility = JavaVersion.VERSION_11
|
||||||
|
}
|
||||||
|
|
||||||
|
// See https://github.com/JetBrains/gradle-intellij-plugin/
|
||||||
|
intellij {
|
||||||
|
version.set("2021.1.3")
|
||||||
|
plugins.set(listOf("com.intellij.java"))
|
||||||
|
}
|
||||||
|
|
||||||
|
tasks {
|
||||||
|
buildSearchableOptions {
|
||||||
|
enabled = false
|
||||||
|
}
|
||||||
|
|
||||||
|
patchPluginXml {
|
||||||
|
version.set("${project.version}")
|
||||||
|
sinceBuild.set("202")
|
||||||
|
untilBuild.set("203.*")
|
||||||
|
}
|
||||||
|
}
|
@ -1,3 +0,0 @@
|
|||||||
// Copyright 2000-2022 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.
|
|
||||||
|
|
||||||
rootProject.name = 'framework'
|
|
3
code_samples/framework_basics/settings.gradle.kts
Normal file
3
code_samples/framework_basics/settings.gradle.kts
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
// Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||||
|
|
||||||
|
rootProject.name = "framework"
|
@ -1,30 +0,0 @@
|
|||||||
// Copyright 2000-2022 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.
|
|
||||||
|
|
||||||
plugins {
|
|
||||||
id 'java'
|
|
||||||
id 'org.jetbrains.intellij' version '1.4.0'
|
|
||||||
}
|
|
||||||
|
|
||||||
group 'org.intellij.sdk'
|
|
||||||
version '2.0.0'
|
|
||||||
|
|
||||||
sourceCompatibility = 11
|
|
||||||
|
|
||||||
repositories {
|
|
||||||
mavenCentral()
|
|
||||||
}
|
|
||||||
|
|
||||||
// See https://github.com/JetBrains/gradle-intellij-plugin/
|
|
||||||
intellij {
|
|
||||||
version = '2021.1.3'
|
|
||||||
}
|
|
||||||
|
|
||||||
buildSearchableOptions {
|
|
||||||
enabled = false
|
|
||||||
}
|
|
||||||
|
|
||||||
patchPluginXml {
|
|
||||||
version = project.version
|
|
||||||
sinceBuild = '211'
|
|
||||||
untilBuild = '213.*'
|
|
||||||
}
|
|
34
code_samples/inspection_basics/build.gradle.kts
Normal file
34
code_samples/inspection_basics/build.gradle.kts
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
// Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||||
|
|
||||||
|
plugins {
|
||||||
|
id("java")
|
||||||
|
id("org.jetbrains.intellij") version "1.4.0"
|
||||||
|
}
|
||||||
|
|
||||||
|
group = "com.intellij.sdk"
|
||||||
|
version = "2.0.0"
|
||||||
|
|
||||||
|
repositories {
|
||||||
|
mavenCentral()
|
||||||
|
}
|
||||||
|
|
||||||
|
java {
|
||||||
|
sourceCompatibility = JavaVersion.VERSION_11
|
||||||
|
}
|
||||||
|
|
||||||
|
// See https://github.com/JetBrains/gradle-intellij-plugin/
|
||||||
|
intellij {
|
||||||
|
version.set("2021.1.3")
|
||||||
|
}
|
||||||
|
|
||||||
|
tasks {
|
||||||
|
buildSearchableOptions {
|
||||||
|
enabled = false
|
||||||
|
}
|
||||||
|
|
||||||
|
patchPluginXml {
|
||||||
|
version.set("${project.version}")
|
||||||
|
sinceBuild.set("211")
|
||||||
|
untilBuild.set("213.*")
|
||||||
|
}
|
||||||
|
}
|
@ -1,3 +0,0 @@
|
|||||||
// Copyright 2000-2022 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.
|
|
||||||
|
|
||||||
rootProject.name = 'inspection'
|
|
3
code_samples/inspection_basics/settings.gradle.kts
Normal file
3
code_samples/inspection_basics/settings.gradle.kts
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
// Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||||
|
|
||||||
|
rootProject.name = "inspection"
|
@ -1,42 +0,0 @@
|
|||||||
// Copyright 2000-2022 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.
|
|
||||||
|
|
||||||
plugins {
|
|
||||||
id 'java'
|
|
||||||
id 'org.jetbrains.intellij' version '1.4.0'
|
|
||||||
id 'org.jetbrains.kotlin.jvm' version '1.6.10'
|
|
||||||
}
|
|
||||||
|
|
||||||
group 'org.intellij.sdk'
|
|
||||||
version '2.0.0'
|
|
||||||
|
|
||||||
sourceCompatibility = 11
|
|
||||||
|
|
||||||
repositories {
|
|
||||||
mavenCentral()
|
|
||||||
}
|
|
||||||
|
|
||||||
dependencies {
|
|
||||||
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
|
|
||||||
}
|
|
||||||
|
|
||||||
// See https://github.com/JetBrains/gradle-intellij-plugin/
|
|
||||||
intellij {
|
|
||||||
version = '2021.1.3'
|
|
||||||
}
|
|
||||||
|
|
||||||
buildSearchableOptions {
|
|
||||||
enabled = false
|
|
||||||
}
|
|
||||||
|
|
||||||
patchPluginXml {
|
|
||||||
version = project.version
|
|
||||||
sinceBuild = '211'
|
|
||||||
untilBuild = '213.*'
|
|
||||||
}
|
|
||||||
|
|
||||||
compileKotlin {
|
|
||||||
kotlinOptions.jvmTarget = "11"
|
|
||||||
}
|
|
||||||
compileTestKotlin {
|
|
||||||
kotlinOptions.jvmTarget = "11"
|
|
||||||
}
|
|
43
code_samples/kotlin_demo/build.gradle.kts
Normal file
43
code_samples/kotlin_demo/build.gradle.kts
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
// Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||||
|
|
||||||
|
plugins {
|
||||||
|
id("java")
|
||||||
|
id("org.jetbrains.intellij") version "1.4.0"
|
||||||
|
id("org.jetbrains.kotlin.jvm") version "1.6.10"
|
||||||
|
}
|
||||||
|
|
||||||
|
group = "org.intellij.sdk"
|
||||||
|
version = "2.0.0"
|
||||||
|
|
||||||
|
repositories {
|
||||||
|
mavenCentral()
|
||||||
|
}
|
||||||
|
|
||||||
|
java {
|
||||||
|
sourceCompatibility = JavaVersion.VERSION_11
|
||||||
|
}
|
||||||
|
|
||||||
|
// See https://github.com/JetBrains/gradle-intellij-plugin/
|
||||||
|
intellij {
|
||||||
|
version.set("2021.1.3")
|
||||||
|
}
|
||||||
|
|
||||||
|
tasks {
|
||||||
|
buildSearchableOptions {
|
||||||
|
enabled = false
|
||||||
|
}
|
||||||
|
|
||||||
|
patchPluginXml {
|
||||||
|
version.set("${project.version}")
|
||||||
|
sinceBuild.set("211")
|
||||||
|
untilBuild.set("213.*")
|
||||||
|
}
|
||||||
|
|
||||||
|
compileKotlin {
|
||||||
|
kotlinOptions.jvmTarget = "11"
|
||||||
|
}
|
||||||
|
|
||||||
|
compileTestKotlin {
|
||||||
|
kotlinOptions.jvmTarget = "11"
|
||||||
|
}
|
||||||
|
}
|
@ -1,3 +0,0 @@
|
|||||||
// Copyright 2000-2022 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.
|
|
||||||
|
|
||||||
rootProject.name = 'kotlin'
|
|
3
code_samples/kotlin_demo/settings.gradle.kts
Normal file
3
code_samples/kotlin_demo/settings.gradle.kts
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
// Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||||
|
|
||||||
|
rootProject.name = "kotlin"
|
@ -1,30 +0,0 @@
|
|||||||
// Copyright 2000-2022 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.
|
|
||||||
|
|
||||||
plugins {
|
|
||||||
id 'java'
|
|
||||||
id 'org.jetbrains.intellij' version '1.4.0'
|
|
||||||
}
|
|
||||||
|
|
||||||
group 'org.intellij.sdk'
|
|
||||||
version '2.0.0'
|
|
||||||
|
|
||||||
sourceCompatibility = 11
|
|
||||||
|
|
||||||
repositories {
|
|
||||||
mavenCentral()
|
|
||||||
}
|
|
||||||
|
|
||||||
// See https://github.com/JetBrains/gradle-intellij-plugin/
|
|
||||||
intellij {
|
|
||||||
version = '2021.1.3'
|
|
||||||
}
|
|
||||||
|
|
||||||
buildSearchableOptions {
|
|
||||||
enabled = false
|
|
||||||
}
|
|
||||||
|
|
||||||
patchPluginXml {
|
|
||||||
version = project.version
|
|
||||||
sinceBuild = '211'
|
|
||||||
untilBuild = '213.*'
|
|
||||||
}
|
|
34
code_samples/live_templates/build.gradle.kts
Normal file
34
code_samples/live_templates/build.gradle.kts
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
// Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||||
|
|
||||||
|
plugins {
|
||||||
|
id("java")
|
||||||
|
id("org.jetbrains.intellij") version "1.4.0"
|
||||||
|
}
|
||||||
|
|
||||||
|
group = "org.intellij.sdk"
|
||||||
|
version = "2.0.0"
|
||||||
|
|
||||||
|
repositories {
|
||||||
|
mavenCentral()
|
||||||
|
}
|
||||||
|
|
||||||
|
java {
|
||||||
|
sourceCompatibility = JavaVersion.VERSION_11
|
||||||
|
}
|
||||||
|
|
||||||
|
// See https://github.com/JetBrains/gradle-intellij-plugin/
|
||||||
|
intellij {
|
||||||
|
version.set("2021.1.3")
|
||||||
|
}
|
||||||
|
|
||||||
|
tasks {
|
||||||
|
buildSearchableOptions {
|
||||||
|
enabled = false
|
||||||
|
}
|
||||||
|
|
||||||
|
patchPluginXml {
|
||||||
|
version.set("${project.version}")
|
||||||
|
sinceBuild.set("211")
|
||||||
|
untilBuild.set("213.*")
|
||||||
|
}
|
||||||
|
}
|
@ -1,3 +0,0 @@
|
|||||||
// Copyright 2000-2022 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.
|
|
||||||
|
|
||||||
rootProject.name = 'live_templates'
|
|
3
code_samples/live_templates/settings.gradle.kts
Normal file
3
code_samples/live_templates/settings.gradle.kts
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
// Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||||
|
|
||||||
|
rootProject.name = "live_templates"
|
@ -1,30 +0,0 @@
|
|||||||
// Copyright 2000-2022 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.
|
|
||||||
|
|
||||||
plugins {
|
|
||||||
id 'java'
|
|
||||||
id 'org.jetbrains.intellij' version '1.4.0'
|
|
||||||
}
|
|
||||||
|
|
||||||
group 'org.intellij.sdk'
|
|
||||||
version '2.0.0'
|
|
||||||
|
|
||||||
sourceCompatibility = 11
|
|
||||||
|
|
||||||
repositories {
|
|
||||||
mavenCentral()
|
|
||||||
}
|
|
||||||
|
|
||||||
// See https://github.com/JetBrains/gradle-intellij-plugin/
|
|
||||||
intellij {
|
|
||||||
version = '2021.1.3'
|
|
||||||
}
|
|
||||||
|
|
||||||
buildSearchableOptions {
|
|
||||||
enabled = false
|
|
||||||
}
|
|
||||||
|
|
||||||
patchPluginXml {
|
|
||||||
version = project.version
|
|
||||||
sinceBuild = '211'
|
|
||||||
untilBuild = '213.*'
|
|
||||||
}
|
|
34
code_samples/max_opened_projects/build.gradle.kts
Normal file
34
code_samples/max_opened_projects/build.gradle.kts
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
// Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||||
|
|
||||||
|
plugins {
|
||||||
|
id("java")
|
||||||
|
id("org.jetbrains.intellij") version "1.4.0"
|
||||||
|
}
|
||||||
|
|
||||||
|
group = "org.intellij.sdk"
|
||||||
|
version = "2.0.0"
|
||||||
|
|
||||||
|
repositories {
|
||||||
|
mavenCentral()
|
||||||
|
}
|
||||||
|
|
||||||
|
java {
|
||||||
|
sourceCompatibility = JavaVersion.VERSION_11
|
||||||
|
}
|
||||||
|
|
||||||
|
// See https://github.com/JetBrains/gradle-intellij-plugin/
|
||||||
|
intellij {
|
||||||
|
version.set("2021.1.3")
|
||||||
|
}
|
||||||
|
|
||||||
|
tasks {
|
||||||
|
buildSearchableOptions {
|
||||||
|
enabled = false
|
||||||
|
}
|
||||||
|
|
||||||
|
patchPluginXml {
|
||||||
|
version.set("${project.version}")
|
||||||
|
sinceBuild.set("211")
|
||||||
|
untilBuild.set("213.*")
|
||||||
|
}
|
||||||
|
}
|
@ -1,3 +0,0 @@
|
|||||||
// Copyright 2000-2022 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.
|
|
||||||
|
|
||||||
rootProject.name = 'maxOpenProjects'
|
|
3
code_samples/max_opened_projects/settings.gradle.kts
Normal file
3
code_samples/max_opened_projects/settings.gradle.kts
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
// Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||||
|
|
||||||
|
rootProject.name = "maxOpenProjects"
|
@ -1,30 +0,0 @@
|
|||||||
// Copyright 2000-2022 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.
|
|
||||||
|
|
||||||
plugins {
|
|
||||||
id 'java'
|
|
||||||
id 'org.jetbrains.intellij' version '1.4.0'
|
|
||||||
}
|
|
||||||
|
|
||||||
group 'org.intellij.sdk'
|
|
||||||
version '2.0.0'
|
|
||||||
|
|
||||||
sourceCompatibility = 11
|
|
||||||
|
|
||||||
repositories {
|
|
||||||
mavenCentral()
|
|
||||||
}
|
|
||||||
|
|
||||||
// See https://github.com/JetBrains/gradle-intellij-plugin/
|
|
||||||
intellij {
|
|
||||||
version = '2021.1.3'
|
|
||||||
}
|
|
||||||
|
|
||||||
buildSearchableOptions {
|
|
||||||
enabled = false
|
|
||||||
}
|
|
||||||
|
|
||||||
patchPluginXml {
|
|
||||||
version = project.version
|
|
||||||
sinceBuild = '211'
|
|
||||||
untilBuild = '213.*'
|
|
||||||
}
|
|
34
code_samples/module/build.gradle.kts
Normal file
34
code_samples/module/build.gradle.kts
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
// Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||||
|
|
||||||
|
plugins {
|
||||||
|
id("java")
|
||||||
|
id("org.jetbrains.intellij") version "1.4.0"
|
||||||
|
}
|
||||||
|
|
||||||
|
group = "org.intellij.sdk"
|
||||||
|
version = "2.0.0"
|
||||||
|
|
||||||
|
repositories {
|
||||||
|
mavenCentral()
|
||||||
|
}
|
||||||
|
|
||||||
|
java {
|
||||||
|
sourceCompatibility = JavaVersion.VERSION_11
|
||||||
|
}
|
||||||
|
|
||||||
|
// See https://github.com/JetBrains/gradle-intellij-plugin/
|
||||||
|
intellij {
|
||||||
|
version.set("2021.1.3")
|
||||||
|
}
|
||||||
|
|
||||||
|
tasks {
|
||||||
|
buildSearchableOptions {
|
||||||
|
enabled = false
|
||||||
|
}
|
||||||
|
|
||||||
|
patchPluginXml {
|
||||||
|
version.set("${project.version}")
|
||||||
|
sinceBuild.set("211")
|
||||||
|
untilBuild.set("213.*")
|
||||||
|
}
|
||||||
|
}
|
@ -1,3 +0,0 @@
|
|||||||
// Copyright 2000-2022 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.
|
|
||||||
|
|
||||||
rootProject.name = 'module'
|
|
3
code_samples/module/settings.gradle.kts
Normal file
3
code_samples/module/settings.gradle.kts
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
// Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||||
|
|
||||||
|
rootProject.name = "module"
|
@ -1,33 +0,0 @@
|
|||||||
// Copyright 2000-2022 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.
|
|
||||||
|
|
||||||
plugins {
|
|
||||||
id 'java'
|
|
||||||
id 'org.jetbrains.intellij' version '1.4.0'
|
|
||||||
}
|
|
||||||
|
|
||||||
group 'com.intellij.sdk'
|
|
||||||
version '0.1.0'
|
|
||||||
|
|
||||||
sourceCompatibility = 11
|
|
||||||
|
|
||||||
repositories {
|
|
||||||
mavenCentral()
|
|
||||||
}
|
|
||||||
|
|
||||||
// See https://github.com/JetBrains/gradle-intellij-plugin/
|
|
||||||
intellij {
|
|
||||||
version = '2021.2'
|
|
||||||
type = 'PY'
|
|
||||||
plugins = ["Pythonid"]
|
|
||||||
downloadSources = false
|
|
||||||
}
|
|
||||||
|
|
||||||
buildSearchableOptions {
|
|
||||||
enabled = false
|
|
||||||
}
|
|
||||||
|
|
||||||
patchPluginXml {
|
|
||||||
version = project.version
|
|
||||||
sinceBuild = '212'
|
|
||||||
untilBuild = '213.*'
|
|
||||||
}
|
|
@ -0,0 +1,37 @@
|
|||||||
|
// Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||||
|
|
||||||
|
plugins {
|
||||||
|
id("java")
|
||||||
|
id("org.jetbrains.intellij") version "1.4.0"
|
||||||
|
}
|
||||||
|
|
||||||
|
group = "com.intellij.sdk"
|
||||||
|
version = "0.1.0"
|
||||||
|
|
||||||
|
repositories {
|
||||||
|
mavenCentral()
|
||||||
|
}
|
||||||
|
|
||||||
|
java {
|
||||||
|
sourceCompatibility = JavaVersion.VERSION_11
|
||||||
|
}
|
||||||
|
|
||||||
|
// See https://github.com/JetBrains/gradle-intellij-plugin/
|
||||||
|
intellij {
|
||||||
|
version.set("2021.2")
|
||||||
|
type.set("PY")
|
||||||
|
plugins.set(listOf("Pythonid"))
|
||||||
|
downloadSources.set(false)
|
||||||
|
}
|
||||||
|
|
||||||
|
tasks {
|
||||||
|
buildSearchableOptions {
|
||||||
|
enabled = false
|
||||||
|
}
|
||||||
|
|
||||||
|
patchPluginXml {
|
||||||
|
version.set("${project.version}")
|
||||||
|
sinceBuild.set("212")
|
||||||
|
untilBuild.set("213.*")
|
||||||
|
}
|
||||||
|
}
|
@ -1,3 +0,0 @@
|
|||||||
// Copyright 2000-2022 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.
|
|
||||||
|
|
||||||
rootProject.name = 'pycharm'
|
|
@ -0,0 +1,3 @@
|
|||||||
|
// Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||||
|
|
||||||
|
rootProject.name = "pycharm"
|
@ -1,31 +0,0 @@
|
|||||||
// Copyright 2000-2022 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.
|
|
||||||
|
|
||||||
plugins {
|
|
||||||
id 'java'
|
|
||||||
id 'org.jetbrains.intellij' version '1.4.0'
|
|
||||||
}
|
|
||||||
|
|
||||||
group 'org.intellij.sdk'
|
|
||||||
version '2.0.0'
|
|
||||||
|
|
||||||
sourceCompatibility = 11
|
|
||||||
|
|
||||||
repositories {
|
|
||||||
mavenCentral()
|
|
||||||
}
|
|
||||||
|
|
||||||
// See https://github.com/JetBrains/gradle-intellij-plugin/
|
|
||||||
intellij {
|
|
||||||
version = '2021.1.3'
|
|
||||||
plugins = ['com.intellij.java']
|
|
||||||
}
|
|
||||||
|
|
||||||
buildSearchableOptions {
|
|
||||||
enabled = false
|
|
||||||
}
|
|
||||||
|
|
||||||
patchPluginXml {
|
|
||||||
version = project.version
|
|
||||||
sinceBuild = '211'
|
|
||||||
untilBuild = '213.*'
|
|
||||||
}
|
|
35
code_samples/project_model/build.gradle.kts
Normal file
35
code_samples/project_model/build.gradle.kts
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
// Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||||
|
|
||||||
|
plugins {
|
||||||
|
id("java")
|
||||||
|
id("org.jetbrains.intellij") version "1.4.0"
|
||||||
|
}
|
||||||
|
|
||||||
|
group = "org.intellij.sdk"
|
||||||
|
version = "2.0.0"
|
||||||
|
|
||||||
|
repositories {
|
||||||
|
mavenCentral()
|
||||||
|
}
|
||||||
|
|
||||||
|
java {
|
||||||
|
sourceCompatibility = JavaVersion.VERSION_11
|
||||||
|
}
|
||||||
|
|
||||||
|
// See https://github.com/JetBrains/gradle-intellij-plugin/
|
||||||
|
intellij {
|
||||||
|
version.set("2021.1.3")
|
||||||
|
plugins.set(listOf("com.intellij.java"))
|
||||||
|
}
|
||||||
|
|
||||||
|
tasks {
|
||||||
|
buildSearchableOptions {
|
||||||
|
enabled = false
|
||||||
|
}
|
||||||
|
|
||||||
|
patchPluginXml {
|
||||||
|
version.set("${project.version}")
|
||||||
|
sinceBuild.set("211")
|
||||||
|
untilBuild.set("213.*")
|
||||||
|
}
|
||||||
|
}
|
@ -1,3 +0,0 @@
|
|||||||
// Copyright 2000-2022 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.
|
|
||||||
|
|
||||||
rootProject.name = 'project_model'
|
|
3
code_samples/project_model/settings.gradle.kts
Normal file
3
code_samples/project_model/settings.gradle.kts
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
// Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||||
|
|
||||||
|
rootProject.name = "project_model"
|
@ -1,30 +0,0 @@
|
|||||||
// Copyright 2000-2022 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.
|
|
||||||
|
|
||||||
plugins {
|
|
||||||
id 'java'
|
|
||||||
id 'org.jetbrains.intellij' version '1.4.0'
|
|
||||||
}
|
|
||||||
|
|
||||||
group 'org.intellij.sdk'
|
|
||||||
version '2.0.0'
|
|
||||||
|
|
||||||
sourceCompatibility = 11
|
|
||||||
|
|
||||||
repositories {
|
|
||||||
mavenCentral()
|
|
||||||
}
|
|
||||||
|
|
||||||
// See https://github.com/JetBrains/gradle-intellij-plugin/
|
|
||||||
intellij {
|
|
||||||
version = '2021.1.3'
|
|
||||||
}
|
|
||||||
|
|
||||||
buildSearchableOptions {
|
|
||||||
enabled = false
|
|
||||||
}
|
|
||||||
|
|
||||||
patchPluginXml {
|
|
||||||
version = project.version
|
|
||||||
sinceBuild = '211'
|
|
||||||
untilBuild = '213.*'
|
|
||||||
}
|
|
34
code_samples/project_view_pane/build.gradle.kts
Normal file
34
code_samples/project_view_pane/build.gradle.kts
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
// Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||||
|
|
||||||
|
plugins {
|
||||||
|
id("java")
|
||||||
|
id("org.jetbrains.intellij") version "1.4.0"
|
||||||
|
}
|
||||||
|
|
||||||
|
group = "org.intellij.sdk"
|
||||||
|
version = "2.0.0"
|
||||||
|
|
||||||
|
repositories {
|
||||||
|
mavenCentral()
|
||||||
|
}
|
||||||
|
|
||||||
|
java {
|
||||||
|
sourceCompatibility = JavaVersion.VERSION_11
|
||||||
|
}
|
||||||
|
|
||||||
|
// See https://github.com/JetBrains/gradle-intellij-plugin/
|
||||||
|
intellij {
|
||||||
|
version.set("2021.1.3")
|
||||||
|
}
|
||||||
|
|
||||||
|
tasks {
|
||||||
|
buildSearchableOptions {
|
||||||
|
enabled = false
|
||||||
|
}
|
||||||
|
|
||||||
|
patchPluginXml {
|
||||||
|
version.set("${project.version}")
|
||||||
|
sinceBuild.set("211")
|
||||||
|
untilBuild.set("213.*")
|
||||||
|
}
|
||||||
|
}
|
@ -1,3 +0,0 @@
|
|||||||
// Copyright 2000-2022 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.
|
|
||||||
|
|
||||||
rootProject.name = 'project_view_pane'
|
|
3
code_samples/project_view_pane/settings.gradle.kts
Normal file
3
code_samples/project_view_pane/settings.gradle.kts
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
// Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||||
|
|
||||||
|
rootProject.name = "project_view_pane"
|
@ -1,30 +0,0 @@
|
|||||||
// Copyright 2000-2022 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.
|
|
||||||
|
|
||||||
plugins {
|
|
||||||
id 'java'
|
|
||||||
id 'org.jetbrains.intellij' version '1.4.0'
|
|
||||||
}
|
|
||||||
|
|
||||||
group 'org.intellij.sdk'
|
|
||||||
version '2.0.0'
|
|
||||||
|
|
||||||
sourceCompatibility = 11
|
|
||||||
|
|
||||||
repositories {
|
|
||||||
mavenCentral()
|
|
||||||
}
|
|
||||||
|
|
||||||
// See https://github.com/JetBrains/gradle-intellij-plugin/
|
|
||||||
intellij {
|
|
||||||
version = '2021.1.3'
|
|
||||||
}
|
|
||||||
|
|
||||||
buildSearchableOptions {
|
|
||||||
enabled = false
|
|
||||||
}
|
|
||||||
|
|
||||||
patchPluginXml {
|
|
||||||
version = project.version
|
|
||||||
sinceBuild = '211'
|
|
||||||
untilBuild = '213.*'
|
|
||||||
}
|
|
34
code_samples/project_wizard/build.gradle.kts
Normal file
34
code_samples/project_wizard/build.gradle.kts
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
// Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||||
|
|
||||||
|
plugins {
|
||||||
|
id("java")
|
||||||
|
id("org.jetbrains.intellij") version "1.4.0"
|
||||||
|
}
|
||||||
|
|
||||||
|
group = "org.intellij.sdk"
|
||||||
|
version = "2.0.0"
|
||||||
|
|
||||||
|
repositories {
|
||||||
|
mavenCentral()
|
||||||
|
}
|
||||||
|
|
||||||
|
java {
|
||||||
|
sourceCompatibility = JavaVersion.VERSION_11
|
||||||
|
}
|
||||||
|
|
||||||
|
// See https://github.com/JetBrains/gradle-intellij-plugin/
|
||||||
|
intellij {
|
||||||
|
version.set("2021.1.3")
|
||||||
|
}
|
||||||
|
|
||||||
|
tasks {
|
||||||
|
buildSearchableOptions {
|
||||||
|
enabled = false
|
||||||
|
}
|
||||||
|
|
||||||
|
patchPluginXml {
|
||||||
|
version.set("${project.version}")
|
||||||
|
sinceBuild.set("211")
|
||||||
|
untilBuild.set("213.*")
|
||||||
|
}
|
||||||
|
}
|
@ -1,3 +0,0 @@
|
|||||||
// Copyright 2000-2022 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.
|
|
||||||
|
|
||||||
rootProject.name = 'projectWizard'
|
|
3
code_samples/project_wizard/settings.gradle.kts
Normal file
3
code_samples/project_wizard/settings.gradle.kts
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
// Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||||
|
|
||||||
|
rootProject.name = "projectWizard"
|
@ -1,31 +0,0 @@
|
|||||||
// Copyright 2000-2022 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.
|
|
||||||
|
|
||||||
plugins {
|
|
||||||
id 'java'
|
|
||||||
id 'org.jetbrains.intellij' version '1.4.0'
|
|
||||||
}
|
|
||||||
|
|
||||||
group 'org.intellij.sdk'
|
|
||||||
version '2.0.0'
|
|
||||||
|
|
||||||
sourceCompatibility = 11
|
|
||||||
|
|
||||||
repositories {
|
|
||||||
mavenCentral()
|
|
||||||
}
|
|
||||||
|
|
||||||
// See https://github.com/JetBrains/gradle-intellij-plugin/
|
|
||||||
intellij {
|
|
||||||
version = '2021.1.3'
|
|
||||||
plugins = ['com.intellij.java']
|
|
||||||
}
|
|
||||||
|
|
||||||
buildSearchableOptions {
|
|
||||||
enabled = false
|
|
||||||
}
|
|
||||||
|
|
||||||
patchPluginXml {
|
|
||||||
version = project.version
|
|
||||||
sinceBuild = '211'
|
|
||||||
untilBuild = '213.*'
|
|
||||||
}
|
|
35
code_samples/psi_demo/build.gradle.kts
Normal file
35
code_samples/psi_demo/build.gradle.kts
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
// Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||||
|
|
||||||
|
plugins {
|
||||||
|
id("java")
|
||||||
|
id("org.jetbrains.intellij") version "1.4.0"
|
||||||
|
}
|
||||||
|
|
||||||
|
group = "com.intellij.sdk"
|
||||||
|
version = "2.0.0"
|
||||||
|
|
||||||
|
repositories {
|
||||||
|
mavenCentral()
|
||||||
|
}
|
||||||
|
|
||||||
|
java {
|
||||||
|
sourceCompatibility = JavaVersion.VERSION_11
|
||||||
|
}
|
||||||
|
|
||||||
|
// See https://github.com/JetBrains/gradle-intellij-plugin/
|
||||||
|
intellij {
|
||||||
|
version.set("2021.1.3")
|
||||||
|
plugins.set(listOf("com.intellij.java"))
|
||||||
|
}
|
||||||
|
|
||||||
|
tasks {
|
||||||
|
buildSearchableOptions {
|
||||||
|
enabled = false
|
||||||
|
}
|
||||||
|
|
||||||
|
patchPluginXml {
|
||||||
|
version.set("${project.version}")
|
||||||
|
sinceBuild.set("211")
|
||||||
|
untilBuild.set("213.*")
|
||||||
|
}
|
||||||
|
}
|
@ -1,3 +0,0 @@
|
|||||||
// Copyright 2000-2022 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.
|
|
||||||
|
|
||||||
rootProject.name = 'psi'
|
|
3
code_samples/psi_demo/settings.gradle.kts
Normal file
3
code_samples/psi_demo/settings.gradle.kts
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
// Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||||
|
|
||||||
|
rootProject.name = "psi"
|
@ -1,30 +0,0 @@
|
|||||||
// Copyright 2000-2022 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.
|
|
||||||
|
|
||||||
plugins {
|
|
||||||
id 'java'
|
|
||||||
id 'org.jetbrains.intellij' version '1.4.0'
|
|
||||||
}
|
|
||||||
|
|
||||||
group 'org.intellij.sdk'
|
|
||||||
version '2.0.0'
|
|
||||||
|
|
||||||
sourceCompatibility = 11
|
|
||||||
|
|
||||||
repositories {
|
|
||||||
mavenCentral()
|
|
||||||
}
|
|
||||||
|
|
||||||
// See https://github.com/JetBrains/gradle-intellij-plugin/
|
|
||||||
intellij {
|
|
||||||
version = '2021.1.3'
|
|
||||||
}
|
|
||||||
|
|
||||||
buildSearchableOptions {
|
|
||||||
enabled = false
|
|
||||||
}
|
|
||||||
|
|
||||||
patchPluginXml {
|
|
||||||
version = project.version
|
|
||||||
sinceBuild = '211'
|
|
||||||
untilBuild = '213.*'
|
|
||||||
}
|
|
34
code_samples/run_configuration/build.gradle.kts
Normal file
34
code_samples/run_configuration/build.gradle.kts
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
// Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||||
|
|
||||||
|
plugins {
|
||||||
|
id("java")
|
||||||
|
id("org.jetbrains.intellij") version "1.4.0"
|
||||||
|
}
|
||||||
|
|
||||||
|
group = "com.intellij.sdk"
|
||||||
|
version = "2.0.0"
|
||||||
|
|
||||||
|
repositories {
|
||||||
|
mavenCentral()
|
||||||
|
}
|
||||||
|
|
||||||
|
java {
|
||||||
|
sourceCompatibility = JavaVersion.VERSION_11
|
||||||
|
}
|
||||||
|
|
||||||
|
// See https://github.com/JetBrains/gradle-intellij-plugin/
|
||||||
|
intellij {
|
||||||
|
version.set("2021.1.3")
|
||||||
|
}
|
||||||
|
|
||||||
|
tasks {
|
||||||
|
buildSearchableOptions {
|
||||||
|
enabled = false
|
||||||
|
}
|
||||||
|
|
||||||
|
patchPluginXml {
|
||||||
|
version.set("${project.version}")
|
||||||
|
sinceBuild.set("211")
|
||||||
|
untilBuild.set("213.*")
|
||||||
|
}
|
||||||
|
}
|
@ -1,3 +0,0 @@
|
|||||||
// Copyright 2000-2022 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.
|
|
||||||
|
|
||||||
rootProject.name = 'runConfiguration'
|
|
3
code_samples/run_configuration/settings.gradle.kts
Normal file
3
code_samples/run_configuration/settings.gradle.kts
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
// Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||||
|
|
||||||
|
rootProject.name = "runConfiguration"
|
@ -1,30 +0,0 @@
|
|||||||
// Copyright 2000-2022 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.
|
|
||||||
|
|
||||||
plugins {
|
|
||||||
id 'java'
|
|
||||||
id 'org.jetbrains.intellij' version '1.4.0'
|
|
||||||
}
|
|
||||||
|
|
||||||
group 'org.intellij.sdk'
|
|
||||||
version '2.0.0'
|
|
||||||
|
|
||||||
sourceCompatibility = 11
|
|
||||||
|
|
||||||
repositories {
|
|
||||||
mavenCentral()
|
|
||||||
}
|
|
||||||
|
|
||||||
// See https://github.com/JetBrains/gradle-intellij-plugin/
|
|
||||||
intellij {
|
|
||||||
version = '2021.1.3'
|
|
||||||
}
|
|
||||||
|
|
||||||
buildSearchableOptions {
|
|
||||||
enabled = false
|
|
||||||
}
|
|
||||||
|
|
||||||
patchPluginXml {
|
|
||||||
version = project.version
|
|
||||||
sinceBuild = '211'
|
|
||||||
untilBuild = '213.*'
|
|
||||||
}
|
|
34
code_samples/settings/build.gradle.kts
Normal file
34
code_samples/settings/build.gradle.kts
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
// Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||||
|
|
||||||
|
plugins {
|
||||||
|
id("java")
|
||||||
|
id("org.jetbrains.intellij") version "1.4.0"
|
||||||
|
}
|
||||||
|
|
||||||
|
group = "org.intellij.sdk"
|
||||||
|
version = "2.0.0"
|
||||||
|
|
||||||
|
repositories {
|
||||||
|
mavenCentral()
|
||||||
|
}
|
||||||
|
|
||||||
|
java {
|
||||||
|
sourceCompatibility = JavaVersion.VERSION_11
|
||||||
|
}
|
||||||
|
|
||||||
|
// See https://github.com/JetBrains/gradle-intellij-plugin/
|
||||||
|
intellij {
|
||||||
|
version.set("2021.1.3")
|
||||||
|
}
|
||||||
|
|
||||||
|
tasks {
|
||||||
|
buildSearchableOptions {
|
||||||
|
enabled = false
|
||||||
|
}
|
||||||
|
|
||||||
|
patchPluginXml {
|
||||||
|
version.set("${project.version}")
|
||||||
|
sinceBuild.set("211")
|
||||||
|
untilBuild.set("213.*")
|
||||||
|
}
|
||||||
|
}
|
@ -1 +0,0 @@
|
|||||||
rootProject.name = 'settings'
|
|
1
code_samples/settings/settings.gradle.kts
Normal file
1
code_samples/settings/settings.gradle.kts
Normal file
@ -0,0 +1 @@
|
|||||||
|
rootProject.name = "settings"
|
@ -1,47 +0,0 @@
|
|||||||
// Copyright 2000-2022 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.
|
|
||||||
|
|
||||||
plugins {
|
|
||||||
id 'java'
|
|
||||||
id 'org.jetbrains.intellij' version '1.4.0'
|
|
||||||
}
|
|
||||||
|
|
||||||
group 'org.intellij.sdk'
|
|
||||||
version '2.0.0'
|
|
||||||
|
|
||||||
sourceCompatibility = 11
|
|
||||||
|
|
||||||
repositories {
|
|
||||||
mavenCentral()
|
|
||||||
}
|
|
||||||
|
|
||||||
test {
|
|
||||||
// This path value is machine-specific placeholder text.
|
|
||||||
// Set idea.home.path to the absolute path to the intellij-community source
|
|
||||||
// on your local machine.
|
|
||||||
// Use variants described in https://docs.gradle.org/current/userguide/build_environment.html
|
|
||||||
// for real world projects.
|
|
||||||
systemProperty "idea.home.path", "/Users/jhake/Documents/source/comm"
|
|
||||||
}
|
|
||||||
|
|
||||||
// Include the generated files in the source set
|
|
||||||
sourceSets.main.java.srcDirs 'src/main/gen'
|
|
||||||
|
|
||||||
dependencies {
|
|
||||||
testImplementation group: 'junit', name: 'junit', version: '4.13.2'
|
|
||||||
}
|
|
||||||
|
|
||||||
// See https://github.com/JetBrains/gradle-intellij-plugin/
|
|
||||||
intellij {
|
|
||||||
version = '2021.1.3'
|
|
||||||
plugins = ['com.intellij.java']
|
|
||||||
}
|
|
||||||
|
|
||||||
buildSearchableOptions {
|
|
||||||
enabled = false
|
|
||||||
}
|
|
||||||
|
|
||||||
patchPluginXml {
|
|
||||||
version = project.version
|
|
||||||
sinceBuild = '211'
|
|
||||||
untilBuild = '213.*'
|
|
||||||
}
|
|
56
code_samples/simple_language_plugin/build.gradle.kts
Normal file
56
code_samples/simple_language_plugin/build.gradle.kts
Normal file
@ -0,0 +1,56 @@
|
|||||||
|
// Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||||
|
|
||||||
|
plugins {
|
||||||
|
id("java")
|
||||||
|
id("org.jetbrains.intellij") version "1.4.0"
|
||||||
|
}
|
||||||
|
|
||||||
|
group = "org.intellij.sdk"
|
||||||
|
version = "2.0.0"
|
||||||
|
|
||||||
|
repositories {
|
||||||
|
mavenCentral()
|
||||||
|
}
|
||||||
|
|
||||||
|
// Include the generated files in the source set
|
||||||
|
sourceSets {
|
||||||
|
main {
|
||||||
|
java {
|
||||||
|
srcDirs("src/main/gen")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
dependencies {
|
||||||
|
testImplementation("junit:junit:4.13.2")
|
||||||
|
}
|
||||||
|
|
||||||
|
java {
|
||||||
|
sourceCompatibility = JavaVersion.VERSION_11
|
||||||
|
}
|
||||||
|
|
||||||
|
// See https://github.com/JetBrains/gradle-intellij-plugin/
|
||||||
|
intellij {
|
||||||
|
version.set("2021.1.3")
|
||||||
|
plugins.set(listOf("com.intellij.java"))
|
||||||
|
}
|
||||||
|
|
||||||
|
tasks {
|
||||||
|
buildSearchableOptions {
|
||||||
|
enabled = false
|
||||||
|
}
|
||||||
|
|
||||||
|
patchPluginXml {
|
||||||
|
version.set("${project.version}")
|
||||||
|
sinceBuild.set("211")
|
||||||
|
untilBuild.set("213.*")
|
||||||
|
}
|
||||||
|
|
||||||
|
test {
|
||||||
|
// This path value is a machine-specific placeholder text.
|
||||||
|
// Set idea.home.path to the absolute path to the intellij-community source
|
||||||
|
// on your local machine. For real world projects, use variants described in:
|
||||||
|
// https://docs.gradle.org/current/userguide/build_environment.html
|
||||||
|
systemProperty("idea.home.path", "/Users/jhake/Documents/source/comm")
|
||||||
|
}
|
||||||
|
}
|
@ -1,3 +0,0 @@
|
|||||||
// Copyright 2000-2022 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.
|
|
||||||
|
|
||||||
rootProject.name = 'simple_language_plugin'
|
|
3
code_samples/simple_language_plugin/settings.gradle.kts
Normal file
3
code_samples/simple_language_plugin/settings.gradle.kts
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
// Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||||
|
|
||||||
|
rootProject.name = "simple_language_plugin"
|
@ -1,30 +0,0 @@
|
|||||||
// Copyright 2000-2022 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.
|
|
||||||
|
|
||||||
plugins {
|
|
||||||
id 'java'
|
|
||||||
id 'org.jetbrains.intellij' version '1.4.0'
|
|
||||||
}
|
|
||||||
|
|
||||||
group 'org.intellij.sdk'
|
|
||||||
version '2.0.0'
|
|
||||||
|
|
||||||
sourceCompatibility = 11
|
|
||||||
|
|
||||||
repositories {
|
|
||||||
mavenCentral()
|
|
||||||
}
|
|
||||||
|
|
||||||
// See https://github.com/JetBrains/gradle-intellij-plugin/
|
|
||||||
intellij {
|
|
||||||
version = '2021.1.3'
|
|
||||||
}
|
|
||||||
|
|
||||||
buildSearchableOptions {
|
|
||||||
enabled = false
|
|
||||||
}
|
|
||||||
|
|
||||||
patchPluginXml {
|
|
||||||
version = project.version
|
|
||||||
sinceBuild = '211'
|
|
||||||
untilBuild = '213.*'
|
|
||||||
}
|
|
34
code_samples/tool_window/build.gradle.kts
Normal file
34
code_samples/tool_window/build.gradle.kts
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
// Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||||
|
|
||||||
|
plugins {
|
||||||
|
id("java")
|
||||||
|
id("org.jetbrains.intellij") version "1.4.0"
|
||||||
|
}
|
||||||
|
|
||||||
|
group = "org.intellij.sdk"
|
||||||
|
version = "2.0.0"
|
||||||
|
|
||||||
|
repositories {
|
||||||
|
mavenCentral()
|
||||||
|
}
|
||||||
|
|
||||||
|
java {
|
||||||
|
sourceCompatibility = JavaVersion.VERSION_11
|
||||||
|
}
|
||||||
|
|
||||||
|
// See https://github.com/JetBrains/gradle-intellij-plugin/
|
||||||
|
intellij {
|
||||||
|
version.set("2021.1.3")
|
||||||
|
}
|
||||||
|
|
||||||
|
tasks {
|
||||||
|
buildSearchableOptions {
|
||||||
|
enabled = false
|
||||||
|
}
|
||||||
|
|
||||||
|
patchPluginXml {
|
||||||
|
version.set("${project.version}")
|
||||||
|
sinceBuild.set("211")
|
||||||
|
untilBuild.set("213.*")
|
||||||
|
}
|
||||||
|
}
|
@ -1,3 +0,0 @@
|
|||||||
// Copyright 2000-2022 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.
|
|
||||||
|
|
||||||
rootProject.name = 'toolWindow'
|
|
3
code_samples/tool_window/settings.gradle.kts
Normal file
3
code_samples/tool_window/settings.gradle.kts
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
// Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||||
|
|
||||||
|
rootProject.name = "toolWindow"
|
@ -1,30 +0,0 @@
|
|||||||
// Copyright 2000-2022 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.
|
|
||||||
|
|
||||||
plugins {
|
|
||||||
id 'java'
|
|
||||||
id 'org.jetbrains.intellij' version '1.4.0'
|
|
||||||
}
|
|
||||||
|
|
||||||
group 'org.intellij.sdk'
|
|
||||||
version '2.0.0'
|
|
||||||
|
|
||||||
sourceCompatibility = 11
|
|
||||||
|
|
||||||
repositories {
|
|
||||||
mavenCentral()
|
|
||||||
}
|
|
||||||
|
|
||||||
// See https://github.com/JetBrains/gradle-intellij-plugin/
|
|
||||||
intellij {
|
|
||||||
version = '2021.1.3'
|
|
||||||
}
|
|
||||||
|
|
||||||
buildSearchableOptions {
|
|
||||||
enabled = false
|
|
||||||
}
|
|
||||||
|
|
||||||
patchPluginXml {
|
|
||||||
version = project.version
|
|
||||||
sinceBuild = '211'
|
|
||||||
untilBuild = '213.*'
|
|
||||||
}
|
|
34
code_samples/tree_structure_provider/build.gradle.kts
Normal file
34
code_samples/tree_structure_provider/build.gradle.kts
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
// Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||||
|
|
||||||
|
plugins {
|
||||||
|
id("java")
|
||||||
|
id("org.jetbrains.intellij") version "1.4.0"
|
||||||
|
}
|
||||||
|
|
||||||
|
group = "org.intellij.sdk"
|
||||||
|
version = "2.0.0"
|
||||||
|
|
||||||
|
repositories {
|
||||||
|
mavenCentral()
|
||||||
|
}
|
||||||
|
|
||||||
|
java {
|
||||||
|
sourceCompatibility = JavaVersion.VERSION_11
|
||||||
|
}
|
||||||
|
|
||||||
|
// See https://github.com/JetBrains/gradle-intellij-plugin/
|
||||||
|
intellij {
|
||||||
|
version.set("2021.1.3")
|
||||||
|
}
|
||||||
|
|
||||||
|
tasks {
|
||||||
|
buildSearchableOptions {
|
||||||
|
enabled = false
|
||||||
|
}
|
||||||
|
|
||||||
|
patchPluginXml {
|
||||||
|
version.set("${project.version}")
|
||||||
|
sinceBuild.set("211")
|
||||||
|
untilBuild.set("213.*")
|
||||||
|
}
|
||||||
|
}
|
@ -1,3 +0,0 @@
|
|||||||
// Copyright 2000-2022 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.
|
|
||||||
|
|
||||||
rootProject.name = 'treeStructureProvider'
|
|
3
code_samples/tree_structure_provider/settings.gradle.kts
Normal file
3
code_samples/tree_structure_provider/settings.gradle.kts
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
// Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||||
|
|
||||||
|
rootProject.name = "treeStructureProvider"
|
@ -11,6 +11,9 @@ See [GitHub Changelog](https://github.com/JetBrains/intellij-sdk-docs/commits/ma
|
|||||||
|
|
||||||
### March-22
|
### March-22
|
||||||
|
|
||||||
|
Code Samples Build Scripts Migrated to Kotlin
|
||||||
|
: [All samples](https://github.com/JetBrains/intellij-sdk-docs/tree/main/code_samples) now use Kotlin DSL in Gradle build scripts.
|
||||||
|
|
||||||
Android Studio Releases List
|
Android Studio Releases List
|
||||||
: Add [](android_studio_releases_list.md) section containing a complete list of the Android Studio releases with the relevant IntelliJ IDEA release version specified.
|
: Add [](android_studio_releases_list.md) section containing a complete list of the Android Studio releases with the relevant IntelliJ IDEA release version specified.
|
||||||
|
|
||||||
|
@ -116,35 +116,35 @@ code_samples/
|
|||||||
java/
|
java/
|
||||||
org.intellij.sdk.foo/
|
org.intellij.sdk.foo/
|
||||||
resources/
|
resources/
|
||||||
build.gradle
|
build.gradle.kts
|
||||||
gradlew
|
gradlew
|
||||||
gradle.bat
|
gradle.bat
|
||||||
settings.gradle
|
settings.gradle.kts
|
||||||
README.md
|
README.md
|
||||||
```
|
```
|
||||||
|
|
||||||
## build.gradle Conventions
|
## Gradle Build Script Conventions
|
||||||
|
|
||||||
SDK code samples should be developed [using Gradle](gradle_build_system.md).
|
SDK code samples should be developed [using Gradle](gradle_build_system.md).
|
||||||
As of this writing, the use of Gradle in SDK code samples still relies heavily on the <path>plugin.xml</path> for specifying the plugin configuration.
|
As of this writing, the use of Gradle in SDK code samples still relies heavily on the <path>plugin.xml</path> for specifying the plugin configuration.
|
||||||
At a later, second phase, the SDK code samples will transition to rely more on the Gradle configuration.
|
At a later, second phase, the SDK code samples will transition to rely more on the Gradle configuration.
|
||||||
|
|
||||||
The default contents of a <path>build.gradle</path> file are produced by the [New Project Wizard](gradle_prerequisites.md#creating-a-gradle-based-intellij-platform-plugin-with-new-project-wizard).
|
The default contents of a Gradle build script file are produced by the [New Project Wizard](gradle_prerequisites.md#creating-a-gradle-based-intellij-platform-plugin-with-new-project-wizard).
|
||||||
A consistent structure for an SDK code sample's <path>build.gradle</path> file is essential for clarity and is based on the default produced by the project wizard.
|
A consistent structure for an SDK code sample's Gradle build script file is essential for clarity and is based on the default produced by the project wizard.
|
||||||
Comments in SDK code sample <path>build.gradle</path> files should only draw attention to the parts of the Gradle configuration that are unique for a plugin.
|
Comments in SDK code sample Gradle build scripts should only draw attention to the parts of the Gradle configuration that are unique for a plugin.
|
||||||
|
|
||||||
For SDK code samples, a few alterations are needed to the default <path>build.gradle</path> file produced by the plugin wizard:
|
For SDK code samples, a few alterations are needed to the default <path>build.gradle.kts</path> file produced by the plugin wizard:
|
||||||
* Maintain the Gradle properties `version` (`project.version`) and `group` (`project.group`).
|
* Maintain the Gradle properties `version` (`project.version`) and `group` (`project.group`).
|
||||||
See the [Plugin Gradle Properties](gradle_prerequisites.md#plugin-gradle-properties-and-plugin-configuration-file-elements) section for how these Gradle properties relate to the elements in <path>plugin.xml</path>.
|
See the [Plugin Gradle Properties](gradle_prerequisites.md#plugin-gradle-properties-and-plugin-configuration-file-elements) section for how these Gradle properties relate to the elements in <path>plugin.xml</path>.
|
||||||
* Add the following statement to the [Setup DSL](https://github.com/JetBrains/gradle-intellij-plugin#setup-dsl) (`intellij{}`) section:
|
* Add the following statement to the [Setup DSL](https://github.com/JetBrains/gradle-intellij-plugin#setup-dsl) (`intellij {...}`) section:
|
||||||
```groovy
|
```kotlin
|
||||||
// Prevents patching <idea-version> attributes in plugin.xml
|
// Prevents patching <idea-version> attributes in plugin.xml
|
||||||
updateSinceUntilBuild = false
|
updateSinceUntilBuild.set(false)
|
||||||
```
|
```
|
||||||
* Add the following statement to the [Patching DSL](https://github.com/JetBrains/gradle-intellij-plugin#patching-dsl) (`patchPluginXml{}`) section:
|
* Add the following statement to the [Patching DSL](https://github.com/JetBrains/gradle-intellij-plugin#patching-dsl) (`patchPluginXml {...}`) section:
|
||||||
```groovy
|
```kotlin
|
||||||
// Patches <version> value in plugin.xml
|
// Patches <version> value in plugin.xml
|
||||||
version = project.version
|
version.set(project.version)
|
||||||
```
|
```
|
||||||
|
|
||||||
## plugin.xml Conventions
|
## plugin.xml Conventions
|
||||||
|
@ -84,11 +84,11 @@ Please see [Third-Party Software and Licenses](https://www.jetbrains.com/legal/t
|
|||||||
|
|
||||||
Plugins using the [Gradle Build System](gradle_build_system.md) use the [Kotlin JVM Gradle plugin](https://kotlinlang.org/docs/gradle.html#targeting-the-jvm).
|
Plugins using the [Gradle Build System](gradle_build_system.md) use the [Kotlin JVM Gradle plugin](https://kotlinlang.org/docs/gradle.html#targeting-the-jvm).
|
||||||
|
|
||||||
See the <path>build.gradle</path> from [kotlin_demo](https://github.com/JetBrains/intellij-sdk-code-samples/tree/main/kotlin_demo) sample plugin:
|
See the <path>build.gradle.kts</path> from [kotlin_demo](https://github.com/JetBrains/intellij-sdk-code-samples/tree/main/kotlin_demo) sample plugin:
|
||||||
|
|
||||||
```groovy
|
```kotlin
|
||||||
```
|
```
|
||||||
{src="kotlin_demo/build.gradle"}
|
{src="kotlin_demo/build.gradle.kts" lines="2-"}
|
||||||
|
|
||||||
### Use Kotlin for Gradle Build Scripts
|
### Use Kotlin for Gradle Build Scripts
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user