Slackbot
05/16/2023, 3:32 PMSlackbot
05/16/2023, 5:25 PMSlackbot
05/16/2023, 7:41 PMSlackbot
05/16/2023, 8:06 PMSlackbot
05/17/2023, 6:33 AMThao Nguyen lu
05/17/2023, 9:46 AMSlackbot
05/17/2023, 9:46 AMMatan Sabag
05/17/2023, 12:21 PMjacocoTestReport:
Caused by: java.lang.IllegalStateException: Canât add different class with same name:Any idea how to handle it and what might have causing it by just changing the Java version? Btw if ALL subprojects compiled with Java 11 or Java 8 it does not happen, if one of the subproject uses Java 11 but other s Java 8 it does happen.linqmap/metric/interfaces/MetricClient
Slackbot
05/17/2023, 1:29 PMMiroww328
05/17/2023, 1:30 PMSlackbot
05/17/2023, 1:30 PMSlackbot
05/17/2023, 7:19 PMSlackbot
05/18/2023, 7:10 AMAdam
05/18/2023, 10:42 AMmoduleFooFilesConsumer
, so Gradle ignores it for matching).
// this configuration is used in the `build.gradle.kts` - dependencies { moduleFooFiles(project(":alpha") }
val moduleFooFilesConsumer: NamedDomainObjectProvider<Configuration> = //...
val moduleFooFilesGroupedById: Provider<Map<String?, FileCollection>> =
moduleFooFilesConsumer
.map { conf ->
conf
.incoming
.artifactView { lenient(true) }
.artifacts
.filter { artifact ->
artifact.variant.attributes.getAttribute(MODULE_ID_ATTRIBUTE) != null
}.groupingBy { artifact ->
artifact.variant.attributes.getAttribute(MODULE_ID_ATTRIBUTE)!!.name
}.fold(objects.fileCollection()) { files, element ->
files.from(element.file)
}
}
There are actually a few similar file types - FooFiles, BarFiles, BazFiles - that need to be âtransmittedâ separately and then the files of all type types are grouped by module ID into some class (to be used by a JavaExec operation in an isolated Gradle Worker)
data class IncomingModule(
val moduleId: String,
val fooFiles: FileCollection,
val barFile: File,
val bazFiles: FileCollection,
)
IncomingModule
needs to be created in a task - but whatâs the correct task input for a property of type Provider<Map<String?, FileCollection>>
? I need one that will perform normalization on the files.Slackbot
05/18/2023, 8:24 PMSlackbot
05/19/2023, 6:01 PMSlackbot
05/19/2023, 6:42 PMpraneeth koundinya
05/20/2023, 7:40 AMpraneeth koundinya
05/20/2023, 7:41 AMSlackbot
05/20/2023, 7:41 AMSlackbot
05/21/2023, 8:21 AMSlackbot
05/21/2023, 11:50 AMSlackbot
05/21/2023, 6:02 PMBen Berman
05/21/2023, 9:02 PMgradle
binary exist?Slackbot
05/21/2023, 11:22 PMSlackbot
05/22/2023, 11:35 AMSlackbot
05/22/2023, 12:13 PMSlackbot
05/22/2023, 12:56 PMSlackbot
05/22/2023, 1:14 PM