Skip to content

Commit

Permalink
Merge pull request #1953 from ProgrammeVitam/bug_13084_remove_common_…
Browse files Browse the repository at this point in the history
…private_references_v6

CP V6 - Bug#13084: remove vitam common-private library references and use common-public
  • Loading branch information
bbenaissa authored Dec 4, 2024
2 parents f1612ba + d8b3772 commit cca6de4
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 41 deletions.
5 changes: 0 additions & 5 deletions api/api-iam/iam-internal/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -191,11 +191,6 @@
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-core</artifactId>
</dependency>
<dependency>
<groupId>fr.gouv.vitam</groupId>
<artifactId>common-private</artifactId>
</dependency>


<!-- Apereo CAS Server Core Api Ticket -->
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@
import lombok.Getter;
import lombok.Setter;
import org.apache.commons.lang3.StringUtils;
import org.apache.shiro.util.Assert;
import org.springframework.beans.factory.annotation.Autowired;

import javax.transaction.Transactional;
Expand Down Expand Up @@ -194,12 +193,4 @@ protected void beforeCreate(final UserInfoDto dto) {

dto.setIdentifier(getNextSequenceId(SequencesConstants.USER_INFOS_IDENTIFIER));
}

private UserInfo find(final String id, final String message) {
Assert.isTrue(StringUtils.isNotEmpty(id), message + ": no id");

return getRepository()
.findById(id)
.orElseThrow(() -> new IllegalArgumentException(message + ": no user info found for id " + id));
}
}
5 changes: 1 addition & 4 deletions commons/commons-logbook/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,7 @@
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>fr.gouv.vitam</groupId>
<artifactId>common-private</artifactId>
</dependency>

<dependency>
<groupId>fr.gouv.vitam</groupId>
<artifactId>common-public</artifactId>
Expand Down
24 changes: 1 addition & 23 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -867,29 +867,7 @@
<artifactId>common-database-public</artifactId>
<version>${vitam.version}</version>
</dependency>
<dependency>
<groupId>fr.gouv.vitam</groupId>
<artifactId>common-private</artifactId>
<version>${vitam.version}</version>
<exclusions>
<exclusion>
<groupId>io.prometheus</groupId>
<artifactId>simpleclient_common</artifactId>
</exclusion>
<exclusion>
<groupId>io.prometheus</groupId>
<artifactId>simpleclient_dropwizard</artifactId>
</exclusion>
<exclusion>
<groupId>io.prometheus</groupId>
<artifactId>simpleclient_hotspot</artifactId>
</exclusion>
<exclusion>
<groupId>io.prometheus</groupId>
<artifactId>simpleclient</artifactId>
</exclusion>
</exclusions>
</dependency>

<dependency>
<groupId>fr.gouv.vitam</groupId>
<artifactId>logbook-common</artifactId>
Expand Down

0 comments on commit cca6de4

Please sign in to comment.