SmartGridready / SGrJava

SmartGridready communication handler in Java
Other
0 stars 0 forks source link

Build arguments to use DEV dependencies #94

Closed mkrebs81 closed 1 month ago

mkrebs81 commented 2 months ago

Choose between release and snapshot dependencies

The SGrJava library has multiple dependencies on other SGr projects:

In general, the configured dependencies should be release versions by default.

However, it would be useful to define build arguments, so a developer can use snapshot dependencies when required.

mkrebs81 commented 2 months ago

Added PoC with build arguments.

I have left the dependency version numbers as fixed values, because using ranges for dependencies may cause problems. Such as snapshots being used, because Gradle thinks the snapshot is newer than the the production release...

will investigate further, until then keep fixed version.

mkrebs81 commented 1 month ago

@ergo-furrer I found a passable solution to use SNAPSHOT dependencies, and I also improved the dependency management of the published libraries.

When using this solution, you only need to explicitly imprt the sgr-commhandler packages, and all other dependent packages will be included as well. I tested it locally with my Testlab integration application.