Giuseppe Barbieri
05/16/2025, 7:41 AMmaven
DSL of the publication task, so in my extension I simply wrote
val maven = objects.newInstance<MavenArtifactRepository>()
fun maven(action: Action<in MavenArtifactRepository>) = action.execute(maven)
but I get:
> Could not create an instance of type Library.
> > Could not create an instance of type Library$Into.
> > Could not create an instance of type org.gradle.api.artifacts.repositories.MavenArtifactRepository.
> > Could not generate a decorated class for type MavenArtifactRepository.
> > Cannot have abstract method AuthenticationSupported.getAuthentication(): AuthenticationContainer.
Is there a way to achieve that?Vampire
05/16/2025, 9:10 AMGiuseppe Barbieri
05/16/2025, 10:17 AM