From 245ef8bec55b329308bab13ff23cdd5d6411c39f Mon Sep 17 00:00:00 2001 From: Giao Ho Date: Sun, 11 Aug 2024 00:28:14 +0700 Subject: [PATCH] Use IntelliJ Platform Gradle Plugin (2.x) --- .gitignore | 3 +++ build.gradle | 29 ++++++++++++++++-------- gradle/wrapper/gradle-wrapper.properties | 2 +- 3 files changed, 24 insertions(+), 10 deletions(-) diff --git a/.gitignore b/.gitignore index feeeb49..ba89115 100644 --- a/.gitignore +++ b/.gitignore @@ -183,6 +183,9 @@ Network Trash Folder Temporary Items .apdisk +# JetBrains plugin +.intellijPlatform + # Secrets gradle.properties secrets diff --git a/build.gradle b/build.gradle index e85d6ac..263be63 100644 --- a/build.gradle +++ b/build.gradle @@ -1,15 +1,19 @@ plugins { - id 'org.jetbrains.intellij' version '1.17.4' + id 'org.jetbrains.intellij.platform' version '2.0.1' id 'java' } group 'com.joutvhu.jetbrains' -version '1.241.1' +version '1.242.0' sourceCompatibility = 17 repositories { mavenCentral() + + intellijPlatform { + defaultRepositories() + } } dependencies { @@ -20,15 +24,22 @@ dependencies { testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.10.3' testCompileOnly 'org.projectlombok:lombok:1.18.34' testAnnotationProcessor 'org.projectlombok:lombok:1.18.34' + + intellijPlatform { + intellijIdeaCommunity('2024.2') + + bundledPlugins( + 'org.jetbrains.plugins.terminal', + 'org.jetbrains.plugins.yaml') + + pluginVerifier() + zipSigner() + instrumentationTools() + } } -intellij { - version = '2024.1' - plugins = [ - 'org.jetbrains.plugins.terminal', - 'org.jetbrains.plugins.yaml' - ] - buildSearchableOptions.enabled = false +buildSearchableOptions { + enabled = false } publishPlugin { diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index bdc9a83..171d876 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,6 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-8.0.2-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-bin.zip networkTimeout=10000 zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists