Skip to content

Commit

Permalink
gson should be embedded in the bundle.
Browse files Browse the repository at this point in the history
  • Loading branch information
themnd committed Mar 30, 2021
1 parent 8d01b70 commit 6c2116f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
<version>2.2.2-atlassian-1</version>
<scope>provided</scope>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>com.atlassian.confluence.plugin</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

import javax.servlet.http.HttpServletRequest;

import org.apache.commons.lang.StringUtils;
import org.apache.maven.model.CiManagement;
import org.apache.maven.model.Dependency;
import org.apache.maven.model.DeploymentRepository;
Expand All @@ -36,7 +37,6 @@
import com.atex.confluence.plugin.nexus.data.MetadataManager;
import com.atlassian.confluence.renderer.radeox.macros.MacroUtils;
import com.atlassian.confluence.util.velocity.VelocityUtils;
import com.atlassian.extras.common.org.springframework.util.StringUtils;
import com.atlassian.renderer.RenderContext;
import com.atlassian.renderer.v2.RenderMode;
import com.atlassian.renderer.v2.SubRenderer;
Expand Down Expand Up @@ -258,7 +258,7 @@ private String getConnection(Scm scm) {
if(scm != null) {
String connection = scm.getConnection();
if(connection != null && !connection.trim().isEmpty()) {
if(StringUtils.countOccurrencesOf(connection, ":") > 2) {
if(StringUtils.countMatches("connection", ":") > 2) {
int index = connection.indexOf(":");
connection = connection.substring(index + 1);
index = connection.indexOf(":");
Expand Down

0 comments on commit 6c2116f

Please sign in to comment.