2 JSLT build issues
See original GitHub issueThe project contains a pom.xml
as well as a build.gradle
.
The README.md file does not explicitly state which is the main build tool. There is but one clue, though.
Under Using the library it shows how to include JSLT
into one’s project, by means of POM dependency.
The other indirect clue, is that the gradle
build cannot launch:
So, this is the smaller problem - which build tool is the main.
The second problem is that the tests are not run, neither on mvn test
, let alone on mvn install
.
Here’s the log of mvn test
:
[INFO] Scanning for projects...
[INFO]
[INFO] --------------------< com.schibsted.spt.data:jslt >---------------------
[INFO] Building jslt 0.1.11
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ jslt ---
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory /Users/#########/workspace/java/jslt.git/src/main/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ jslt ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ jslt ---
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory /Users/#########/workspace/java/jslt.git/src/test/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ jslt ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ jslt ---
[INFO] No tests to run.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.371 s
[INFO] Finished at: 2020-12-14T09:20:20+01:00
[INFO] ------------------------------------------------------------------------
Mind the lines above BUILD SUCCESS:
...
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ jslt ---
[INFO] No tests to run.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
...
This is a known problem when using JUnit
w/ mvn
3.6 and above.
I do not have the option to downgrade.
I use JDK 11.0.9 on macOS 10.13.6.
mvn
version 3.6.3
gradle
version 6.7.1
Which versions of the build tools are the lowest supported ?
gradle/wrapper/gradle-wrapper.properties
pulls in version 4.10.3 from December 2018.
Issue Analytics
- State:
- Created 3 years ago
- Comments:6
Great. Closing the issue, then.
./gradlew jar
works, thanks!