Thanks for the pointer.  We should add that to the documentation for Windows 
based builds.  As I said, I got the build working with gradle and all is well.  
Problem is getting it running – the next step.  No such luck there.

From: Juhan Aasaru <aas...@gmail.com>
Sent: Friday, December 6, 2019 1:18 AM
To: Dev <dev@fineract.apache.org>
Cc: Victor Romero <victor.rom...@fintecheando.mx>
Subject: Re: Fineract build

External
Hi!

gradlew is packaged together with the application code.
So when you clone the repo you also get gradlew.bat
It is this file: 
https://github.com/apache/fineract-cn-demo-server/blob/develop/gradlew.bat

Juhan

Kontakt Rohit Jain (<rohit.j...@esgyn.com<mailto:rohit.j...@esgyn.com>>) 
kirjutas kuupäeval N, 5. detsember 2019 kell 19:20:
Thanks guys!  As I said, I was able to build successfully and move on with the 
changes I made, although they required an investment of time to research.  So, 
I was just passing those solutions along.  I want to remind you that I am doing 
this on Windows 10.  And while folks have said that the OS should not matter, 
Gradle 5.6, as installed, does NOT have gradlew.  That is certainly what I 
tried first as the instructions said to.  Now, there might be a way to run 
gradlew on Windows, but I chose the “easier” path, and perhaps it turned out to 
be the harder path.

From: Maek Twain <sara...@theupscale.in<mailto:sara...@theupscale.in>>
Sent: Thursday, December 5, 2019 3:01 AM
To: Dev <dev@fineract.apache.org<mailto:dev@fineract.apache.org>>
Cc: Victor Romero 
<victor.rom...@fintecheando.mx<mailto:victor.rom...@fintecheando.mx>>
Subject: Re: Fineract build

You can skip the licenseMain task in gradle using -x licenseMain.

I mean it's fine if you are testing it now.

Rest is in your hands

On Thu, 5 Dec 2019, 13:17 Juhan Aasaru, 
<aas...@gmail.com<mailto:aas...@gmail.com>> wrote:
Windows should be fine, you should get everything working on that.
Michael has a little typo, you need to use

./gradlew (or ./gradlew.bat)

insead of "gradle".

You probably have Gradle 5 in your path which is not compatible (run "gradle 
--version" to see what version you have).
Also if you absolutely want to use locally installed Gradle instead of Gradle 
Wrapper (gradlew)
- sometimes I have done this with IntelliJ not using Gradle Wrapper for some 
reason
then you need to download gradle 4.10.3 to your local computer and make changes 
to the Path variable so that when you type
"gralde --version" it reports this version number.

Juhan

Kontakt Michael Vorburger (<m...@vorburger.ch<mailto:m...@vorburger.ch>>) 
kirjutas kuupäeval N, 5. detsember 2019 kell 08:39:
These error messages look like they could be caused by a mismatch in Gradle 
version.

Instead of installing Gradle yourself and using "gradle" as the command, try 
using ./gradlewt to see if that helps?


On Wed, Dec 4, 2019 at 2:07 PM Rohit Jain 
<rohit.j...@esgyn.com<mailto:rohit.j...@esgyn.com>> wrote:
No changes.  I am following the build guidelines as outlined on that web page.

From: Victor Romero 
<victor.rom...@fintecheando.mx<mailto:victor.rom...@fintecheando.mx>>
Sent: Wednesday, December 4, 2019 3:56 PM
To: dev@fineract.apache.org<mailto:dev@fineract.apache.org>
Subject: Re: Fineract build

External
Hi Rohit,

That is not related to Operating System issues.

It is Fineract-CN code itself. Have you done any change or is a fresh clone ?

Regards

Victor
El 4 de diciembre de 2019 a las 10:56 AM Rohit Jain 
<rohit.j...@esgyn.com<mailto:rohit.j...@esgyn.com>> escribió:

When I started to build using the instructions on 
https://cwiki.apache.org/confluence/display/FINERACT/How+To+Build+Apache+Fineract+CN,
 I followed the recommended option 1 in Step 2: Get Program Code and ran into 
some issues when I ran gradle build (remember, I am trying to do this on a 
Windows laptop – probably not the ideal environment, and perhaps I should find 
a Linux build environment, although we don’t really use Ubuntu):

•         I ran into:
java.lang.NoClassDefFoundError: org.gradle.api.internal.ClosureBackedAction
Found that I needed to add the following in plugins to the build.gradle file to 
resolve that:
id "io.spring.dependency-management" version "1.0.8.RELEASE"

•         However, I then got an error:
java.lang.NoClassDefFoundError: 
io/spring/gradle/dependencymanagement/DependencyManagementExtension
Found that I needed to modify the id "org.springframework.boot" in build.gradle 
plugins to version "1.5.21.RELEASE"

•         Then it looked really promising.  But then I got an error:
org.gradle.api.tasks.TaskExecutionException: Execution failed for task 
':licenseMain'
This was ultimately resolved by adding the following lines to the license 
section of the build.gradle file:
skipExistingHeaders true
ignoreFailures true
and adding the following lines before the license section
gradle.startParameter.excludedTaskNames += "licenseMain"
gradle.startParameter.excludedTaskNames += "licenseTest"



Don’t know how relevant this is to the rest of the community for builds done on 
Ubuntu, the preferred OS.  So, it is up to you guys to decide whether you want 
to create a JIRA to rectify some or all of this, or ignore it.



Rohit


Reply via email to