Skip to content

Commit

Permalink
chore: bump dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
olivernybroe committed Feb 15, 2024
1 parent 8bdbff2 commit a901b45
Show file tree
Hide file tree
Showing 7 changed files with 31 additions and 14 deletions.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,14 @@
# collections-intellij Changelog

## [Unreleased]
### Changed
- Bump dependencies to latest versions

### Fixed
- Fixed api changes in Blade plugin

## [0.4.0]
### Removed
### Removed
- Removed type provider for higher order collections as it seemed unstable

## [0.3.5]
Expand Down
18 changes: 14 additions & 4 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import org.jetbrains.changelog.Changelog
import org.jetbrains.changelog.markdownToHTML

fun properties(key: String) = project.findProperty(key).toString()
Expand All @@ -6,9 +7,9 @@ plugins {
// Java support
id("java")
// Kotlin support
id("org.jetbrains.kotlin.jvm") version "1.6.21"
id("org.jetbrains.kotlin.jvm") version "1.9.22"
// Gradle IntelliJ Plugin
id("org.jetbrains.intellij") version "1.6.0"
id("org.jetbrains.intellij") version "1.17.1"
// Gradle Changelog Plugin
id("org.jetbrains.changelog") version "2.0.0"
}
Expand All @@ -21,6 +22,15 @@ repositories {
mavenCentral()
}

java {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17

toolchain {
languageVersion.set(JavaLanguageVersion.of(17))
}
}

// Configure Gradle IntelliJ Plugin - read more: https://github.com/JetBrains/gradle-intellij-plugin
intellij {
pluginName.set(properties("pluginName"))
Expand Down Expand Up @@ -63,9 +73,9 @@ tasks {

// Get the latest available change notes from the changelog file
changeNotes.set(provider {
changelog.run {
changelog.renderItem(changelog.run {
getOrNull(properties("pluginVersion")) ?: getLatest()
}.toHTML()
}, Changelog.OutputType.HTML)
})
}

Expand Down
10 changes: 5 additions & 5 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@ pluginVersion = 0.4.0

# See https://plugins.jetbrains.com/docs/intellij/build-number-ranges.html
# for insight into build numbers and IntelliJ Platform versions.
pluginSinceBuild = 212
pluginSinceBuild = 233
pluginUntilBuild =

platformType = IU
platformVersion = 2021.2.2
platformType = PS
platformVersion = 2023.3
# Get latest version from https://plugins.jetbrains.com/plugin/6610-php/versions
# Get latest version from https://plugins.jetbrains.com/plugin/7569-blade/versions
platformPlugins = com.jetbrains.php:212.5284.49, com.jetbrains.php.blade:212.5080.8
platformPlugins = com.jetbrains.php, com.jetbrains.php.blade

gradleVersion = 7.4
gradleVersion = 8.4

# Opt-out flag for bundling Kotlin standard library.
# See https://kotlinlang.org/docs/reference/using-gradle.html#dependency-on-the-standard-library for details.
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-all.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ package dev.nybroe.collector.blade
import com.intellij.codeInspection.InspectionSuppressor
import com.intellij.codeInspection.SuppressQuickFix
import com.intellij.psi.PsiElement
import com.jetbrains.php.blade.parser.BladeCompositeElement
import com.jetbrains.php.blade.psi.BladePsiDirective
import com.jetbrains.php.blade.psi.BladePsiDirectiveParameter
import com.jetbrains.php.blade.psi.BladePsiLanguageInjectionHost
import com.jetbrains.php.blade.psi.BladePsiPhpBlock
Expand All @@ -15,7 +17,7 @@ class BladePhpInspectionSuppressor : InspectionSuppressor {
}

override fun isSuppressedFor(element: PsiElement, toolId: String): Boolean {
if (element !is BladePsiLanguageInjectionHost) {
if (element !is BladeCompositeElement) {
return false
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class ClosureToArrowFunctionInspection : PhpInspection() {

// And closure is inside a collection.
val methodReference = PhpPsiUtil
.getParentByCondition<ParameterList>(closure, ParameterList.INSTANCEOF)
.getParentByCondition<ParameterList>(closure, true, ParameterList.INSTANCEOF, null)
?.parent as? MethodReference ?: return

if (!methodReference.isCollectionMethod) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

function($variable) {
collect($variable);
}
};

0 comments on commit a901b45

Please sign in to comment.