-
Notifications
You must be signed in to change notification settings - Fork 859
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
Build with Gradle #179
Build with Gradle #179
Conversation
+ sources and test compilation + jar building
- disabled test removed
+ run benchmark from Gradle + publishing artifacts from Gradle
+ run benchmark from Gradle + publishing artifacts from Gradle
This reverts commit 4c8018e.
Hello @gbrail, could you review the PR and provide your feedback. |
+ exclude unnecesary files from jar
Working on testing this -- I hope to get more time next week. Can you try and figure out why I have to put a bunch of Maven stuff in my global "gradle.properties," including a repo URL, username, and password? I think that if we want everybody to use this (and we do) then they shouldn't have to configure that stuff. I can give details if you want... |
Hello, Just create a file I'll update |
Is there a way to write the Gradle files so that those properties are On Wed, Apr 29, 2015 at 9:19 AM, Evgeny Shepelyuk notifications@github.com
greg brail | apigee https://apigee.com/ | twitter @gbrail |
Pushed the fix, plz update. |
Making good progress... I think that there are two more things we should do: First, of all the "compile" ant task (on line 43 of build.xml) copies all the source into the build directory before compiling, and uses an ant "filter" task to replace the macro @IMPLEMENTATION-VERSION |
... First, of all the "compile" ant task (on line 43 of build.xml) copies all the source into the build directory before compiling, and uses an ant "filter" task to replace the macro @IMPLEMENTATION-VERSION@ with the version from build.properties. Without doing this macro replacement, then you get this: $ java -jar buildGradle/libs/rhino-1.7.7-SNAPSHOT.jar Instead of: Rhino 1.7.7 2015 04 30 Gradle can do this -- or we can find a better way since it's just one property in one file (it could look it up from the JAR manifest I think). But either way we should do it. Second, we have always distributed the result of "ant dist" on the Mozilla web site, so if we want to remove ant and put in gradle instead, then we should include the ZIP file that results from this command. Also, it'd be nice if there was an equivalent of "ant junit-benchmarks". But that can come later. If you can fix the IMPLEMENTATION.VERSION easily, then I think we should merge this. Then we can see about removing the ant stuff. |
P.S. I will be able to provide fixes only starting from Monday. |
OK -- no worries. I can do a few things to fix it. I don't like the way that we filter ALL the source anyway so I'm going to change it in ant and then in Gradle. No need to do anything until you hear from me. |
Well, maybe if you can wait couple if days I will push those fixes. I am planning to do in in Java and remove it from build script responsibilities. |
Of course, and we can take our time to get this right. I made a small change and pushed it to a build called "greg-gradle." If you (having a lot more Gradle experience than I) think that it solves the immediate problem, then I think we can push this to master and then iterate from there. Can you take a look: https://github.com/mozilla/rhino/blob/greg-gradle/build.gradle Basically, I added a task to copy the contents of "src/org/mozilla/javascript/resources" into the build directory, with filtering -- without that, the message property bundle was missing. WIth this change, other than the "dist.zip" I think that we have Gradle doing everything that Ant did. |
Looks good, not sure we need |
Pushed fix to obtain |
@gbrail have you ever expirienced failures in |
Yes, there are a few tests that are timing-related. For instance, there is Interestingly, some of them perform differently when run via ant versus On Mon, May 4, 2015 at 12:01 PM, Evgeny Shepelyuk notifications@github.com
greg brail | apigee https://apigee.com/ | twitter @gbrail |
|
I am, however, seeing a null pointer exception in the re-factored I'm not sure what's going on unless the directory that it's looking up in On Mon, May 4, 2015 at 12:01 PM, Evgeny Shepelyuk notifications@github.com
greg brail | apigee https://apigee.com/ | twitter @gbrail |
Could you check if files really exists in job's build folder ! I can't access it on my own. |
I gave up struggling to create Pull Request to from
to
|
@gbrail Some more questions
|
OK -- I fixed that and merged. Thanks for all the work on this! |
MIgration of build system to
Gradle
.Some unit tests were modified, 1 unused was deleted to make
Gradle
adoption easier.fixes #178 fixes #168
Closes #57
Done
Gradle
installation neededGradle
Maven
compatible repositories withGradle
Ant
andMaven
scripts are still workingIntelliJ IDEA
due toGradle
project naturePostponed for further review, until PR approval
README
updatesbuildGradle
is used to prevent conflicts withAnt
Not planned
ZIP
artifacts like one currently produced byAnt
. It seems no need to have onerelease
management, i.e. automatic version update, creating GIT tags etcEMMA
test code coverage