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
4 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

Please sign in to leave a comment.