[
https://issues.apache.org/jira/browse/FINERACT-1198?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17212032#comment-17212032
]
Michael Vorburger commented on FINERACT-1198:
---------------------------------------------
[~aalmiray] but that's not primarly what we are after, here.. as described
above, it would be neat if, ideally, the second {{./gradle bootJAR}} (WITHOUT
clean; forget that) should not spend a full 1' minute to redo :compileJava and
:spotlessJava and :resolve as it currently does - that seems wrong. And that's
still the case even with --build-cache (which is expected; build caches don't
solve that problem, but just rebuilding after a clean; which IMHO isn't the
main problem in the Fineract project, but the fact that EVEN a rebuild WITHOUT
clean doesn't seem to use the _task output caching_ right).. To illustrate
again, check this out:
{code:bash}
$ ./gradlew clean
$ time ./gradlew bootJAR --build-cache
...
real 1m21.503s
user 0m1.474s
sys 0m0.152s
$ time ./gradlew bootJAR --build-cache
...
real 0m59.431s
user 0m1.368s
sys 0m0.121s{code}
> Gradle incremental build is broken
> ----------------------------------
>
> Key: FINERACT-1198
> URL: https://issues.apache.org/jira/browse/FINERACT-1198
> Project: Apache Fineract
> Issue Type: Bug
> Components: Build
> Reporter: Michael Vorburger
> Assignee: Michael Vorburger
> Priority: Major
>
> One of the reasons why Gradle is (supposedly) so much cooler than e.g. Maven
> is that it can be really support and support very fast "incremental" builds
> (only rebuild what has changed).
> I have the impression that doesn't really work in Fineract, and suppose
> that's not really Gradle's (core) fault, but some plugin which screws this
> up? OpenJPA Enhancer, SpotBugs... presumably they all have to "play along"
> for this to work perfectly?
> My Gradle foo isn't (nearly) good enough to know if it would be possible to
> "fix" this, and how hard this may be, but filing an issue is perhaps a start
> for getting input from people more knowledgeable about this.
> [~aleks] and/or [~ptuomola] perhaps you have ideas about this.
> [~aalmiray] as per chat during ApacheCon, not sure if this is the kind of
> thing you may enjoy helping with?
--
This message was sent by Atlassian Jira
(v8.3.4#803005)