Slackbot
06/28/2022, 4:33 PMSlackbot
06/28/2022, 9:00 PMSlackbot
06/29/2022, 12:03 PMSlackbot
06/29/2022, 12:05 PMSlackbot
06/29/2022, 2:24 PMSlackbot
06/29/2022, 2:49 PMSlackbot
06/29/2022, 3:49 PMSlackbot
06/29/2022, 6:16 PMSlackbot
06/29/2022, 6:54 PMSlackbot
06/30/2022, 12:45 AMSlackbot
06/30/2022, 2:52 AMSlackbot
06/30/2022, 7:49 AMPatrickBoat
06/30/2022, 11:56 AMCould not load compiled classes for build file 'C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\flutter_plugin_android_lifecycle-2.0.6\android\build.gradle' from cache.
Failed to notify project evaluation listener.> Could not get unknown property 'android' for project ':flutter_plugin_android_lifecycle' of type org.gradle.api.Project. > Could not get unknown property 'android' for project ':flutter_plugin_android_lifecycle' of type org.gradle.api.Project.
Slackbot
06/30/2022, 12:39 PMSlackbot
06/30/2022, 11:12 PMSlackbot
07/01/2022, 12:23 AMLars Ködderitzsch
07/01/2022, 5:32 AMartifactId
of the publication for the java artifact.
This all works pretty well - except for the case where a project of this kind is being used in a multiproject build using a project reference.
While Gradles dependency resolution can still work out the correct dependency via the artifact capabilities, publishing the dependent project fails with the infamous:
Publishing is not able to resolve a dependency on a project with multiple publications that have different coordinates.
project A:
-> produces group:a
(zip)
-> produces group:a-java
(jar)
project B
-> declares dependency implementation(project(":a"))
Is there a workaround to coerce publishing of B to choose the correct coordinates (group:a-java
)?jojopad
07/01/2022, 6:10 AMSlackbot
07/01/2022, 6:56 AMSlackbot
07/01/2022, 9:00 AMSlackbot
07/01/2022, 10:36 AMSlackbot
07/01/2022, 3:48 PMSlackbot
07/01/2022, 4:13 PMSlackbot
07/02/2022, 5:52 PMStylianos Gakis
07/03/2022, 4:20 PMdef dirRes = project.android.sourceSets.findByName("main").res.srcDirs.first()
. My immediate question is, how do I get the same android
type from project if I don’t know what to ask for, in Groovy is seems to “just work” but in Kotlin I guess I need to do something like find it by name and specify what type it is so that I can then do .sourceSets
on it etc.
But the more general question may also be, is there an obvious way of how to find what I am looking for when going from Groovy -> Kotlin? As someone who’s never done something like this before and has never done Groovy before I don’t see any obvious way to do this.Slackbot
07/03/2022, 9:00 PMSlackbot
07/04/2022, 4:20 AMSlackbot
07/04/2022, 11:41 AMSlackbot
07/04/2022, 1:39 PMSlackbot
07/05/2022, 8:16 AM