Skip to content

Commit

Permalink
Fix BOM generation for ecj 3.40.0
Browse files Browse the repository at this point in the history
  • Loading branch information
rzo1 committed Dec 16, 2024
1 parent bafb110 commit a4db14e
Showing 1 changed file with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,7 @@ public Artifact from(final File jar) {
}

if (jar.getName().startsWith("ecj-")) {
return new Artifact("org.eclipse.jdt", "ecj", "3.33.0", null);
return new Artifact("org.eclipse.jdt", "ecj", "3.40.0", null);
}

if (jar.getName().equals("openejb-javaagent.jar")) {
Expand Down Expand Up @@ -598,8 +598,7 @@ public int compareTo(final Artifact o) {
* and all such data would be in the parent pom.
*/
public String asBomDep() {
return "" +
" <dependency>\n" +
return " <dependency>\n" +
" <groupId>" + groupId + "</groupId>\n" +
" <artifactId>" + artifactId + "</artifactId>\n" +
" <version>" + version + "</version>\n" +
Expand All @@ -619,8 +618,7 @@ public String asBomDep() {
* the dependencies needed, but not duplicate the version information.
*/
public String asManagedDep() {
return "" +
" <dependency>\n" +
return " <dependency>\n" +
" <groupId>" + groupId + "</groupId>\n" +
" <artifactId>" + artifactId + "</artifactId>\n" +
" <version>" + version + "</version>\n" +
Expand Down Expand Up @@ -658,7 +656,7 @@ private static String message(final List<Distribution> incomplete) {
}
}
out.flush();
return new String(bytes.toByteArray());
return bytes.toString();
}
}
}

0 comments on commit a4db14e

Please sign in to comment.