Slackbot
01/31/2024, 7:22 PMAdam
01/31/2024, 7:26 PMAdam
01/31/2024, 7:30 PMdependencies {
//devPublication(allprojects.filter { it.path != project.path })
rootProject.allprojects.filter { it.path != path }.forEach {
println(project.path + " is depending on " + it.path)
devPublication(it)
}
}
And now somehow it now duplicates a single class??
Execution failed for task... Entry KotlinNoDevPublishClass.kt is a duplicate
Seriously wtf. There's only one file.Anze Sodja
01/31/2024, 8:43 PMwithVariantReselection()
?
E.g. something like:
conf.incoming
.artifactView {
withVariantReselection()
attributes...
}...
Adam
01/31/2024, 8:55 PMVampire
01/31/2024, 9:47 PM:project-kotlin-jvm-no-dev-publish:outgoingVariants
output, you should see the problem.Vampire
01/31/2024, 9:47 PMmainSourceElements
there is no usage attribute.
So it is a candidate for when you request any usage.Vampire
01/31/2024, 9:48 PMVampire
01/31/2024, 9:55 PMAdam
01/31/2024, 10:01 PMwithVariantReselection()
then it says it only considers the attributes in the artifactViewVampire
01/31/2024, 10:01 PMVampire
01/31/2024, 10:02 PMAdam
01/31/2024, 10:02 PMVampire
01/31/2024, 10:02 PMVampire
01/31/2024, 10:03 PMAdam
01/31/2024, 10:03 PMAdam
01/31/2024, 10:03 PMVampire
01/31/2024, 10:03 PMVampire
01/31/2024, 10:04 PMVampire
01/31/2024, 10:04 PMVampire
01/31/2024, 10:04 PMAdam
01/31/2024, 10:05 PMVampire
01/31/2024, 10:05 PMAdam
01/31/2024, 10:05 PMVampire
01/31/2024, 10:06 PMVampire
01/31/2024, 10:06 PMVampire
01/31/2024, 10:06 PMAdam
01/31/2024, 10:06 PMBut how should any attribute selection work if the attributes of the dependencies would not be considered
Vampire
01/31/2024, 10:07 PMVampire
01/31/2024, 10:07 PMAdam
01/31/2024, 10:08 PMwithVariantReselection()
say it "re-resolve the artifacts using only the attributes in the view's attribute container", but it's using attributes defined in the project where my plugin isn't definedVampire
01/31/2024, 10:09 PMVampire
01/31/2024, 10:09 PMAdam
01/31/2024, 10:10 PMVampire
01/31/2024, 10:10 PMAdam
01/31/2024, 10:10 PMAdam
01/31/2024, 10:11 PMVampire
01/31/2024, 10:11 PMWhen invoked, this view will disregard existing attributes of its parent configuration and re-resolve the artifacts using only the attributes in the view's attribute container.
Vampire
01/31/2024, 10:11 PMVampire
01/31/2024, 10:12 PMit says it only uses attributes in the artifactView, but it's using attributes that aren't in the attributeViewYes, only the ones in the view, not the ones in the parent configuration.
Adam
01/31/2024, 10:12 PMVampire
01/31/2024, 10:12 PMVampire
01/31/2024, 10:12 PMAdam
01/31/2024, 10:12 PMVampire
01/31/2024, 10:13 PMVampire
01/31/2024, 10:13 PMVampire
01/31/2024, 10:13 PMVampire
01/31/2024, 10:14 PMVampire
01/31/2024, 10:14 PMAdam
01/31/2024, 10:14 PMVampire
01/31/2024, 10:15 PMVampire
01/31/2024, 10:15 PMVampire
01/31/2024, 10:16 PMVampire
01/31/2024, 10:16 PMAdam
01/31/2024, 10:17 PMVampire
01/31/2024, 10:17 PMVampire
01/31/2024, 10:18 PMAdam
01/31/2024, 10:18 PMVampire
01/31/2024, 10:18 PMVampire
01/31/2024, 10:19 PMVampire
01/31/2024, 10:19 PMAdam
01/31/2024, 10:20 PMVampire
01/31/2024, 10:21 PMVampire
01/31/2024, 10:22 PMVampire
01/31/2024, 10:22 PMAdam
01/31/2024, 10:22 PMAdam
01/31/2024, 10:22 PMVampire
01/31/2024, 10:23 PMVampire
01/31/2024, 10:23 PMBut now it's considering other attributes too, and providing random files.No, it is not
Vampire
01/31/2024, 10:23 PMVampire
01/31/2024, 10:23 PMVampire
01/31/2024, 10:24 PMVampire
01/31/2024, 10:24 PMVampire
01/31/2024, 10:24 PMVampire
01/31/2024, 10:24 PMVampire
01/31/2024, 10:25 PMAdam
01/31/2024, 10:25 PMWhat other attributes do you think are used?my plugin should be agnostic to that - I can't control what other attributes are/aren't set in other projects
Vampire
01/31/2024, 10:26 PMAdam
01/31/2024, 10:26 PMVampire
01/31/2024, 10:27 PMVampire
01/31/2024, 10:28 PMyes exactly, that's the problem, "no Usage attribute" is not compatible with "only use Usage"Sure it is and that is what also is documented
Adam
01/31/2024, 10:28 PMAdam
01/31/2024, 10:29 PMAdam
01/31/2024, 10:30 PMVampire
01/31/2024, 10:30 PMVampire
01/31/2024, 10:30 PMAdam
01/31/2024, 10:31 PMWhy do you think I don't read it?Because you don't seem to understand what it means, and I'm not sure which part is confusing
Vampire
01/31/2024, 10:31 PMVampire
01/31/2024, 10:31 PMAdam
01/31/2024, 10:31 PMVampire
01/31/2024, 10:31 PMVampire
01/31/2024, 10:31 PMAdam
01/31/2024, 10:32 PMVampire
01/31/2024, 10:32 PMVampire
01/31/2024, 10:32 PMAdam
01/31/2024, 10:32 PMVampire
01/31/2024, 10:33 PMVampire
01/31/2024, 10:33 PMAdam
01/31/2024, 10:34 PMVampire
01/31/2024, 10:34 PMAdam
01/31/2024, 10:35 PMAdam
01/31/2024, 10:35 PMVampire
01/31/2024, 10:36 PMAdam
01/31/2024, 10:36 PMAdam
01/31/2024, 10:36 PMAdam
01/31/2024, 10:36 PMVampire
01/31/2024, 10:36 PMVampire
01/31/2024, 10:37 PMVampire
01/31/2024, 10:37 PMVampire
01/31/2024, 10:37 PMVampire
01/31/2024, 10:37 PMVampire
01/31/2024, 10:37 PMVampire
01/31/2024, 10:38 PMVampire
01/31/2024, 10:38 PMVampire
01/31/2024, 10:38 PMAdam
01/31/2024, 10:38 PMVampire
01/31/2024, 10:39 PMVampire
01/31/2024, 10:39 PMVampire
01/31/2024, 10:40 PMVampire
01/31/2024, 10:40 PMAdam
01/31/2024, 10:40 PMVampire
01/31/2024, 10:44 PMVampire
01/31/2024, 10:45 PMVampire
01/31/2024, 10:45 PMVampire
01/31/2024, 10:46 PMAdam
01/31/2024, 10:48 PMAdam
01/31/2024, 10:52 PMAdam
01/31/2024, 10:54 PMBut the docs that are there are correct and it works as designed.yeah that's kind of the biggest problem with Gradle...
Vampire
01/31/2024, 11:07 PMVampire
01/31/2024, 11:07 PMVampire
01/31/2024, 11:10 PM