[
https://issues.apache.org/jira/browse/JAMES-3273?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17150381#comment-17150381
]
Ioan Eugen Stan commented on JAMES-3273:
----------------------------------------
[~btellier]: I had another look.
To create the structure you have with maven, all you have to do is add this to
build.gradle:
{noformat}
task copyDependencies(type: Copy) {
from configurations.default
into "${project.buildDir}/${project.name}.lib"
}
{noformat}
For the guice modules that are applications believe it's better to apply the
application plugin so I am going to do that.
To compare the jars prduced by maven and gradle in the lib directory you can:
{noformat}
ls -1 build/james-server-cassandra-guice.lib/ > gradle-lib-files.txt
ls -1 target/james-server-cassandra-guice.lib/ > maven-lib-files.txt
diff maven-lib-files.txt gradle-lib-files.txt
NOTE: I use meld as a (gui) diff tool and the param for `ls` is a one (1) .
{noformat}
Here are the files I got with the gradle task above, the application plugin and
using the maven copy-dependencies goal:
[^gradle-lib-files.txt] [^gradle-lib-files-application-plugin.txt]
[^maven-lib-files.txt]
I highly recommend we use the gradle application plugin for this.
You find the zip / tar file in build/distributions .
It has the libraries and scripts to start the application.
I'm working on that now and will push soon.
> Acceptance criteria checklist
> -----------------------------
>
> Key: JAMES-3273
> URL: https://issues.apache.org/jira/browse/JAMES-3273
> Project: James Server
> Issue Type: Sub-task
> Reporter: Ioan Eugen Stan
> Assignee: Benoit Tellier
> Priority: Major
> Attachments: gradle-lib-files-application-plugin.txt,
> gradle-lib-files.txt, maven-lib-files.txt
>
>
> We need a list of acceptance criteria for making the gradle migration.
> We need a checklist so we know when we are ready for the merge.
> Please add this checklist here.
> Some items are sub-tasks of https://issues.apache.org/jira/browse/JAMES-3260
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]