code_samples: migrate gradle build scripts from groovy to kotlin + aligned docs

This commit is contained in:
Karol Lewandowski 2022-03-24 14:54:31 +01:00 committed by GitHub
parent 0ecd0e33c6
commit 13ffaf24fd
87 changed files with 862 additions and 776 deletions

View File

@ -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'

View 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")

View File

@ -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.*'
}

View 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.*")
}
}

View File

@ -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'

View 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"

View File

@ -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.*'
}

View 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")
}
}

View File

@ -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'

View 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 = "comparing_references_inspection"

View File

@ -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 {

View File

@ -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.*'
}

View 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")
}
}

View File

@ -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'

View 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 = "conditional_operator_intention"

View File

@ -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.*'
}

View 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.*")
}
}

View File

@ -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'

View 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"

View File

@ -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.*'
}

View 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.*")
}
}

View File

@ -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'

View 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"

View File

@ -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.*'
}

View 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.*")
}
}

View File

@ -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'

View 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"

View File

@ -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.*'
}

View 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.*")
}
}

View File

@ -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'

View 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"

View File

@ -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"
}

View 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"
}
}

View File

@ -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'

View 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"

View File

@ -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.*'
}

View 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.*")
}
}

View File

@ -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'

View 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"

View File

@ -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.*'
}

View 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.*")
}
}

View File

@ -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'

View 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"

View File

@ -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
module/build.gradle.kts Normal file
View 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.*")
}
}

View File

@ -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'

View 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"

View File

@ -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.*'
}

View File

@ -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.*")
}
}

View File

@ -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'

View 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 = "pycharm"

View File

@ -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.*'
}

View 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.*")
}
}

View File

@ -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'

View 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"

View File

@ -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.*'
}

View 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.*")
}
}

View File

@ -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'

View 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"

View File

@ -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.*'
}

View 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.*")
}
}

View File

@ -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'

View 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"

View File

@ -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
psi_demo/build.gradle.kts Normal file
View 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.*")
}
}

View File

@ -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'

View 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"

View File

@ -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.*'
}

View 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.*")
}
}

View File

@ -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'

View 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"

View File

@ -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
settings/build.gradle.kts Normal file
View 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.*")
}
}

View File

@ -1 +0,0 @@
rootProject.name = 'settings'

View File

@ -0,0 +1 @@
rootProject.name = "settings"

View File

@ -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.*'
}

View 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")
}
}

View File

@ -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'

View 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"

View File

@ -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.*'
}

View 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.*")
}
}

View File

@ -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'

View 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"

View File

@ -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.*'
}

View 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.*")
}
}

View File

@ -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'

View 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"