Issue with Custom Plugin Repository with IntelliJ Gradle plugin 2.1.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 {

    customPluginRepository(url)

  }

}

---

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

 

Caused by: org.gradle.internal.instantiation.ClassGenerationException: Could not generate a decorated class for type PluginArtifactRepository.
    at org.gradle.internal.instantiation.generator.AbstractClassGenerator.generateUnderLock(AbstractClassGenerator.java:255)
    at org.gradle.cache.internal.DefaultCrossBuildInMemoryCacheFactory$AbstractCrossBuildInMemoryCache.get(DefaultCrossBuildInMemoryCacheFactory.java:130)
    at org.gradle.internal.instantiation.generator.AbstractClassGenerator.generate(AbstractClassGenerator.java:181)
    at org.gradle.internal.instantiation.generator.AsmBackedClassGenerator.generate(AsmBackedClassGenerator.java:122)
    at org.gradle.internal.instantiation.generator.Jsr330ConstructorSelector.lambda$forType$0(Jsr330ConstructorSelector.java:56)
    at org.gradle.cache.Cache.lambda$get$0(Cache.java:31)
    at org.gradle.cache.internal.DefaultCrossBuildInMemoryCacheFactory$AbstractCrossBuildInMemoryCache.get(DefaultCrossBuildInMemoryCacheFactory.java:130)
    at org.gradle.cache.Cache.get(Cache.java:31)
    at org.gradle.internal.instantiation.generator.Jsr330ConstructorSelector.forType(Jsr330ConstructorSelector.java:53)
    at org.gradle.internal.instantiation.generator.Jsr330ConstructorSelector.forParams(Jsr330ConstructorSelector.java:48)
    at org.gradle.internal.instantiation.generator.DependencyInjectingInstantiator.doCreate(DependencyInjectingInstantiator.java:61)
    ... 227 more
Caused by: java.lang.IllegalArgumentException: Cannot have abstract method AuthenticationSupported.getAuthentication().
    at org.gradle.internal.instantiation.generator.AbstractClassGenerator.assertNotAbstract(AbstractClassGenerator.java:396)
    at org.gradle.internal.instantiation.generator.AbstractClassGenerator.inspectType(AbstractClassGenerator.java:322)
    at org.gradle.internal.instantiation.generator.AbstractClassGenerator.generateUnderLock(AbstractClassGenerator.java:224)
    ... 237 more

---

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

Thanks

0
8 comments

Thanks for reporting! This is an actual issue on the IntelliJ Platform Gradle Plugin side.

It was addressed with https://github.com/JetBrains/intellij-platform-gradle-plugin/commit/9f5dfd9e3464d72dad327d648298f5c0a6148bfc
The fixed version will be released soon!

0

hi, 
when is the new version for IntelliJ Platform Gradle Plugin with the issue fix for customRepositories issue expected to be out?

Thanks

0

I am waiting for one other fix to be addressed in the Plugin Verifier library. If there are no delays, it will be released this Friday.

0

hi,

Any update on the release? This is a blocker for us to make our plugins compatible with 2024 version of IDE.
 

0

In my case, it's the same situation. I was fetching dependencies from JetBrains through a proxy, but despite following the instructions exactly as described, I kept encountering errors related to credentials.

0

Jakub Chrzanowski Any update on a release date for this fix?

0

Sorry for the delay – the Plugin Verifier fixes were significantly delayed, and blocked the release.

As everything was finally wrapped up and tested – I plan to release the next 2.2.0 version later this week.

0

Thanks for the update Jakub.

We tried using the new version 2.2.0 and still facing some issue. I have raised a ticket - https://intellij-support.jetbrains.com/hc/en-us/community/posts/23193129517330-CustomPluginRepository-configuration-in-IntelliJ-platform-plugin-2-2-0

I am stuck here. Any help is appreciated!

0

Please sign in to leave a comment.