Example Gradle build

11 views
Skip to first unread message

Jiri Peinlich

unread,
Oct 27, 2018, 4:29:10 PM10/27/18
to jDip Developers
I took the smallest module in the repository and build the sources using Gradle. There is some conversion module in the tools directory, I have added example build.gradle and gradle wrapper files to a branch https://gitlab.com/jdip/jdip/tree/conversion-gradle/tools/conversion

So far it builds the jar, it does not create the distribution zip yet, just wanted to build it first. Neither lib or resources are actually used in this build so the build can be simplified even more, but the resources and lib will be needed in the other modules...

If someone wants to create an example using maven we can then compare what we like more maybe?

Jiri

Jiri Peinlich

unread,
Oct 27, 2018, 5:49:02 PM10/27/18
to jdip-de...@googlegroups.com
I have updated the build.gradle for the conversion tool to behave as closely as possible to the original build.xml file. I had to create a second jar from the same sources with different manifest and then pack the jars and etc files into the zip file. The javadoc target also works now.

--
You received this message because you are subscribed to the Google Groups "jDip Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jdip-develope...@googlegroups.com.
To post to this group, send email to jdip-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jdip-developers/04dd27fd-7e22-49cf-ada1-119c2e8cf6ab%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Uwe Plonus

unread,
Oct 29, 2018, 2:15:29 PM10/29/18
to jdip-de...@googlegroups.com
Hi all,

I will create a branch and create a maven project of the conversion tool.

Uwe
> --
> You received this message because you are subscribed to the Google
> Groups "jDip Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to jdip-develope...@googlegroups.com
> <mailto:jdip-develope...@googlegroups.com>.
> To post to this group, send email to jdip-de...@googlegroups.com
> <mailto:jdip-de...@googlegroups.com>.
> <https://groups.google.com/d/msgid/jdip-developers/04dd27fd-7e22-49cf-ada1-119c2e8cf6ab%40googlegroups.com?utm_medium=email&utm_source=footer>.

Uwe Plonus

unread,
Oct 29, 2018, 4:30:23 PM10/29/18
to jDip Developers
I have created a maven project in the branch conversion-maven for the conversion tool.

I moved the folder src/ to src/main/java/ (the maven location) and added two plugins to create two possible executables. Naming two different jar files is not supported by maven.

Also two distributables (zip files) are created in target/ when mvn package is executed.


Am Montag, 29. Oktober 2018 19:15:29 UTC+1 schrieb Uwe Plonus:
Hi all,

I will create a branch and create a maven project of the conversion tool.

Uwe

On 27.10.18 22:29, Jiri Peinlich wrote:
> I took the smallest module in the repository and build the sources
> using Gradle. There is some conversion module in the tools directory,
> I have added example build.gradle and gradle wrapper files to a branch
> https://gitlab.com/jdip/jdip/tree/conversion-gradle/tools/conversion
>
> So far it builds the jar, it does not create the distribution zip yet,
> just wanted to build it first. Neither lib or resources are actually
> used in this build so the build can be simplified even more, but the
> resources and lib will be needed in the other modules...
>
> If someone wants to create an example using maven we can then compare
> what we like more maybe?
>
> Jiri
>
> --
> You received this message because you are subscribed to the Google
> Groups "jDip Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send
Reply all
Reply to author
Forward
0 new messages