Skip to content

Commit

Permalink
"Open-End" Compatibility, take 2.
Browse files Browse the repository at this point in the history
  • Loading branch information
ammachado committed Nov 15, 2024
1 parent 787f8e9 commit 223fac6
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 40 deletions.
60 changes: 25 additions & 35 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -48,6 +44,7 @@ repositories {
}
intellijPlatform {
defaultRepositories()
jetbrainsRuntime()
}
}

Expand All @@ -73,7 +70,7 @@ test {
}
}

tasks.withType(JavaCompile) {
tasks.withType(JavaCompile).configureEach {
options.encoding = 'UTF-8'
}

Expand All @@ -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'
Expand Down Expand Up @@ -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'
]
}
} as CommandLineArgumentProvider)
}
}
6 changes: 3 additions & 3 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 2 additions & 2 deletions src/main/resources/META-INF/plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
</change-notes>

<!-- please see http://www.jetbrains.org/intellij/sdk/docs/basics/getting_started/build_number_ranges.html for description -->
<idea-version since-build="231"/>
<idea-version since-build="232"/>

<!-- please see http://www.jetbrains.org/intellij/sdk/docs/basics/getting_started/plugin_compatibility.html
on how to target different products -->
Expand All @@ -26,7 +26,7 @@
<!-- depend on the properties plugin -->
<depends>com.intellij.properties</depends>

<!-- depend on the yaml plugin -->
<!-- depend on the YAML plugin -->
<depends>org.jetbrains.plugins.yaml</depends>

<depends>com.intellij.java</depends>
Expand Down

0 comments on commit 223fac6

Please sign in to comment.