You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@fineract.apache.org by "Petri Tuomola (Jira)" <ji...@apache.org> on 2020/05/08 19:26:00 UTC

[jira] [Commented] (FINERACT-939) MariaDB4j re-enabled

    [ https://issues.apache.org/jira/browse/FINERACT-939?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17102861#comment-17102861 ] 

Petri Tuomola commented on FINERACT-939:
----------------------------------------

Yes - fully agree it would be good to "toggle" these options with properties rather than create completely different profiles for them. With pre-set profiles, you have to try to guess the combinations that people will need - what would be much better is to allow people to choose the right combination of options themselves (whilst of course offering a sensible default combination). 

 

> MariaDB4j re-enabled
> --------------------
>
>                 Key: FINERACT-939
>                 URL: https://issues.apache.org/jira/browse/FINERACT-939
>             Project: Apache Fineract
>          Issue Type: Improvement
>            Reporter: Michael Vorburger
>            Priority: Major
>              Labels: build, technical
>
> I originally developed MariaDB4j for Mifos (now Fineract), see https://github.com/vorburger/MariaDB4j#whos-using-it and http://blog2.vorburger.ch/2014/09/mifos-executable-war-with-mariadb4j.html
> Over the years, it was (correctly!) moved from a mandatory always included dependency to an optional dependency only included with a certain gradle command line argument. But then over time the separate {{dev-dependencies.gradle}} fell out of sync with {{dependencies.gradle}}, and MariaDB4j in Fineract is currently broken - the goal of this issue is to re-enable it.
> To learn from our past mistakes :P I let's just entirely avoid the massive duplication of dependencies between dependencies.gradle and dev-dependencies.gradle! How about, instead, we make this mechanism "additive" instead of "replacing"? We can probably simply include (add) only the MariaDB4j dependency on the presence of a certain Gradle/Spring Boot (?) Profile. Not even sure if we need a separate file like dev-dependencies.gradle for that, or couldn't just directly "inline" it into dependencies.gradle and/or build.gradle.
> BTW while we're on this, how about we enable this with a dedicated "MariaDB4j" property/profile, and not just "dev"? Because e.g. with FINERACT-931 we have another "dev profile" coming, and one should be able to chose these two dimensions orthogonally; we may want to run {{-Penv=MariaDB4j,dev}} (Spring Boot Dev Tools AND MariaDB4j) or just {{-Penv=dev}} (only Spring Boot Dev Tools, not MariaDB4j), etc.
> [~nemux] given your interest in this topic in https://github.com/apache/fineract/pull/828, would you have any interest in picking this up and adapt your initial PR in that sense?
> [~ptuomola] FYI



--
This message was sent by Atlassian Jira
(v8.3.4#803005)