From 223fac616ef921b28ad3d8c2d6b2c427658ef224 Mon Sep 17 00:00:00 2001 From: Adriano Machado <60320+ammachado@users.noreply.github.com> Date: Thu, 14 Nov 2024 23:03:59 -0500 Subject: [PATCH] =?UTF-8?q?"Open-End"=20Compatibility=EF=BB=BF,=20take=202?= =?UTF-8?q?.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build.gradle | 60 +++++++++++--------------- gradle.properties | 6 +-- src/main/resources/META-INF/plugin.xml | 4 +- 3 files changed, 30 insertions(+), 40 deletions(-) diff --git a/build.gradle b/build.gradle index 4150282a..d005cbab 100644 --- a/build.gradle +++ b/build.gradle @@ -31,15 +31,11 @@ checkstyle { group = 'com.github.camel-tooling' version = '1.3.2' +description = 'Apache Camel IDE :: IDEA Plugin' repositories { mavenLocal() - maven { - url = 'https://repo.maven.apache.org/maven2' - mavenContent { - releasesOnly() - } - } + mavenCentral() maven { url "https://repository.apache.org/snapshots/" mavenContent { @@ -48,6 +44,7 @@ repositories { } intellijPlatform { defaultRepositories() + jetbrainsRuntime() } } @@ -73,7 +70,7 @@ test { } } -tasks.withType(JavaCompile) { +tasks.withType(JavaCompile).configureEach { options.encoding = 'UTF-8' } @@ -84,31 +81,9 @@ tasks.withType(Test).configureEach { ] } -intellijPlatform { - pluginConfiguration { - // to support IDEA 2023.2 onwards - // http://www.jetbrains.org/intellij/sdk/docs/basics/getting_started/build_number_ranges.html - ideaVersion { - sinceBuild = "232" - } - } - pluginVerification { - ides { - ide "2023.2" - ide "2023.3" - ide "2024.1" - ide "2024.2" - } - } -// publishing { -// def authenticationToken = "$System.env.INTELLIJ_TOKEN" -// token = authenticationToken -// } -} - dependencies { intellijPlatform { - create(project.hasProperty('intellij_type') ? project.intellij_type : 'IC', ideaVersion) + intellijIdeaCommunity ideaVersion pluginVerifier() instrumentationTools() bundledPlugins 'com.intellij.java', 'com.intellij.java-i18n', 'com.intellij.properties', 'org.jetbrains.plugins.yaml', 'org.jetbrains.idea.maven', 'com.intellij.gradle' @@ -142,11 +117,26 @@ dependencies { testImplementation 'junit:junit:4.13.2' } -description = 'Apache Camel IDE :: IDEA Plugin' +intellijPlatform { + pluginVerification { + ides { + recommended() + } + } + patchPluginXml { + untilBuild = provider { (String) null } + } +// publishing { +// def authenticationToken = "$System.env.INTELLIJ_TOKEN" +// token = authenticationToken +// } +} -tasks.withType(org.jetbrains.intellij.platform.gradle.tasks.RunIdeTask) { - jvmArgs = [ +tasks { + runIde { + jvmArgumentProviders.add({ // Allow to have access to the PSI Structure... '-Didea.is.internal=true' - ] -} \ No newline at end of file + } as CommandLineArgumentProvider) + } +} diff --git a/gradle.properties b/gradle.properties index 63394ad7..75788c6c 100644 --- a/gradle.properties +++ b/gradle.properties @@ -2,7 +2,7 @@ camelVersion = 4.8.1 camelQuarkusVersion = 3.15.0 camelKameletVersion = 4.8.0 camelKarafVersion = 3.22.2 -ideaVersion=2024.2.4 -mavenResolverVersion=1.9.22 +ideaVersion = 2024.2.4 +mavenResolverVersion = 1.9.22 -org.jetbrains.intellij.platform.downloadSources=true +org.jetbrains.intellij.platform.downloadSources = true diff --git a/src/main/resources/META-INF/plugin.xml b/src/main/resources/META-INF/plugin.xml index 582e1384..7b325ff5 100644 --- a/src/main/resources/META-INF/plugin.xml +++ b/src/main/resources/META-INF/plugin.xml @@ -17,7 +17,7 @@ - + @@ -26,7 +26,7 @@ com.intellij.properties - + org.jetbrains.plugins.yaml com.intellij.java