Skip to content

Commit f03a33f

Browse files
authored
Bump verifyIdeVersions and platformVersion (#110)
* Bump verifyIdeVersions and platformVersion Mostly to try making GitHub Actions actually build Upgraded to latest version of intellij-platform-plugin-template. This has become a weird required step when upgrading. Had to skip a lot of older versions of IntelliJ in order to make it build in GitHub Actions (without running out of space). Going back to version 2022.1. Previous was 2020
1 parent 40069fc commit f03a33f

File tree

11 files changed

+101
-56
lines changed

11 files changed

+101
-56
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,13 @@ jobs:
4848
- name: Gradle Wrapper Validation
4949
uses: gradle/[email protected]
5050

51-
# Setup Java 11 environment for the next steps
51+
# Setup Java environment for the next steps
5252
- name: Setup Java
5353
uses: actions/setup-java@v3
5454
with:
5555
distribution: zulu
56-
java-version: 11
56+
java-version: 17
57+
cache: gradle
5758

5859
# Set environment variables
5960
- name: Export Properties
@@ -114,7 +115,7 @@ jobs:
114115

115116
# Run Qodana inspections
116117
- name: Qodana - Code Inspection
117-
uses: JetBrains/qodana-action@v2022.3.4
118+
uses: JetBrains/qodana-action@v2023.1.0
118119

119120
# Prepare plugin archive content for creating artifact
120121
- name: Prepare Plugin Artifact

.github/workflows/release.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,13 @@ jobs:
2424
with:
2525
ref: ${{ github.event.release.tag_name }}
2626

27-
# Setup Java 11 environment for the next steps
27+
# Setup Java environment for the next steps
2828
- name: Setup Java
2929
uses: actions/setup-java@v3
3030
with:
3131
distribution: zulu
32-
java-version: 11
32+
java-version: 17
33+
cache: gradle
3334

3435
# Set environment variables
3536
- name: Export Properties

.github/workflows/run-ui-tests.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,13 @@ jobs:
3535
- name: Fetch Sources
3636
uses: actions/checkout@v3
3737

38-
# Setup Java 11 environment for the next steps
38+
# Setup Java environment for the next steps
3939
- name: Setup Java
4040
uses: actions/setup-java@v3
4141
with:
4242
distribution: zulu
43-
java-version: 11
43+
java-version: 17
44+
cache: gradle
4445

4546
# Run IDEA prepared for UI testing
4647
- name: Run IDE

build.gradle.kts

Lines changed: 39 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,12 @@ fun properties(key: String) = providers.gradleProperty(key)
55
fun environment(key: String) = providers.environmentVariable(key)
66

77
plugins {
8-
// Java support
9-
id("java")
10-
// Kotlin support
11-
id("org.jetbrains.kotlin.jvm") version "1.8.10"
12-
// Gradle IntelliJ Plugin
13-
id("org.jetbrains.intellij") version "1.13.2"
14-
// Gradle Changelog Plugin
15-
id("org.jetbrains.changelog") version "2.0.0"
16-
// Gradle Qodana Plugin
17-
id("org.jetbrains.qodana") version "0.1.13"
18-
// Gradle Kover Plugin
19-
id("org.jetbrains.kotlinx.kover") version "0.6.1"
8+
id("java") // Java support
9+
alias(libs.plugins.kotlin) // Kotlin support
10+
alias(libs.plugins.gradleIntelliJPlugin) // Gradle IntelliJ Plugin
11+
alias(libs.plugins.changelog) // Gradle Changelog Plugin
12+
alias(libs.plugins.qodana) // Gradle Qodana Plugin
13+
alias(libs.plugins.kover) // Gradle Kover Plugin
2014
}
2115

2216
group = properties("pluginGroup").get()
@@ -27,38 +21,47 @@ repositories {
2721
mavenCentral()
2822
}
2923

24+
// Dependencies are managed with Gradle version catalog - read more: https://docs.gradle.org/current/userguide/platforms.html#sub:version-catalog
25+
dependencies {
26+
// implementation(libs.annotations)
27+
}
28+
3029
// Set the JVM language level used to build the project. Use Java 11 for 2020.3+, and Java 17 for 2022.2+.
3130
kotlin {
32-
jvmToolchain(11)
31+
jvmToolchain(17)
3332
}
3433

3534
// Configure Gradle IntelliJ Plugin - read more: https://plugins.jetbrains.com/docs/intellij/tools-gradle-intellij-plugin.html
3635
intellij {
37-
pluginName.set(properties("pluginName"))
38-
version.set(properties("platformVersion"))
39-
type.set(properties("platformType"))
36+
pluginName = properties("pluginName")
37+
version = properties("platformVersion")
38+
type = properties("platformType")
4039

4140
// Plugin Dependencies. Uses `platformPlugins` property from the gradle.properties file.
42-
plugins.set(properties("platformPlugins").map { it.split(',').map(String::trim).filter(String::isNotEmpty) })
41+
plugins = properties("platformPlugins").map { it.split(',').map(String::trim).filter(String::isNotEmpty) }
4342
}
4443

4544
// Configure Gradle Changelog Plugin - read more: https://github.com/JetBrains/gradle-changelog-plugin
4645
changelog {
4746
groups.empty()
48-
repositoryUrl.set(properties("pluginRepositoryUrl"))
47+
repositoryUrl = properties("pluginRepositoryUrl")
4948
}
5049

5150
// Configure Gradle Qodana Plugin - read more: https://github.com/JetBrains/gradle-qodana-plugin
5251
qodana {
53-
cachePath.set(provider { file(".qodana").canonicalPath })
54-
reportPath.set(provider { file("build/reports/inspections").canonicalPath })
55-
saveReport.set(true)
56-
showReport.set(environment("QODANA_SHOW_REPORT").map { it.toBoolean() }.getOrElse(false))
52+
cachePath = provider { file(".qodana").canonicalPath }
53+
reportPath = provider { file("build/reports/inspections").canonicalPath }
54+
saveReport = true
55+
showReport = environment("QODANA_SHOW_REPORT").map { it.toBoolean() }.getOrElse(false)
5756
}
5857

5958
// Configure Gradle Kover Plugin - read more: https://github.com/Kotlin/kotlinx-kover#configuration
60-
kover.xmlReport {
61-
onCheck.set(true)
59+
koverReport {
60+
defaults {
61+
xml {
62+
onCheck = true
63+
}
64+
}
6265
}
6366

6467
tasks {
@@ -67,12 +70,12 @@ tasks {
6770
}
6871

6972
patchPluginXml {
70-
version.set(properties("pluginVersion"))
71-
sinceBuild.set(properties("pluginSinceBuild"))
72-
untilBuild.set(properties("pluginUntilBuild"))
73+
version = properties("pluginVersion")
74+
sinceBuild = properties("pluginSinceBuild")
75+
untilBuild = properties("pluginUntilBuild")
7376

7477
// Extract the <!-- Plugin description --> section from README.md and provide for the plugin's manifest
75-
pluginDescription.set(providers.fileContents(layout.projectDirectory.file("README.md")).asText.map {
78+
pluginDescription = providers.fileContents(layout.projectDirectory.file("README.md")).asText.map {
7679
val start = "<!-- Plugin description -->"
7780
val end = "<!-- Plugin description end -->"
7881

@@ -82,11 +85,11 @@ tasks {
8285
}
8386
subList(indexOf(start) + 1, indexOf(end)).joinToString("\n").let(::markdownToHTML)
8487
}
85-
})
88+
}
8689

8790
val changelog = project.changelog // local variable for configuration cache compatibility
8891
// Get the latest available change notes from the changelog file
89-
changeNotes.set(properties("pluginVersion").map { pluginVersion ->
92+
changeNotes = properties("pluginVersion").map { pluginVersion ->
9093
with(changelog) {
9194
renderItem(
9295
(getOrNull(pluginVersion) ?: getUnreleased())
@@ -95,7 +98,7 @@ tasks {
9598
Changelog.OutputType.HTML,
9699
)
97100
}
98-
})
101+
}
99102
}
100103

101104
// Configure UI tests plugin
@@ -108,17 +111,17 @@ tasks {
108111
}
109112

110113
signPlugin {
111-
certificateChain.set(environment("CERTIFICATE_CHAIN"))
112-
privateKey.set(environment("PRIVATE_KEY"))
113-
password.set(environment("PRIVATE_KEY_PASSWORD"))
114+
certificateChain = environment("CERTIFICATE_CHAIN")
115+
privateKey = environment("PRIVATE_KEY")
116+
password = environment("PRIVATE_KEY_PASSWORD")
114117
}
115118

116119
publishPlugin {
117120
dependsOn("patchChangelog")
118-
token.set(environment("PUBLISH_TOKEN"))
121+
token = environment("PUBLISH_TOKEN")
119122
// The pluginVersion is based on the SemVer (https://semver.org) and supports pre-release labels, like 2.1.7-alpha.3
120123
// Specify pre-release label to publish the plugin in a custom Release Channel automatically. Read more:
121124
// https://plugins.jetbrains.com/docs/intellij/deployment.html#specifying-a-release-channel
122-
channels.set(properties("pluginVersion").map { listOf(it.split('-').getOrElse(1) { "default" }.split('.').first()) })
125+
channels = properties("pluginVersion").map { listOf(it.split('-').getOrElse(1) { "default" }.split('.').first()) }
123126
}
124127
}

gradle.properties

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,27 @@
22
# -> https://plugins.jetbrains.com/docs/intellij/intellij-artifacts.html
33
pluginGroup=no.eirikb.avatest
44
pluginName=AvaJavaScriptTestRunnerRunConfigurationGenerator
5-
pluginVersion=1.12.0
6-
pluginSinceBuild=203
5+
pluginVersion=1.11.0
6+
pluginSinceBuild=221
77
pluginUntilBuild=231.*
88
# Plugin Verifier integration -> https://github.com/JetBrains/gradle-intellij-plugin#plugin-verifier-dsl
99
# See https://jb.gg/intellij-platform-builds-list for available build versions
10-
pluginVerifierIdeVersions=2020.2.4, 2020.3.2, 2021.1, 2021.2
10+
pluginVerifierIdeVersions=2023.1
1111
platformType=IU
12-
platformVersion=2022.3
12+
platformVersion=2023.1
1313
platformDownloadSources=true
1414
# Plugin Dependencies -> https://plugins.jetbrains.com/docs/intellij/plugin-dependencies.html
1515
# Example: platformPlugins = com.intellij.java, com.jetbrains.php:203.4449.22
1616
platformPlugins=JavaScript, NodeJS
1717
# Gradle Releases -> https://github.com/gradle/gradle/releases
18-
gradleVersion=8.0.2
18+
gradleVersion=8.1.1
1919
# Opt-out flag for bundling Kotlin standard library -> https://jb.gg/intellij-platform-kotlin-stdlib
20-
# suppress inspection "UnusedProperty"
2120
kotlin.stdlib.default.dependency=false
2221
# Enable Gradle Configuration Cache -> https://docs.gradle.org/current/userguide/configuration_cache.html
23-
# suppress inspection "UnusedProperty"
24-
org.gradle.unsafe.configuration-cache=true
22+
org.gradle.configuration-cache=true
23+
# Enable Gradle Build Cache -> https://docs.gradle.org/current/userguide/build_cache.html
24+
org.gradle.caching=true
25+
# Enable Gradle Kotlin DSL Lazy Property Assignment -> https://docs.gradle.org/current/userguide/kotlin_dsl.html#kotdsl:assignment
26+
systemProp.org.gradle.unsafe.kotlin.assignment=true
27+
# Temporary workaround for Kotlin Compiler OutOfMemoryError -> https://jb.gg/intellij-platform-kotlin-oom
28+
kotlin.incremental.useClasspathSnapshot=false

gradle/libs.versions.toml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
[versions]
2+
# libraries
3+
annotations = "24.0.1"
4+
5+
# plugins
6+
dokka = "1.8.10"
7+
kotlin = "1.8.21"
8+
changelog = "2.1.0"
9+
gradleIntelliJPlugin = "1.14.1"
10+
qodana = "0.1.13"
11+
kover = "0.7.1"
12+
13+
[libraries]
14+
annotations = { group = "org.jetbrains", name = "annotations", version.ref = "annotations" }
15+
16+
[plugins]
17+
changelog = { id = "org.jetbrains.changelog", version.ref = "changelog" }
18+
dokka = { id = "org.jetbrains.dokka", version.ref = "dokka" }
19+
gradleIntelliJPlugin = { id = "org.jetbrains.intellij", version.ref = "gradleIntelliJPlugin" }
20+
kotlin = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" }
21+
kover = { id = "org.jetbrains.kotlinx.kover", version.ref = "kover" }
22+
qodana = { id = "org.jetbrains.qodana", version.ref = "qodana" }

gradle/wrapper/gradle-wrapper.jar

468 Bytes
Binary file not shown.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0.2-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.1.1-bin.zip
44
networkTimeout=10000
55
zipStoreBase=GRADLE_USER_HOME
66
zipStorePath=wrapper/dists

gradlew

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,6 @@ done
8585
APP_BASE_NAME=${0##*/}
8686
APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit
8787

88-
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
89-
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
90-
9188
# Use the maximum available, or set MAX_FD != -1 to use that value.
9289
MAX_FD=maximum
9390

@@ -197,6 +194,10 @@ if "$cygwin" || "$msys" ; then
197194
done
198195
fi
199196

197+
198+
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
199+
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
200+
200201
# Collect all arguments for the java command;
201202
# * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of
202203
# shell script including quotes and variable substitutions, so put them in

qodana.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Qodana configuration:
2+
# https://www.jetbrains.com/help/qodana/qodana-yaml.html
3+
4+
version: 1.0
5+
linter: jetbrains/qodana-jvm-community:latest
6+
projectJDK: 17
7+
profile:
8+
name: qodana.recommended
9+
exclude:
10+
- name: All
11+
paths:
12+
- .qodana

0 commit comments

Comments
 (0)