Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
funivan committed Jan 5, 2024
1 parent e2f8141 commit c5c75a1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
5 changes: 2 additions & 3 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
id("java")
id("org.jetbrains.kotlin.jvm") version "1.7.10"
id("org.jetbrains.intellij") version "1.13.3"
id("org.jetbrains.intellij") version "1.16.1"
id("org.jetbrains.changelog") version "2.0.0"
// ktlint linter - read more: https://github.com/JLLeitschuh/ktlint-gradle
// id("org.jlleitschuh.gradle.ktlint") version "10.1.0"
Expand Down Expand Up @@ -32,7 +32,6 @@ println("version: $version")
// Configure project's dependencies
repositories {
mavenCentral()
jcenter()
}

// Configure gradle-intellij-plugin plugin.
Expand All @@ -42,7 +41,7 @@ intellij {
version.set(platformVersion)
type.set(platformType)
downloadSources.set(platformDownloadSources.toBoolean())
updateSinceUntilBuild.set(false)
updateSinceUntilBuild.set(true)
// Plugin Dependencies. Uses `platformPlugins` property from the gradle.properties file.
plugins.set(properties("platformPlugins").split(',').map(String::trim).filter(String::isNotEmpty))
}
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ pluginGroup = com.funivan.idea.phpClean
pluginName_ = PhpClean
name = PhpClean
pluginVersion = 2023.12.17
pluginSinceBuild = 221.5080.224
pluginSinceBuild = 2022.2.3
#pluginUntilBuild = 203.*
# Plugin Verifier integration -> https://github.com/JetBrains/gradle-intellij-plugin#plugin-verifier-dsl
# See https://jb.gg/intellij-platform-builds-list for available build versions
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package com.funivan.idea.phpClean.actions.useNamedConstructor

import com.intellij.psi.search.searches.ReferencesSearch
import com.intellij.psi.util.parentOfType
import com.intellij.psi.util.parentOfTypes
import com.intellij.refactoring.BaseRefactoringProcessor
import com.intellij.usageView.UsageInfo
import com.intellij.usageView.UsageViewDescriptor
Expand All @@ -22,7 +23,7 @@ class UseNamedConstructorProcessor(
return ReferencesSearch.search(constructor)
.map { it.element.parent as? NewExpression }
.filter {
val inMethod = it?.parentOfType(Method::class)
val inMethod = it?.parentOfTypes(Method::class)
if (inMethod is Method) {
val isSameM = inMethod.name == namedConstructor.name
val isSameClass = inMethod.containingClass?.fqn == namedConstructor.containingClass?.fqn
Expand Down

0 comments on commit c5c75a1

Please sign in to comment.