Skip to main content
added 205 characters in body
Source Link
candied_orange
  • 119.7k
  • 27
  • 233
  • 369

What if you just stop editing the pom files?

Suppose you set it up so that every time you push changes to these projects your CI pipeline tests them with the AppA and AppB poms pointing to the release version of the UtilsLibrary.

What that means is you must push breaking changes to UtilsLibraryUtilsLibrary first then push AppAAppA and AppBAppB.

Done this way you can still point to snapshots locallythe local UtilsLibrary snapshot when on your local box but the CI (which can’t see your local snapshots anyway) will test againstAppA and AppB using the UtilsLibrary release versionsversion.

UtilsLibrary release version is whatever UtilsLibrary was when you last pushed it. Doesn't mater if it's live yet. It maters if the apps and library know how to talk to each other.

Just don’t push poms that point at snapshots.

What if you just stop editing the pom files?

Suppose you set it up so that every time you push changes to these projects your CI pipeline tests them with the poms pointing to the release version.

What that means is you must push breaking changes to UtilsLibrary first then push AppA and AppB.

Done this way you can still point to snapshots locally but the CI (which can’t see your local snapshots anyway) will test against the release versions.

Just don’t push poms that point at snapshots.

What if you just stop editing the pom files?

Suppose you set it up so that every time you push changes to these projects your CI pipeline tests them with the AppA and AppB poms pointing to the release version of the UtilsLibrary.

What that means is you must push breaking changes to UtilsLibrary first then push AppA and AppB.

Done this way you can still point to the local UtilsLibrary snapshot when on your local box but the CI (which can’t see your local snapshots anyway) will test AppA and AppB using the UtilsLibrary release version.

UtilsLibrary release version is whatever UtilsLibrary was when you last pushed it. Doesn't mater if it's live yet. It maters if the apps and library know how to talk to each other.

Just don’t push poms that point at snapshots.

Source Link
candied_orange
  • 119.7k
  • 27
  • 233
  • 369

What if you just stop editing the pom files?

Suppose you set it up so that every time you push changes to these projects your CI pipeline tests them with the poms pointing to the release version.

What that means is you must push breaking changes to UtilsLibrary first then push AppA and AppB.

Done this way you can still point to snapshots locally but the CI (which can’t see your local snapshots anyway) will test against the release versions.

Just don’t push poms that point at snapshots.