oblac / jodd

Jodd! Lightweight. Java. Zero dependencies. Use what you like.
https://jodd.org
BSD 2-Clause "Simplified" License
4.06k stars 724 forks source link

Can't build Jodd from source without modifying build.gradle #162

Closed djsuprin closed 10 years ago

djsuprin commented 10 years ago

Hi Igor,

I was trying to build Jodd from source to try to find out which exception doesn't let me to receive an email body parts but failed to do so without modifying build file. I run gradlew build and it failed with the following error:

* What went wrong:
Execution failed for task ':jodd-core:javadoc'.
> Javadoc generation failed. Generated Javadoc options file (useful for troubleshooting): 
'C:\Users\vvasilye\Projects\jodd\jodd-core\build\tmp\javadoc\javadoc.options'

I had to comment javadoc artifact in build.gradle (line 200):

artifacts {
    archives jar
    archives sourcesJar
    //archives javadocJar
}

After that it still couldn't build failing some tests in jodd-http (34 tests completed, 12 failed). Let me know if you want me to send you the list of failed tests. To finally build the project I had to skip the tests.

Letting you know just in case.

Kind regards, Vladimir

igr commented 10 years ago

Did you use Java8 for building? That might be one reason why javadoc failed, otherwise I do not see what else :) Was there any exception that might tell us more what was wrong with javadocs?

Regarding the tests - they should work :) They are executed on Travis on each commit, on jdk7 and openjdk7; so far this works. Sure, you may send your failing tests. Please note that if you have Tomcat running on default port, some tests may fail (i need to change the port :)

djsuprin commented 10 years ago

Sure, you right, I'm using Java 1.8. Still can't get used to the thought that new Java fails almost any build. =) I'm closing the ticket, sorry for the distraction.

Cheers, Vladimir

igr commented 10 years ago

:)) No problem, I am running the build on jdk8 from time to time, but just didn't do that for some time. Will fix the issues anyway !

igr commented 10 years ago

Fixed javadoc problem: https://github.com/oblac/jodd/commit/df596ef6fe34590af5a8ad2d95196aae2fa02533

Thank you!