diff --git a/.github/dependabot.yml b/.github/dependabot.yml deleted file mode 100644 index 9be205f..0000000 --- a/.github/dependabot.yml +++ /dev/null @@ -1,17 +0,0 @@ -# Dependabot configuration: -# https://docs.github.com/en/free-pro-team@latest/github/administering-a-repository/configuration-options-for-dependency-updates - -version: 2 -updates: - # Maintain dependencies for Gradle dependencies - - package-ecosystem: "gradle" - directory: "/" - target-branch: "next" - schedule: - interval: "daily" - # Maintain dependencies for GitHub Actions - - package-ecosystem: "github-actions" - directory: "/" - target-branch: "next" - schedule: - interval: "daily" diff --git a/.github/readme/draft-release.png b/.github/readme/draft-release.png deleted file mode 100644 index 00a4be8..0000000 Binary files a/.github/readme/draft-release.png and /dev/null differ diff --git a/.github/readme/run-debug-configurations.png b/.github/readme/run-debug-configurations.png deleted file mode 100644 index d19c09a..0000000 Binary files a/.github/readme/run-debug-configurations.png and /dev/null differ diff --git a/.github/readme/run-logs.png b/.github/readme/run-logs.png deleted file mode 100644 index f493c5a..0000000 Binary files a/.github/readme/run-logs.png and /dev/null differ diff --git a/.github/readme/settings-secrets.png b/.github/readme/settings-secrets.png deleted file mode 100644 index a877734..0000000 Binary files a/.github/readme/settings-secrets.png and /dev/null differ diff --git a/.github/readme/use-this-template.png b/.github/readme/use-this-template.png deleted file mode 100644 index 4d43798..0000000 Binary files a/.github/readme/use-this-template.png and /dev/null differ diff --git a/.github/template-cleanup/.github/dependabot.yml b/.github/template-cleanup/.github/dependabot.yml deleted file mode 100644 index fe30e00..0000000 --- a/.github/template-cleanup/.github/dependabot.yml +++ /dev/null @@ -1,15 +0,0 @@ -# Dependabot configuration: -# https://docs.github.com/en/free-pro-team@latest/github/administering-a-repository/configuration-options-for-dependency-updates - -version: 2 -updates: - # Maintain dependencies for Gradle dependencies - - package-ecosystem: "gradle" - directory: "/" - schedule: - interval: "daily" - # Maintain dependencies for GitHub Actions - - package-ecosystem: "github-actions" - directory: "/" - schedule: - interval: "daily" diff --git a/.github/template-cleanup/CHANGELOG.md b/.github/template-cleanup/CHANGELOG.md deleted file mode 100644 index 619f92d..0000000 --- a/.github/template-cleanup/CHANGELOG.md +++ /dev/null @@ -1,7 +0,0 @@ - - -# %NAME% Changelog - -## [Unreleased] -### Added -- Initial scaffold created from [IntelliJ Platform Plugin Template](https://github.com/JetBrains/intellij-platform-plugin-template) diff --git a/.github/template-cleanup/README.md b/.github/template-cleanup/README.md deleted file mode 100644 index b3d285b..0000000 --- a/.github/template-cleanup/README.md +++ /dev/null @@ -1,40 +0,0 @@ -# %NAME% - -![Build](https://github.com/%REPOSITORY%/workflows/Build/badge.svg) -[![Version](https://img.shields.io/jetbrains/plugin/v/PLUGIN_ID.svg)](https://plugins.jetbrains.com/plugin/PLUGIN_ID) -[![Downloads](https://img.shields.io/jetbrains/plugin/d/PLUGIN_ID.svg)](https://plugins.jetbrains.com/plugin/PLUGIN_ID) - -## Template ToDo list -- [x] Create a new [IntelliJ Platform Plugin Template][template] project. -- [ ] Verify the [pluginGroup](/gradle.properties), [plugin ID](/src/main/resources/META-INF/plugin.xml) and [sources package](/src/main/kotlin). -- [ ] Review the [Legal Agreements](https://plugins.jetbrains.com/docs/marketplace/legal-agreements.html). -- [ ] [Publish a plugin manually](https://plugins.jetbrains.com/docs/intellij/publishing-plugin.html?from=IJPluginTemplate) for the first time. -- [ ] Set the Plugin ID in the above README badges. -- [ ] Set the [Deployment Token](https://plugins.jetbrains.com/docs/marketplace/plugin-upload.html). -- [ ] Click the Watch button on the top of the [IntelliJ Platform Plugin Template][template] to be notified about releases containing new features and fixes. - - -This Fancy IntelliJ Platform Plugin is going to be your implementation of the brilliant ideas that you have. - -This specific section is a source for the [plugin.xml](/src/main/resources/META-INF/plugin.xml) file which will be extracted by the [Gradle](/build.gradle.kts) during the build process. - -To keep everything working, do not remove `` sections. - - -## Installation - -- Using IDE built-in plugin system: - - Settings/Preferences > Plugins > Marketplace > Search for "%NAME%" > - Install Plugin - -- Manually: - - Download the [latest release](https://github.com/%REPOSITORY%/releases/latest) and install it manually using - Settings/Preferences > Plugins > ⚙️ > Install plugin from disk... - - ---- -Plugin based on the [IntelliJ Platform Plugin Template][template]. - -[template]: https://github.com/JetBrains/intellij-platform-plugin-template diff --git a/.github/template-cleanup/gradle.properties b/.github/template-cleanup/gradle.properties deleted file mode 100644 index ba54ac5..0000000 --- a/.github/template-cleanup/gradle.properties +++ /dev/null @@ -1,27 +0,0 @@ -# IntelliJ Platform Artifacts Repositories -# -> https://plugins.jetbrains.com/docs/intellij/intellij-artifacts.html - -pluginGroup = %GROUP% -pluginName = %NAME% -pluginVersion = 0.0.1 - -# See https://plugins.jetbrains.com/docs/intellij/build-number-ranges.html -# for insight into build numbers and IntelliJ Platform versions. -pluginSinceBuild = 202 -pluginUntilBuild = 211.* - -# Plugin Verifier integration -> https://github.com/JetBrains/gradle-intellij-plugin#plugin-verifier-dsl -# See https://jb.gg/intellij-platform-builds-list for available build versions. -pluginVerifierIdeVersions = 2020.2.4, 2020.3.4, 2021.1.1 - -platformType = IC -platformVersion = 2020.2.4 -platformDownloadSources = true - -# Plugin Dependencies -> https://plugins.jetbrains.com/docs/intellij/plugin-dependencies.html -# Example: platformPlugins = com.intellij.java, com.jetbrains.php:203.4449.22 -platformPlugins = - -# Opt-out flag for bundling Kotlin standard library. -# See https://plugins.jetbrains.com/docs/intellij/kotlin.html#kotlin-standard-library for details. -kotlin.stdlib.default.dependency = false diff --git a/.github/template-cleanup/settings.gradle.kts b/.github/template-cleanup/settings.gradle.kts deleted file mode 100644 index 34ec91d..0000000 --- a/.github/template-cleanup/settings.gradle.kts +++ /dev/null @@ -1 +0,0 @@ -rootProject.name = "%NAME%" diff --git a/.github/workflows/template-cleanup.yml b/.github/workflows/template-cleanup.yml deleted file mode 100644 index 6acdf8a..0000000 --- a/.github/workflows/template-cleanup.yml +++ /dev/null @@ -1,81 +0,0 @@ -# GitHub Actions Workflow responsible for cleaning up the IntelliJ Platform Plugin Template repository from -# the template-specific files and configurations. This workflow is supposed to be triggered automatically -# when a new template-based repository has been created. - -name: Template Cleanup -on: - push: - branches: - - main - -jobs: - - # Run cleaning process only if workflow is triggered by the non-JetBrains/intellij-platform-plugin-template repository. - template-cleanup: - name: Template Cleanup - runs-on: ubuntu-latest - if: github.event.repository.name != 'intellij-platform-plugin-template' - steps: - - # Check out current repository - - name: Fetch Sources - uses: actions/checkout@v2.3.4 - - # Cleanup project - - name: Cleanup - run: | - export LC_CTYPE=C - export LANG=C - - # Prepare variables - NAME="${GITHUB_REPOSITORY##*/}" - ACTOR=$(echo $GITHUB_ACTOR | tr '[:upper:]' '[:lower:]') - SAFE_NAME=$(echo $NAME | sed 's/[^a-zA-Z0-9]//g' | tr '[:upper:]' '[:lower:]') - SAFE_ACTOR=$(echo $ACTOR | sed 's/[^a-zA-Z0-9]//g' | tr '[:upper:]' '[:lower:]') - GROUP="com.github.$SAFE_ACTOR.$SAFE_NAME" - - # Replace placeholders in the template-cleanup files - sed -i "s/%NAME%/$NAME/g" .github/template-cleanup/* - sed -i "s/%REPOSITORY%/${GITHUB_REPOSITORY/\//\\/}/g" .github/template-cleanup/* - sed -i "s/%GROUP%/$GROUP/g" .github/template-cleanup/* - - # Replace template package name in project files with $GROUP - find src -type f -exec sed -i "s/org.jetbrains.plugins.template/$GROUP/g" {} + - find src -type f -exec sed -i "s/Template/$NAME/g" {} + - find src -type f -exec sed -i "s/JetBrains/$ACTOR/g" {} + - - # Remove lines marked with #REMOVE-ON-CLEANUP# - find . -type f -exec sed -i '/#REMOVE-ON-CLEANUP#/d' {} + - - # Move content - mkdir -p src/main/kotlin/${GROUP//.//} - cp -R .github/template-cleanup/* . - cp -R src/main/kotlin/org/jetbrains/plugins/template/* src/main/kotlin/${GROUP//.//}/ - - # Cleanup - rm -rf \ - .github/readme \ - .github/template-cleanup \ - .github/workflows/template-cleanup.yml \ - .idea/icon.png \ - src/main/kotlin/org \ - CODE_OF_CONDUCT.md \ - LICENSE - - # Run ktlint formatting - ./gradlew ktlintFormat - - # Commit modified files - - name: Commit files - run: | - git config --local user.email "action@github.com" - git config --local user.name "GitHub Action" - git add . - git commit -m "Template cleanup" - - # Push changes - - name: Push changes - uses: ad-m/github-push-action@master - with: - branch: main - github_token: ${{ secrets.GITHUB_TOKEN }} diff --git a/gradle.properties b/gradle.properties index 1b0ad06..063012d 100644 --- a/gradle.properties +++ b/gradle.properties @@ -10,7 +10,7 @@ pluginSinceBuild = 193 # See https://jb.gg/intellij-platform-builds-list for available build versions pluginVerifierIdeVersions = 2020.1.4, 2020.2.3, 2020.3.1, 2021.1 -pluginVerifierVersion = "1.258" +pluginVerifierVersion = 1.255 platformType = IC platformVersion = 2020.1