Skip to content

Commit

Permalink
chore: Support against IC-2024.2+
Browse files Browse the repository at this point in the history
Signed-off-by: Stephane Bouchet <[email protected]>
  • Loading branch information
sbouchet authored and adietish committed Oct 11, 2024
1 parent 2244937 commit ed476b5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/IJ-latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ jobs:
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew build --continue -PideaVersion=LATEST-EAP-SNAPSHOT
run: |
LATEST-EAP-SNAPSHOT=$(./gradlew printProductsReleases | grep 'IC-' | head -n 1 | cut -d'-' -f2)
./gradlew build --continue -PideaVersion=$LATEST-EAP-SNAPSHOT
- uses: actions/upload-artifact@v4
if: always()
with:
Expand Down
8 changes: 7 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import org.jetbrains.intellij.platform.gradle.IntelliJPlatformType
import org.jetbrains.intellij.platform.gradle.TestFrameworkType
import org.jetbrains.intellij.platform.gradle.models.ProductRelease

plugins {
id("java") // Java support
Expand Down Expand Up @@ -94,9 +95,14 @@ tasks {
enabled = false
}

printProductsReleases {
channels = listOf(ProductRelease.Channel.EAP)
types = listOf(IntelliJPlatformType.IntellijIdeaCommunity)
untilBuild = provider { null }
}

// infamous hack, see https://github.com/gradle-nexus/publish-plugin/issues/354
assemble {
val fakeSearchableOption = projectDir.absolutePath + "/version.txt"
doLast {
println("************************ GENERATING FAKE JAR FOR PUBLISHING TO NEXUS *************************************************")
file("${layout.buildDirectory.get().asFile.absolutePath}/libs/intellij-common-${version}-searchableOptions.jar").writeText("...")
Expand Down

0 comments on commit ed476b5

Please sign in to comment.