[Mifos-developer] Gradle Build Issue

326 views
Skip to first unread message

Bharath Gowda

unread,
Jan 19, 2022, 11:00:33 AM1/19/22
to Mifos software development
Hello Devs,

I was trying to do a traditional war build to run on the tomcat from the latest develop branch of Fineract but getting the following error message.

Is this something that has to be corrected at fineract codebase or any upgrades required from my end.

Any help on this would be greatly appreciated
I used both the following commands to build 
gradlew :fineract-war:clean :fineract-war:war
gradlew :fineract-war:war
"
The AbstractArchiveTask.archiveName property has been deprecated. This is scheduled to be removed in Gradle 8.0. Please use the archiveFileName property instead. See https://docs.gradle.org/7.3.3/dsl/org.gradle.api.tasks.bundling.AbstractArchiveTask.html#org.gradle.api.tasks.bundling.AbstractArchiveTask:archiveName for more details.
        at org.gradle.api.tasks.bundling.AbstractArchiveTask.setArchiveName(AbstractArchiveTask.java:131)
        at org.gradle.api.tasks.bundling.Zip_Decorated.setArchiveName(Unknown Source)
        at org.gradle.api.tasks.bundling.Zip_Decorated.archiveName(Unknown Source)
        at java.base/java.lang.reflect.Method.invoke(Method.java:568)
        at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:323)


Regards,
Bharath
Lead Implementation Analyst | Mifos Initiative
Skype: live:cbharath4| Mobile: +91.7019635592
full error message.txt

Rahul Pawar

unread,
Jan 20, 2022, 3:59:27 AM1/20/22
to Dev, mifos-d...@lists.sourceforge.net
Hi Bharath,

Since, I am able to build a war file by  gradlew :fineract-war:clean :fineract-war:war
So I will just drop the environment versions which is set on the system:
Gradle version 7.3.1
JDK 17.0.1
Tomcat 9.0

Hope this helps.

Thanks,
Rahul

On Thu, Jan 20, 2022 at 1:55 PM Aleksandar Vidakovic <che...@monkeysintown.com> wrote:
Hi Bharath,

... are you using JDK17? If not please try with that again.

Cheers,

Aleks

Bharath Gowda

unread,
Jan 20, 2022, 10:07:41 AM1/20/22
to Dev, Mifos software development
Thanks, Rahul and Aleks,

I had the right versions Installed on my Windows 10 machine, 
Apparently, I was looking for the .war file at the old path 'fineract-provider\build\libs'  instead of the new path 'fineract-war\build\libs'  :)

I am still getting the same warnings, however, I am getting a 'BUILD SUCCESSFUL' message with proper .war file build.


Regards,
Bharath
Lead Implementation Analyst | Mifos Initiative
Skype: live:cbharath4| Mobile: +91.7019635592

Reply all
Reply to author
Forward
0 new messages