-
Notifications
You must be signed in to change notification settings - Fork 81
Remove BOM_SKIP_ARTIFACT_IDS #2338
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
9f36776
4d0e0bf
ee81e56
b8ae5ec
5cdb3ae
9c82173
28dcef5
a3ac036
82d2dee
9016529
f78f8f6
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -19,7 +19,6 @@ | |
| import com.google.common.annotations.VisibleForTesting; | ||
| import com.google.common.base.Preconditions; | ||
| import com.google.common.collect.ImmutableList; | ||
| import com.google.common.collect.ImmutableSet; | ||
| import java.nio.file.Path; | ||
| import java.util.ArrayList; | ||
| import java.util.List; | ||
|
|
@@ -38,9 +37,6 @@ | |
| import org.eclipse.aether.resolution.ArtifactDescriptorResult; | ||
|
|
||
| public final class Bom { | ||
|
|
||
| private static final ImmutableSet<String> BOM_SKIP_ARTIFACT_IDS = | ||
| ImmutableSet.of("google-cloud-logging-logback", "google-cloud-contrib"); | ||
|
|
||
| private final ImmutableList<Artifact> artifacts; | ||
| private final String coordinates; | ||
|
|
@@ -151,12 +147,7 @@ public static boolean shouldSkipBomMember(Artifact artifact) { | |
| if ("test-jar".equals(type)) { | ||
| return true; | ||
| } | ||
|
|
||
| // TODO remove this hack once we get these out of google-cloud-java's BOM | ||
| if (BOM_SKIP_ARTIFACT_IDS.contains(artifact.getArtifactId())) { | ||
| return true; | ||
| } | ||
|
Comment on lines
-155
to
-158
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is the main change. |
||
|
|
||
|
|
||
| return false; | ||
| } | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -340,14 +340,15 @@ public void testWriteExclusionFile_indent() | |
|
|
||
| ExclusionFiles.write(output, linkageErrors); | ||
|
|
||
| String actual = new String(Files.readAllBytes(output)); | ||
| String actual = new String(Files.readAllBytes(output)).replaceAll("\\R", "\n"); | ||
|
|
||
| String expected = | ||
| new String( | ||
| Files.readAllBytes( | ||
| absolutePathOfResource( | ||
| "exclusion-sample-rules/expected-exclusion-output-file.xml")), | ||
| StandardCharsets.UTF_8); | ||
| Files.readAllBytes( | ||
| absolutePathOfResource( | ||
| "exclusion-sample-rules/expected-exclusion-output-file.xml")), | ||
| StandardCharsets.UTF_8) | ||
| .replaceAll("\\R", "\n"); | ||
|
Comment on lines
-343
to
+351
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Memo: In the new Windows environment, which changed jdk1.8.0_152 to jdk1.8.0_211, the return character was different. This change ignores the difference. |
||
|
|
||
| assertEquals(expected, actual); | ||
| } | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| @echo on | ||
|
|
||
| set JAVA_HOME=c:\program files\java\jdk1.8.0_152 | ||
| set JAVA_HOME=c:\program files\java\jdk1.8.0_211 | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. _152 was not owrking any more. |
||
| set PATH=%JAVA_HOME%\bin;%PATH% | ||
| set MAVEN_OPTS="-Xmx12g" | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The assertion count changes because now the BOM includes a bit more artifacts.