Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prepare for Gradle v8 #515

Closed
phreed opened this issue Aug 4, 2021 · 1 comment
Closed

Prepare for Gradle v8 #515

phreed opened this issue Aug 4, 2021 · 1 comment
Labels
duplicate gradle compatibility Compatibility issues with Gradle

Comments

@phreed
Copy link

phreed commented Aug 4, 2021

I get the following error.

Using method NamedDomainObjectContainer<T>.invoke(kotlin.Function1) has been deprecated. This is scheduled to be removed in Gradle 8.0. Recompile your plugin against Gradle >= 6.8 Consult the upgrading guide for further information: https://docs.gradle.org/7.1.1/userguide/upgrading_version_6.html#using_NamedDomainObjectContainer_invoke_kotlin_Function1

The specific code fragment is

protobuf {
   generatedFilesBaseDir = "$projectDir/src/main/java"
   protoc { artifact = "com.google.protobuf:protoc:2.6.1" }
   plugins {
      id("grpc") { artifact = "io.grpc:protoc-gen-grpc-java:1.0.0-pre2" }
   }
}

The plugins closure is the problematic line.

@voidzcy voidzcy added the gradle compatibility Compatibility issues with Gradle label Aug 19, 2021
@voidzcy
Copy link
Collaborator

voidzcy commented Sep 15, 2021

This is actually a duplicate of #444. We can't really do a migrate without Gradle's latest org.gradle:gradle-kotlin-dsl artifact. See details in #444 (comment).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate gradle compatibility Compatibility issues with Gradle
Projects
None yet
Development

No branches or pull requests

2 participants