Slackbot
04/19/2022, 4:58 PMgrossws
04/19/2022, 5:04 PMpluginManager.withPlugin("idea") { .. }
and configure required source sets. One caveat that I found is that some of their newer APIs that use `FileCollection`/`FileTree` are ignored and you have to use older ones.grossws
04/19/2022, 5:04 PMBig Chungus
04/19/2022, 5:13 PMBig Chungus
04/19/2022, 5:14 PMpluginManager.withPlugin("idea") {
extensions.configure(IdeaModel::class.java) { im ->
im.module.sourceDirs = im.module.sourceDirs + extension.sourceSets.flatMap { it.sources }
im.module.testSourceDirs = im.module.testSourceDirs + extension.sourceSets.flatMap { it.sources }
}
}
Unless I'm missing something heregrossws
04/19/2022, 5:23 PMit.sources.sourceDirectories
in the lambdas. Another thing is to check if you need allSources instead of sources. Also check if the result type of `flatMap`s is done collection supported by the idea pluginBig Chungus
04/19/2022, 5:29 PMgrossws
04/19/2022, 5:31 PMBig Chungus
04/19/2022, 5:32 PMgrossws
04/19/2022, 5:32 PMgrossws
04/19/2022, 5:32 PMgrossws
04/19/2022, 5:38 PMdependsOn
for ideaModule
task: https://github.com/asciidoctor/asciidoctor-gradle-plugin/blob/34837b18609821bd85c239453a3111d13c1e0d0a/asciidoctoreditorconfig/src/main/groovy/org/asciidoctor/gradle/editorconfig/AsciidoctorEditorConfigPlugin.groovy#L44grossws
04/19/2022, 5:42 PMBig Chungus
04/19/2022, 5:51 PMgrossws
04/19/2022, 6:10 PM