Talaiot icon indicating copy to clipboard operation
Talaiot copied to clipboard

Custom publishers in 2.x

Open TWiStErRob opened this issue 1 year ago • 1 comments

Hey, it seems 2.0 removed custom publisher configuration.

The documentation is still showing the old API (including a typo with plural): https://github.com/cdsap/Talaiot/wiki/Publishers#custompublisher

How do we do the same in 2.x in .gradle.kts?

TWiStErRob avatar Aug 13 '24 12:08 TWiStErRob

I think the issue might be visibility:

https://github.com/cdsap/Talaiot/blob/33a6e36c798686630308252eed1fc8f68c623fa6/library/plugins/base/base-plugin/src/main/java/io/github/cdsap/talaiot/plugin/base/BaseConfiguration.kt#L8

extends

https://github.com/cdsap/Talaiot/blob/33a6e36c798686630308252eed1fc8f68c623fa6/library/core/talaiot/src/main/kotlin/io/github/cdsap/talaiot/publisher/PublishersConfiguration.kt#L5

which means BaseConfiguration's API contains the superclass PublishersConfiguration. but it's not exposed as a dependency (api(...)):

https://github.com/cdsap/Talaiot/blob/33a6e36c798686630308252eed1fc8f68c623fa6/library/plugins/base/base-plugin/build.gradle.kts#L17

TWiStErRob avatar Aug 22 '24 13:08 TWiStErRob