Re: Fineract 1.x Dev Environment Setup Problems.

2019-03-06 Thread Vishwas Babu
Awasum,

I ran into the same issues when trying to run the Fineract codebase (having
worked on the MifosX codebase in another lifetime and assuming the same
build process would work). These problems seem to be caused by

1) Changes to project structure
gradlew moved from under /fineract-provider to under the project root.
This causes the issue raised by Juhan at
https://lists.apache.org/thread.html/f4cb9364504a13f71ea7654082274c7ff80c48b19ff76e8cadf3cc7f@%3Cdev.fineract.apache.org%3E
when the project is imported into intellij

The root cause of the gradle failure you are seeing is because the project
expects version 2.1 and your gradle version (based on your log) is 4.10

2) Hibernate replaced with openJPA
This breaks the ability to run Serverapplication.java . You would have to
rely on gradle for deploying fineract (task tomcatrunwar)

Regards,
Vishwas



On Mon, Mar 4, 2019 at 12:43 AM Awasum Yannick  wrote:

> Hello Everyone,
>
> I was trying to setup Fineract 1.x for development this weekend and did not
> succeed cuase of a few errors(I have not touched the code base since
> December 2016).
>
> Firstly, when I run ./gradlew build or bootRun from the top level
> directory, I get the following error:
>
> "FAILURE: Build failed with an exception.
>
> * *Where:*
> *Script
>
> '/home/awasum/apache-projects/fineract-monolith/fineract/fineract-provider/dependencies.gradle'
> line: 30*
>
> ** What went wrong:*
> *A problem occurred evaluating script.*
> *> Could not find method providedCompile() for arguments [] on object of
> type
>
> org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.*
>
> ** Try:*
> *Run with --stacktrace option to get the stack trace. Run with --info or
> --debug option to get more log output. Run with --scan to get full
> insights.*
>
> ** Get more help at https://help.gradle.org *
>
> *Deprecated Gradle features were used in this build, making it incompatible
> with Gradle 5.0.*
> *Use '--warning-mode all' to show the individual deprecation warnings.*
> *See
>
> https://docs.gradle.org/4.10/userguide/command_line_interface.html#sec:command_line_warnings
> <
> https://docs.gradle.org/4.10/userguide/command_line_interface.html#sec:command_line_warnings
> >*
> "
>
> I deleted the providedComplile() method in both:
> */fineract/fineract-provider/dependencies.gradle'
> line: 30*
> and in the : fineract-provider/dev-dependencies.gradle' line: 30 files.
>
> Then run ./gradle build again and I now get these error:
>
>
> "> Task :compileJava FAILED
>
> FAILURE: Build failed with an exception.
>
> * What went wrong:
> Failed to capture fingerprint of input files for task ':compileJava'
> property 'classpath' during up-to-date check.
> > java.lang.UnsupportedOperationException (no error message)
>
> * Try:
> Run with --stacktrace option to get the stack trace. Run with --info or
> --debug option to get more log output. Run with --scan to get full
> insights.
>
> * Get more help at https://help.gradle.org
>
> Deprecated Gradle features were used in this build, making it incompatible
> with Gradle 5.0.
> Use '--warning-mode all' to show the individual deprecation warnings.
> See
>
> https://docs.gradle.org/4.10/userguide/command_line_interface.html#sec:command_line_warnings
>
> BUILD FAILED in 22s
> "
> Even when I eclipssify or import into IntelliJ using our old dev guides
> here:
>
> https://mifosforge.jira.com/wiki/spaces/MDZ/pages/92012613/Build+Instructions
>
> The IDEs, both STS 4 and IntelliJ cannot find the main class when
> executing.
>
> I dont know what I am missing. Has anyone face this problem or can someone
> help me get upto speed?
>
> I wonder if our prospective GSoC students are facing same problems. Once we
> get this sorted out, I will update the relevant manuals to ease onboarding
> new contributors.
>
> Thanks
> Awasum
>


Fineract 1.x Dev Environment Setup Problems.

2019-03-04 Thread Awasum Yannick
Hello Everyone,

I was trying to setup Fineract 1.x for development this weekend and did not
succeed cuase of a few errors(I have not touched the code base since
December 2016).

Firstly, when I run ./gradlew build or bootRun from the top level
directory, I get the following error:

"FAILURE: Build failed with an exception.

* *Where:*
*Script
'/home/awasum/apache-projects/fineract-monolith/fineract/fineract-provider/dependencies.gradle'
line: 30*

** What went wrong:*
*A problem occurred evaluating script.*
*> Could not find method providedCompile() for arguments [] on object of
type
org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.*

** Try:*
*Run with --stacktrace option to get the stack trace. Run with --info or
--debug option to get more log output. Run with --scan to get full
insights.*

** Get more help at https://help.gradle.org *

*Deprecated Gradle features were used in this build, making it incompatible
with Gradle 5.0.*
*Use '--warning-mode all' to show the individual deprecation warnings.*
*See
https://docs.gradle.org/4.10/userguide/command_line_interface.html#sec:command_line_warnings
*
"

I deleted the providedComplile() method in both:
*/fineract/fineract-provider/dependencies.gradle'
line: 30*
and in the : fineract-provider/dev-dependencies.gradle' line: 30 files.

Then run ./gradle build again and I now get these error:


"> Task :compileJava FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Failed to capture fingerprint of input files for task ':compileJava'
property 'classpath' during up-to-date check.
> java.lang.UnsupportedOperationException (no error message)

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or
--debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

Deprecated Gradle features were used in this build, making it incompatible
with Gradle 5.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See
https://docs.gradle.org/4.10/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 22s
"
Even when I eclipssify or import into IntelliJ using our old dev guides
here:
https://mifosforge.jira.com/wiki/spaces/MDZ/pages/92012613/Build+Instructions

The IDEs, both STS 4 and IntelliJ cannot find the main class when executing.

I dont know what I am missing. Has anyone face this problem or can someone
help me get upto speed?

I wonder if our prospective GSoC students are facing same problems. Once we
get this sorted out, I will update the relevant manuals to ease onboarding
new contributors.

Thanks
Awasum