Skip to content

Commit

Permalink
Merge pull request #224 from JetBrains/update-dependencies
Browse files Browse the repository at this point in the history
Updates dependencies
rafaelldi authored Jul 31, 2024

Verified

This commit was signed with the committer’s verified signature.
2 parents ebc6881 + 8d6e858 commit 9844fb6
Showing 8 changed files with 33 additions and 82 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -31,6 +31,7 @@ jobs:

# Prepare environment and build the plugin
build:
if: github.event.pull_request.draft == false
name: Build
runs-on: ubuntu-latest
outputs:
25 changes: 0 additions & 25 deletions .run/Run IDE for UI Tests.run.xml

This file was deleted.

24 changes: 0 additions & 24 deletions .run/Run Qodana.run.xml

This file was deleted.

2 changes: 1 addition & 1 deletion .run/Run Verifications.run.xml
Original file line number Diff line number Diff line change
@@ -11,7 +11,7 @@
</option>
<option name="taskNames">
<list>
<option value="verifyPlugin" />
<option value="runPluginVerifier" />
</list>
</option>
<option name="vmOptions" value="" />
49 changes: 21 additions & 28 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -7,9 +7,6 @@ import org.jetbrains.intellij.platform.gradle.tasks.PrepareSandboxTask
import org.jetbrains.intellij.platform.gradle.Constants.Constraints
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile

fun properties(key: String) = providers.gradleProperty(key)
fun environment(key: String) = providers.environmentVariable(key)

plugins {
alias(libs.plugins.kotlin) // Kotlin support
alias(libs.plugins.serialization)
@@ -18,22 +15,18 @@ plugins {
alias(libs.plugins.qodana) // Gradle Qodana Plugin
}

group = properties("pluginGroup").get()
version = properties("pluginVersion").get()
group = providers.gradleProperty("pluginGroup").get()
version = providers.gradleProperty("pluginVersion").get()

// Set the JVM language level used to build the project.
kotlin {
jvmToolchain(17)
}

allprojects {
repositories {
mavenCentral()
}
}

// Configure project's dependencies
repositories {
mavenCentral()

// IntelliJ Platform Gradle Plugin Repositories Extension - read more: https://plugins.jetbrains.com/docs/intellij/tools-intellij-platform-gradle-plugin-repositories-extension.html
intellijPlatform {
defaultRepositories()
@@ -43,20 +36,20 @@ repositories {

// Dependencies are managed with Gradle version catalog - read more: https://docs.gradle.org/current/userguide/platforms.html#sub:version-catalog
dependencies {
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.7.1")
implementation(libs.serializationJson)
testImplementation(libs.opentest4j)

// IntelliJ Platform Gradle Plugin Dependencies Extension - read more: https://plugins.jetbrains.com/docs/intellij/tools-intellij-platform-gradle-plugin-dependencies-extension.html
intellijPlatform {
rider(properties("platformVersion"), false)
rider(providers.gradleProperty("platformVersion"), false)

jetbrainsRuntime()

// Plugin Dependencies. Uses `platformBundledPlugins` property from the gradle.properties file for bundled IntelliJ Platform plugins.
bundledPlugins(properties("platformBundledPlugins").map { it.split(',') })
bundledPlugins(providers.gradleProperty("platformBundledPlugins").map { it.split(',') })

// Plugin Dependencies. Uses `platformPlugins` property from the gradle.properties file for plugin from JetBrains Marketplace.
plugins(properties("platformPlugins").map { it.split(',') })
plugins(providers.gradleProperty("platformPlugins").map { it.split(',') })

instrumentationTools()
pluginVerifier()
@@ -68,7 +61,7 @@ dependencies {
// Configure IntelliJ Platform Gradle Plugin - read more: https://plugins.jetbrains.com/docs/intellij/tools-intellij-platform-gradle-plugin-extension.html
intellijPlatform {
pluginConfiguration {
version = properties("pluginVersion")
version = providers.gradleProperty("pluginVersion")

// Extract the <!-- Plugin description --> section from README.md and provide for the plugin's manifest
description = providers.fileContents(layout.projectDirectory.file("README.md")).asText.map {
@@ -85,7 +78,7 @@ intellijPlatform {

val changelog = project.changelog // local variable for configuration cache compatibility
// Get the latest available change notes from the changelog file
changeNotes = properties("pluginVersion").map { pluginVersion ->
changeNotes = providers.gradleProperty("pluginVersion").map { pluginVersion ->
with(changelog) {
renderItem(
(getOrNull(pluginVersion) ?: getUnreleased())
@@ -97,26 +90,26 @@ intellijPlatform {
}

ideaVersion {
sinceBuild = properties("pluginSinceBuild")
untilBuild = properties("pluginUntilBuild")
sinceBuild = providers.gradleProperty("pluginSinceBuild")
untilBuild = providers.gradleProperty("pluginUntilBuild")
}
}

signing {
certificateChain = environment("CERTIFICATE_CHAIN")
privateKey = environment("PRIVATE_KEY")
password = environment("PRIVATE_KEY_PASSWORD")
certificateChain = providers.environmentVariable("CERTIFICATE_CHAIN")
privateKey = providers.environmentVariable("PRIVATE_KEY")
password = providers.environmentVariable("PRIVATE_KEY_PASSWORD")
}

publishing {
token = environment("PUBLISH_TOKEN")
token = providers.environmentVariable("PUBLISH_TOKEN")
// The pluginVersion is based on the SemVer (https://semver.org) and supports pre-release labels, like 2.1.7-alpha.3
// Specify pre-release label to publish the plugin in a custom Release Channel automatically. Read more:
// https://plugins.jetbrains.com/docs/intellij/deployment.html#specifying-a-release-channel
channels = properties("pluginVersion").map { listOf(it.substringAfter('-', "").substringBefore('.').ifEmpty { "default" }) }
channels = providers.gradleProperty("pluginVersion").map { listOf(it.substringAfter('-', "").substringBefore('.').ifEmpty { "default" }) }
}

verifyPlugin {
pluginVerification {
ides {
recommended()
}
@@ -126,17 +119,17 @@ intellijPlatform {
// Configure Gradle Changelog Plugin - read more: https://github.com/JetBrains/gradle-changelog-plugin
changelog {
groups.empty()
repositoryUrl = properties("pluginRepositoryUrl")
repositoryUrl = providers.gradleProperty("pluginRepositoryUrl")
}

tasks {
wrapper {
gradleVersion = properties("gradleVersion").get()
gradleVersion = providers.gradleProperty("gradleVersion").get()
}

val rdGen = ":protocol:rdgen"

val dotnetBuildConfiguration = properties("dotnetBuildConfiguration").get()
val dotnetBuildConfiguration = providers.gradleProperty("dotnetBuildConfiguration").get()
val compileDotNet by registering {
dependsOn(rdGen)
doLast {
3 changes: 2 additions & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -5,6 +5,7 @@ pluginName = aspire-plugin
pluginRepositoryUrl = https://github.com/JetBrains/aspire-plugin
# SemVer format -> https://semver.org
pluginVersion = 1.4.0

# Supported build number ranges and IntelliJ Platform versions -> https://plugins.jetbrains.com/docs/intellij/build-number-ranges.html
pluginSinceBuild = 242
pluginUntilBuild = 242.*
@@ -14,7 +15,7 @@ pluginUntilBuild = 242.*
# Release: 2020.2
# EAP: 2020.3-EAP2-SNAPSHOT
# Nightly: 2020.3-SNAPSHOT
platformVersion = 2024.2-EAP8-SNAPSHOT
platformVersion = 2024.2-EAP9-SNAPSHOT

dotnetBuildConfiguration = Release

7 changes: 4 additions & 3 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -3,22 +3,23 @@
# https://search.maven.org/artifact/com.jetbrains.rd/rd-gen
rdGen = "2024.1.1"
opentest4j = "1.3.0"
serialization = "1.7.1"

# plugins
kotlin = "2.0.0"
serialization = "2.0.0"
changelog = "2.2.1"
intelliJPlatform = "2.0.0-rc2"
intelliJPlatform = "2.0.0"
qodana = "2024.1.5"

[libraries]
rdGen = { group = "com.jetbrains.rd", name = "rd-gen", version.ref = "rdGen" }
opentest4j = { group = "org.opentest4j", name = "opentest4j", version.ref = "opentest4j" }
kotlinStdLib = { group = "org.jetbrains.kotlin", name = "kotlin-stdlib", version.ref = "kotlin" }
serializationJson = { group = "org.jetbrains.kotlinx", name = "kotlinx-serialization-json", version.ref = "serialization" }

[plugins]
changelog = { id = "org.jetbrains.changelog", version.ref = "changelog" }
intelliJPlatform = { id = "org.jetbrains.intellij.platform", version.ref = "intelliJPlatform" }
kotlin = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" }
serialization = { id = "org.jetbrains.kotlin.plugin.serialization", version.ref = "serialization" }
serialization = { id = "org.jetbrains.kotlin.plugin.serialization", version.ref = "kotlin" }
qodana = { id = "org.jetbrains.qodana", version.ref = "qodana" }
4 changes: 4 additions & 0 deletions protocol/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -5,6 +5,10 @@ plugins {
id("com.jetbrains.rdgen") version libs.versions.rdGen
}

repositories {
mavenCentral()
}

dependencies {
implementation(libs.rdGen)
implementation(libs.kotlinStdLib)

0 comments on commit 9844fb6

Please sign in to comment.