Skip to content

Commit

Permalink
Fixing an issue with distribution management repositories losing auth…
Browse files Browse the repository at this point in the history
…entication settings.

- Added testcase
  • Loading branch information
stefan-riesen authored and talios committed Dec 11, 2023
1 parent 804efcf commit 7380278
Showing 1 changed file with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -560,8 +560,16 @@ public class TilesMavenLifecycleParticipantTest {
def participant = new TilesMavenLifecycleParticipant()
participant.discoverAndSetDistributionManagementArtifactoryRepositoriesIfTheyExist(project);

assert project.releaseArtifactRepository.authentication!=null;
assert project.snapshotArtifactRepository.authentication!=null;

def releaseAuthentication = project.releaseArtifactRepository.authentication
assert releaseAuthentication !=null;
assert releaseAuthentication.username == "username"
assert releaseAuthentication.password == "secret"

def snapshotAuthentication = project.snapshotArtifactRepository.authentication
assert snapshotAuthentication !=null;
assert snapshotAuthentication.username == "username"
assert snapshotAuthentication.password == "secret"
}

protected static Model createBasicModel() {
Expand Down

0 comments on commit 7380278

Please sign in to comment.