apache / pekko-connectors

Apache Pekko Connectors is a Reactive Enterprise Integration library for Java and Scala, based on Reactive Streams and Apache Pekko.
https://pekko.apache.org/
Apache License 2.0
56 stars 27 forks source link

add jakartams to sbt project list #718

Closed pjfanning closed 5 days ago

pjfanning commented 5 days ago

Added in #674 but this sbt issue seems to stop the jar being published

see https://repository.apache.org/content/groups/snapshots/org/apache/pekko/ - no jakartams there

pjfanning commented 5 days ago

@samueleresca the new #674 classes are breaking the doc build. See the checks for this PR.

It looks hard to fix. Paradox has built-in support for having 2 classes of the same name but one is in javadsl and one is in scaladsl. This support can't handle having a 2nd set of classes with the same name. The issue is if we try to use the FQCN, we will need to include the full package name and this negates the Paradox support for linking the javadsl/scaladsl version of the class depending on whether the UI user has chosen Java or Scala.

Would it be possible to rename all the Jms prefixed classes in the new connector to have something like JakartaMs or JakartaMessaging or JakartaJms prefix?

pjfanning commented 5 days ago

@samueleresca I think I have found a way to fix the doc issue - just testing it locally right now

samueleresca commented 5 days ago

@samueleresca the new #674 classes are breaking the doc build. See the checks for this PR.

It looks hard to fix. Paradox has built-in support for having 2 classes of the same name but one is in javadsl and one is in scaladsl. This support can't handle having a 2nd set of classes with the same name. The issue is if we try to use the FQCN, we will need to include the full package name and this negates the Paradox support for linking the javadsl/scaladsl version of the class depending on whether the UI user has chosen Java or Scala.

Would it be possible to rename all the Jms prefixed classes in the new connector to have something like JakartaMs or JakartaMessaging or JakartaJms prefix?

Why the build wasn't catching this at PR level? (I haven't seen anything failing). Let me come back on this in the next few days. I can rename the classes and give it a try again. Sorry for the inconvenience

pjfanning commented 5 days ago

@samueleresca I think this PR fixes the issues. The main build issue was the fact this new module wasn't added to the project list in build.sbt. This means that non-scoped sbt comands will ignore the module. So sbt jakartams/test works but sbt publishM2 ignored jakartams.