Skip to content

Commit

Permalink
Reduced unneeded dependencies.
Browse files Browse the repository at this point in the history
  • Loading branch information
david-waltermire committed Oct 19, 2023
1 parent d395f29 commit d81ad89
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 17 deletions.
24 changes: 12 additions & 12 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@
<dependency.commons-io.version>2.14.0</dependency.commons-io.version>
<dependency.everit-json.version>1.14.3</dependency.everit-json.version>
<dependency.jline.version>3.21.0</dependency.jline.version>
<dependency.json.version>20230618</dependency.json.version>
<dependency.log4j2.version>2.20.0</dependency.log4j2.version>
<dependency.spotbugs-annotations.version>4.7.3</dependency.spotbugs-annotations.version>
<dependency.saxon-he.version>12.3</dependency.saxon-he.version>
Expand Down Expand Up @@ -220,6 +221,12 @@
<artifactId>everit-json-schema</artifactId>
<version>${dependency.everit-json.version}</version>
</dependency>
<dependency>
<!-- for dependency convergence -->
<groupId>org.json</groupId>
<artifactId>json</artifactId>
<version>${dependency.json.version}</version>
</dependency>
<dependency>
<groupId>com.github.spotbugs</groupId>
<artifactId>spotbugs-annotations</artifactId>
Expand Down Expand Up @@ -312,8 +319,7 @@
<addClasspath>true</addClasspath>
<!-- <classpathPrefix>lib/</classpathPrefix> -->
<classpathLayoutType>custom</classpathLayoutType>
<customClasspathLayout>
${artifact.groupId}.${artifact.artifactId}-$${artifact.version}.${artifact.extension}</customClasspathLayout>
<customClasspathLayout>${artifact.groupId}.${artifact.artifactId}-$${artifact.version}.${artifact.extension}</customClasspathLayout>
</manifest>
</archive>
</configuration>
Expand All @@ -332,10 +338,8 @@
<generateRepository>false</generateRepository>
<repositoryLayout>flat</repositoryLayout>
<repositoryName>lib</repositoryName>
<outputFileNameMapping>
@{groupId}@.@{artifactId}@-@{version}@.@{extension}@</outputFileNameMapping>
<extraJvmArguments>-Dsun.stdout.encoding=UTF-8
-Dsun.stderr.encoding=UTF-8</extraJvmArguments>
<outputFileNameMapping>@{groupId}@.@{artifactId}@-@{version}@.@{extension}@</outputFileNameMapping>
<extraJvmArguments>-Dsun.stdout.encoding=UTF-8 -Dsun.stderr.encoding=UTF-8</extraJvmArguments>
<projectArtifactFirstInClassPath>true</projectArtifactFirstInClassPath>
<includeConfigurationDirectoryInClasspath>false</includeConfigurationDirectoryInClasspath>
</configuration>
Expand Down Expand Up @@ -413,14 +417,10 @@
<goal>add-third-party</goal>
</goals>
<configuration>
<outputDirectory>
${project.build.directory}/generated-distro</outputDirectory>
<outputDirectory>${project.build.directory}/generated-distro</outputDirectory>
<thirdPartyFilename>LICENSE-THIRD-PARTY.txt</thirdPartyFilename>
<licenseMerges>
<licenseMerge>The Apache Software License,
Version 2.0|Apache
License, Version 2.0|Apache Public License
2.0</licenseMerge>
<licenseMerge>The Apache Software License, Version 2.0|Apache License, Version 2.0|Apache Public License 2.0</licenseMerge>
</licenseMerges>
</configuration>
</execution>
Expand Down
3 changes: 3 additions & 0 deletions src/main/assembly/bin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@
<outputDirectory>/lib</outputDirectory>
<outputFileNameMapping>${artifact.groupId}.${artifact.artifactId}-${artifact.version}.${artifact.extension}</outputFileNameMapping>
<useProjectArtifact>true</useProjectArtifact>
<excludes>
<exclude>org.jetbrains:annotations</exclude>
</excludes>
</dependencySet>
</dependencySets>
<fileSets>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ static void initialize() {
@SuppressWarnings("null")
@Test
void testLoadYamlNullVar1() throws IOException {
// the YAML catalog is currently malformed, this will create a proper one for this test
// the YAML catalog is currently malformed, this will create a proper one for
// this test
AssessmentResults data
= loader.load(
ObjectUtils.requireNonNull(Paths.get("src/test/resources/yaml-null/example_ar_nullvar-1.yaml")));
Expand All @@ -68,7 +69,8 @@ void testLoadYamlNullVar1() throws IOException {
@SuppressWarnings("null")
@Test
void testLoadYamlNullVar2() throws IOException {
// the YAML catalog is currently malformed, this will create a proper one for this test
// the YAML catalog is currently malformed, this will create a proper one for
// this test
AssessmentResults data
= loader.load(
ObjectUtils.requireNonNull(Paths.get("src/test/resources/yaml-null/example_ar_nullvar-2.yaml")));
Expand All @@ -83,7 +85,8 @@ void testLoadYamlNullVar2() throws IOException {
@SuppressWarnings("null")
@Test
void testLoadYamlNullVar3() throws IOException {
// the YAML catalog is currently malformed, this will create a proper one for this test
// the YAML catalog is currently malformed, this will create a proper one for
// this test
AssessmentResults data
= loader.load(
ObjectUtils.requireNonNull(Paths.get("src/test/resources/yaml-null/example_ar_nullvar-3.yaml")));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@

class Issue96ClassLoaderTest {
/**
* Regression tests for usnistgov/oscal-cli#96. See information at this URL for more details.
* https://github.com/usnistgov/oscal-cli/issues/96
* Regression tests for usnistgov/oscal-cli#96. See information at this URL for
* more details. https://github.com/usnistgov/oscal-cli/issues/96
*/
@Test
void testAssessmentPlanClassLoader() {
Expand Down

0 comments on commit d81ad89

Please sign in to comment.