CustomPluginRepository configuration in IntelliJ platform plugin 2.2.0

Answered

Hi,

I have been following the migration steps to move from IntelliJ Gradle plugin version 1.x to 2.x. I am experiencing an issue when attempting to connect to our internal plugin repository. It worked in 1.x version, but the change from:
 

---

intellij{

  pluginsRepositories { custom(url) }

}

to

repositories {

  intellijPlatform {
      defaultRepositories()
      jetbrainsRuntime()
      customPluginRepository(url, CustomPluginRepositoryListingType.SIMPLE)
  }

}
 

and dependencies block to 


dependencies {
    intellijPlatform {

        intellijIdeaCommunity "242.21829.142", false
        bundledPlugins("com.intellij.java", "org.jetbrains.plugins.terminal", "Git4Idea")
        String pluginId = “com.internal.intellij.plugins.sdk"

        String pluginVersion = “1.0.0”
        plugin(pluginId, pluginVersion)
    }

……

}

I get the error:

Could not find com.jetbrains.plugins:com.internal.intellij.plugins.sdk:1.0.0.
Searched in the following locations:
 - https://xxx.xxx.xxx/artifactory/remote-repos/com/jetbrains/plugins/com.internal.intellij.plugins.sdk/1.0.0/com.internal.intellij.plugins.sdk-1.0.0.pom
 - https://xxx.xxx.xxx/artifactory/polaris-intellij-sdk/com/jetbrains/plugins/com.internal.intellij.plugins.sdk/1.0.0/com.internal.intellij.plugins.sdk-1.0.0.pom
 - https://xxx.xxx.xxx/artifactory/polaris-intellij-marketplace/com/jetbrains/plugins/com.internal.intellij.plugins.sdk/1.0.0/com.internal.intellij.plugins.sdk-1.0.0.pom
 - https://cache-redirector.jetbrains.com/www.jetbrains.com/intellij-repository/releases/com/jetbrains/plugins/com.internal.intellij.plugins.sdk/1.0.0/com.internal.intellij.plugins.sdk-1.0.0.pom
 - https://cache-redirector.jetbrains.com/www.jetbrains.com/intellij-repository/snapshots/com/jetbrains/plugins/com.internal.intellij.plugins.sdk/1.0.0/com.internal.intellij.plugins.sdk-1.0.0.pom
 - https://cache-redirector.jetbrains.com/intellij-dependencies/com/jetbrains/plugins/com.internal.intellij.plugins.sdk/1.0.0/com.internal.intellij.plugins.sdk-1.0.0.pom
 - https://cache-redirector.jetbrains.com/plugins.jetbrains.com/maven/com/jetbrains/plugins/com.internal.intellij.plugins.sdk/1.0.0/com.internal.intellij.plugins.sdk-1.0.0.pom
 - http://localhost:7348/com.internal.intellij.plugins.sdk/1.0.0/descriptor.ivy

the plugin is not looked for in the custom repo and is searched in the plugins repo.

I am stuck as to what to try next. Any help is greatly appreciated.

Thanks

---

Note: I have tried including the RepositoryType as .SIMPLE or .PLUGIN_REPOSITORY. All versions of the overloaded customPluginRepository method fail with the same error below

0
2 comments

Hey, Anu! Please update the IntelliJ Platform Gradle Plugin to 2.2.1.

On Friday, I released fixes that address your problems. Please let me know if everything's now okay!

0

hi Jakub,

The custom repo seems to be working now. Thank you for your swift response and assistance!



 

0

Please sign in to leave a comment.