Skip to content

Commit

Permalink
includes milestones for internal spring repo
Browse files Browse the repository at this point in the history
Signed-off-by: OlegDokuka <[email protected]>
  • Loading branch information
OlegDokuka committed Jul 12, 2023
1 parent 539ece8 commit acbb186
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/main/java/io/projectreactor/DocUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -252,14 +252,14 @@ else if (!"style.css".equals(file)) {
file = actualModule.getArtifactId() + "/" + file;
}

final boolean isSnapshot = versionType.equalsIgnoreCase("snapshot");
String url = (isSnapshot ? ("https://repo.spring.io/" + versionType) : "https://s01.oss.sonatype.org/service/local/repositories/releases/archive")
final boolean isForSpringRepo = versionType.equalsIgnoreCase("snapshot") || versionType.equalsIgnoreCase("milestone");
String url = (isForSpringRepo ? ("https://repo.spring.io/" + versionType) : "https://s01.oss.sonatype.org/service/local/repositories/releases/archive")
+ "/" + actualModule.getGroupId().replace(".", "/")
+ "/" + actualModule.getArtifactId()
+ "/" + actualVersion
+ "/" + actualModule.getArtifactId()
+ "-" + actualVersion + suffix
+ (isSnapshot ? "!/" : "/!/") + file;
+ (isForSpringRepo ? "!/" : "/!/") + file;

return url;
}
Expand All @@ -274,14 +274,14 @@ static String moduleToArtifactUrl(String reqUri, String versionType,
file = indexFile;
}

final boolean isSnapshot = versionType.equalsIgnoreCase("snapshot");
String url = (isSnapshot ? ("https://repo.spring.io/" + versionType) : "https://s01.oss.sonatype.org/service/local/repositories/releases/archive")
final boolean isForSpringRepo = versionType.equalsIgnoreCase("snapshot") || versionType.equalsIgnoreCase("milestone");
String url = (isForSpringRepo ? ("https://repo.spring.io/" + versionType) : "https://s01.oss.sonatype.org/service/local/repositories/releases/archive")
+ "/" + actualModule.getGroupId().replace(".", "/")
+ "/" + actualModule.getArtifactId()
+ "/" + actualVersion
+ "/" + actualModule.getArtifactId() + artifactSuffix
+ "-" + actualVersion + suffix
+ (isSnapshot ? "!/" : "/!/") + rootDirInArtifact + file;
+ (isForSpringRepo ? "!/" : "/!/") + rootDirInArtifact + file;

return url;
}
Expand Down

0 comments on commit acbb186

Please sign in to comment.