Slackbot
04/03/2023, 5:14 PMChris Lee
04/03/2023, 5:17 PMIgor Wojda
04/03/2023, 5:38 PMVampire
04/03/2023, 6:00 PMsubprojects { ... }
too, yes, but you shouldn't.
It is bad practice by now and as it adds project coupling prevents some more sophisticated Gradle performance features like configure-on-demand or parallel configuration. Besides that it makes builds less clear to read and harder to maintain.Vampire
04/03/2023, 6:01 PMColton Idle
04/03/2023, 6:48 PMJavi
04/03/2023, 6:57 PMIgor Wojda
04/03/2023, 7:56 PMJavi
04/03/2023, 8:00 PMVampire
04/03/2023, 10:39 PMVampire
04/03/2023, 10:39 PMThomas Broyer
04/04/2023, 8:52 AMlocal.base
plugin sets up Spotless for the *.gradle.kts
, the local.java-library
applies local.base
and sets up Spotless for Java code.
The root build.gradle.kts
only applies local.base
, whereas subprojects each apply the local.java-library
plugin (and in javac-diagnostic-serializer, the gradle-plugin subproject also configures Spotless for Kotlin code)Igor Wojda
04/04/2023, 4:53 PMbuildSrc
use alias from version catalog rather hardcoded id string??
`buildSrc\src\main\kotlin\local.testplugin.gradle.kts`:
Does not work:
plugins {
alias(libs.plugins.spotless)
}
Works:
plugins {
id("com.diffplug.spotless")
}
Vampire
04/04/2023, 5:55 PMplugins { ... }
block there is a hack-around I created in the according feature request.
But within the plugins { ... }
block it does not work.Igor Wojda
04/04/2023, 11:25 PMembedded-kotlin
and kotlin-dsl
plugins rely on features of Kotlin 1.8.10
that might work differently than in the requested version 1.8.20
." - any idea on how to solve this?Chris Lee
04/04/2023, 11:33 PM