Skip to content

Commit

Permalink
build: Updated to use Maven to fetch test Java libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
cederberg committed Mar 31, 2024
1 parent fdbac9f commit cee7863
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 4 deletions.
2 changes: 0 additions & 2 deletions .classpath
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,5 @@
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="lib" path="test/lib/junit-4.13.2.jar"/>
<classpathentry kind="lib" path="test/lib/hamcrest-2.2.jar"/>
<classpathentry kind="output" path="target/classes"/>
</classpath>
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
/plugin/
/target/
/test/classes/
/test/lib/*.jar
/tmp/

# Plug-in Build
Expand Down
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,9 @@ clean:
# Setup development environment
setup: clean
npm install --omit=optional
mvn dependency:copy-dependencies -DoutputDirectory=lib/
mvn dependency:copy-dependencies # for Eclipse project
mvn dependency:copy-dependencies -Dmdep.useSubDirectoryPerScope=true
cp target/dependency/compile/*.jar lib/
cp target/dependency/test/*.jar test/lib/


# Compile source and build plug-ins
Expand Down
12 changes: 12 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,18 @@
<artifactId>snakeyaml-engine</artifactId>
<version>2.7</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.13.2</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest</artifactId>
<version>2.2</version>
<scope>test</scope>
</dependency>
</dependencies>

</project>
Binary file removed test/lib/hamcrest-2.2.jar
Binary file not shown.
Binary file removed test/lib/junit-4.13.2.jar
Binary file not shown.

0 comments on commit cee7863

Please sign in to comment.