Slackbot
08/11/2023, 5:09 PMAaron Todd
08/11/2023, 5:19 PMTom Koptel
08/11/2023, 5:41 PM// pseudo code
interface MyExtension {
@get:Input
val artifactsDir: RegularFileProperty
}
myExtension {
artifactsDir = file("/some/path/to/local/dir")
}
val myExtension = project.extensions.findByName("myExtension")
// we need to sneak peek into impl of the publish plugin to figure out the publishing task type
val customPublications = project.register<PublishTask>(name = "republish") {
artifactSource.set(myExtension.artifactsDir)
}
Vampire
08/11/2023, 5:53 PMAaron Todd
08/11/2023, 6:10 PMOr maybe it is already enough to use a build cache / remote build cache, so that results of time-consuming cacheable tasks can be reused to not "re-build the world"This is actually what we do now but I don't think it will work when we flip on support for other KMP targets other than JVM.
Javi
08/11/2023, 6:57 PMJavi
08/11/2023, 6:58 PMJavi
08/11/2023, 7:04 PMBUILD SUCCESSFUL in 5s
194 actionable tasks: 6 executed, 188 up-to-date
5 are not cacheable, as I am the owner of those, and it is expected (they print the library version in the CLI).
The other one is kotlinNpmCachesSetup
, which has taken 0.000s
to be executed, I have no idea about this one thoJavi
08/11/2023, 7:06 PMAaron Todd
08/11/2023, 7:07 PMJavi
08/11/2023, 7:08 PMJavi
08/11/2023, 7:10 PM