[
https://issues.apache.org/jira/browse/WICKET-6855?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17242991#comment-17242991
]
Martin Tzvetanov Grigorov commented on WICKET-6855:
---------------------------------------------------
Having wicket-api.jar won't help you because your third dependencies may use
different version of it and you will have the same problem as now.
In addition you will still have dependency on wicket-core, wicket-extentions,
... because you will need to *extend* Page, Panel, etc, and to instantiate them
(e.g. var a = new WebMarkupContainer("id")) in your code.
To solve your problem you need to use Maven/Gradle exclusions.
Please use [[email protected]|mailto:[email protected]] mailing list
for more discussions on this topic! Thanks!
> Request: Provide separate wicket-api.jar for interfaces
> -------------------------------------------------------
>
> Key: WICKET-6855
> URL: https://issues.apache.org/jira/browse/WICKET-6855
> Project: Wicket
> Issue Type: Improvement
> Reporter: Matt Pavlovich
> Priority: Minor
>
> Providing a separate wicket-api.jar would provide benefit for web application
> developers and web frameworks that are built on top of wicket by providing a
> clean separation of concerns.
> # All public interfaces into a org.apache.wicket.api.* package (IPage,
> IPanel, etc)
> # All internal interfaces into a org.apache.wicket.spi.* package (page
> stores, serializers, etc)
> This allows for a single-jar dependency for Wicket's framework and extension
> layers. The current packaging co-locates interfaces and implementations into
> the same packages, which also prevents the ability to repackage a
> distribution of Wicket that had interfaces broken out.
> Similar patterns followed in other open source projects:
> apache log4j2-api
> apache camel-api
> etc..
--
This message was sent by Atlassian Jira
(v8.3.4#803005)