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

Update refreshVersionsMigrate to work only within the dependencies blocks (and test with KMP projects, including with Kotlin DSL) #470

Open
LouisCAD opened this issue Dec 19, 2021 · 4 comments
Assignees
Milestone

Comments

@LouisCAD
Copy link
Member

No description provided.

@LouisCAD LouisCAD created this issue from a note in Priorities 📝 (Priorities) Dec 19, 2021
@LouisCAD LouisCAD added this to the v1.0.0 milestone Dec 19, 2021
@LouisCAD LouisCAD moved this from Priorities to LouisCAD priorities (ordered) in Priorities 📝 Oct 25, 2022
@joaoeudes7
Copy link

Error happens when try to use on scope of protobuf too, as example:

protobuf {
  protoc {
    artifact = "com.google.protobuf:protoc:$google_protobuf_version" << //  libs.protoc
  }
  ...
}

Caused by: org.gradle.api.InvalidUserDataException: Name must not be null!

@LouisCAD
Copy link
Member Author

LouisCAD commented Nov 24, 2022

@joaoeudes7 Use versionFor("com.google.protobuf:protoc:_").

@joaoeudes7
Copy link

@joaoeudes7 Use versionFor("com.google.protobuf:protoc:_").

Not works here, i got this error:
Caused by: org.gradle.internal.metaobject.AbstractDynamicObject$CustomMessageMissingMethodException: Could not find method versionFor() for arguments [com.google.protobuf:protoc:_] on object of type com.google.protobuf.gradle.ExecutableLocator.

@danielcliffordmiller
Copy link

The following worked for me to have refreshVersions handle the protobuf compiler:

     protobuf {
         protoc {
            val version = versionFor("com.google.protobuf:protoc:_")
            artifact = "com.google.protobuf:protoc:$version"
         }
     }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Priorities 📝
  
LouisCAD priorities (ordered)
Development

No branches or pull requests

4 participants