(OFBIZ-10428)
The JVM already knows the file separator of the current system when running
Gradle so use that value instead of guessing from the operating system property.
Thanks: Mathieu Lirzin
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1833949 13f79535-47bb-0310-9956-ffa450edef68
Currently the iterateOverActiveComponents function or tasks exists both in build.gradle and settings.gradle. Do we need both?
This patch introduces a new Gradle file which holds the shared method iterateOverActiveComponents which is used by build.gradle and settings.gradle. Thanks Pierre for the trigger to learn some Gradle stuff
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1752890 13f79535-47bb-0310-9956-ffa450edef68
Thank you Jacques Le Roux for reporting this! This commit achieves the
following improvements:
- refactor the code for the settings to make it more organized
by moving blocks of code into more appropriate locations in
the build script
- Remove the exclusion on a library that is no longer necessary
thanks to work done by Gil Portenseigne to remove these libraries
- refactor settings.gradle to define projects in an OS independent way.
I realized that the projects were improperly defined in windows
which makes their count 49 as opposed to 52 projects on other OSes
- Introduce regex expressions to properly format the .classpath file
for eclipse. The regex expressions makes identifying the unwanted
items possible for all OSes
Luckily Jacques Le Roux uses Windows OS and as he was testing the framework
with eclipse he reported imporper path settings generated by the gradle
eclipse task.
Upon investigation, we realized multiple problems exist in the build scripts
relating to operating-system specific path delimiters. All tests pass
on both windows and Linux and eclipse is not complaining on either OS
from the .classpath generated file. Hence committing.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1752658 13f79535-47bb-0310-9956-ffa450edef68
Thanks to Jacques Le Roux for informing us. This patch fixes
the following in gradle for eclipse:
- First, make all references to files relative to ${rootDir}.
This has the added value of being able to work when called
from any directory and resolves some issues with eclipse
- Remove the config resources from eclipse. These config resources
represent any files in $componentName/config which are necessary
for OFBiz to work but not needed as a source directory in eclipse.
Still work in progress and more to come
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1752302 13f79535-47bb-0310-9956-ffa450edef68
This is the first patch that takes OFBiz to the point of no return
in terms of switching from Ant to Gradle build system. Specifically
this patch applies the following items:
- Delete all old Ant and Maven build scripts
- Delete 169 Jar libraries and replace them with remote ones in the
gradle build script
- update the gradle build scripts for the dependencies and other minor
changes needed for the script work correctly
All tests pass with the command ./gradlew cleanAll loadDefault testIntegration
Again, thank you for everyone who contributed valueble time and effort in this
process.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1752033 13f79535-47bb-0310-9956-ffa450edef68
This commit represents a pivotal change in the history of the
project in which the build system is being replaced from Apache
Ant to Gradle of which the discussion mail thread link is below.
Thanks to everyone who helped with testing and feedback
This commit delivers the following:
- add the gradle wrapper directory in gradle/* which holds
all items necessary for gradle to run
- add the build.gradle master script
- add the settings.gradle script which declares all the subprojects
- add documentation for how to use everything in a new file called
README.md (written in markdown)
The new script is capable of the functionality that used to exist
in Ant with some additional features including automation of eclipse
files generation and many other functions.
To complete this new feature, we need to apply the following _after_
this commit:
- change the buildbot to utilize gradle instead of ant
- delete all ant & maven scripts
- replace all local jars with remote ones from jcenter
Reference thread: http://ofbiz.markmail.org/message/vstt3wxuubmjgmqj?q=Important+Changes+to+Trunk+and+Use+of+Ant+%26+Gradle
Reference JIRA: https://issues.apache.org/jira/browse/OFBIZ-7534
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1751309 13f79535-47bb-0310-9956-ffa450edef68