[opencms-dev] Antwort: Re: Eclipse project for module development
Daniel Seidel
d.seidel at alkacon.com
Mon Feb 8 10:44:48 CET 2021
Hi Martin,
maybe two hints on it:
*gradle.properties should look like:*
opencms_version=11.0.2
build_version=master
project_name=my-project
project_nice_name=My project
modules_list=\
my.module.one,\
my.module.two
*And the build.gradle looks like this:*
apply plugin: 'java'
apply plugin: 'maven'
buildscript {
dependencies {
classpath group: "org.opencms", name: "opencms-gradle-plugin",
version: "1.8"
}
repositories {
mavenLocal()
jcenter()
}
}
apply plugin: 'org.opencms.modules.defaultdependencies'
// here you can configure the default dependencies via 'ocDependencies'
// see the output of `./gradlew ocDependenciesDemo` for an example
// NOTE: If you need additional a dependencies, declare them in a
'dependencies.gradle' file in this folder.
// If declared differently, they will not be applied in the
required point of the configuration.
// see the output of `./gradlew opencmsPluginDescription` for
documentation of the plugin
apply plugin: 'org.opencms.modules'
And in the dependencies.gradle you may add additional dependencies
(besides OpenCms ones) like:
dependencies {
compile group: 'com.alkacon', name: 'mercury-template', version: xxx
}
I hope this is enough for starting with the plugin. Since currently only
used internal, documentation is quite few.
Best, Daniel.
Am 08.02.21 um 10:36 schrieb martin.rosenthal at oerag.de:
> Hello Daniel,
>
> thanks for your quick reply. I will try the plugin.
>
> Regards,
> Martin
> _______________________________
> IT-Anwendungen
>
> Tel.: 0211 529 5775
> Fax: 0211 529 59775
> Email: Martin.Rosenthal at oerag.de
> Internet: www.oerag.de
>
> E-Mail-Newsletter "Rund um Rechtsschutz" – jetzt anmelden:
> www.oerag.de/newsletter
>
> ÖRAG Rechtsschutzversicherungs-AG
> Hansaallee 199, 40549 Düsseldorf
> Vorstand: Jörg Tomalak-Plönzke (Vorsitzender), Andreas Heinsen
> Aufsichtsratsvorsitzender: Dr. Walter Tesarczyk
> Sitz der Gesellschaft: Düsseldorf, Registergericht Düsseldorf HRB 12073
>
> Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte
> Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail
> irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und
> vernichten diese Mail. Das unerlaubte Kopieren sowie die unbefugte
> Weitergabe dieser Mail sind nicht gestattet.
>
>
>
> Von: "Daniel Seidel" <d.seidel at alkacon.com>
> An: opencms-dev at opencms.org
> Datum: 08.02.2021 10:04
> Betreff: Re: [opencms-dev] Eclipse project for module development
> Gesendet von: "opencms-dev" <opencms-dev-bounces at opencms.org>
>
>
>
> Hi Martin,
>
> the basic setup is still the same. Eclipse ships with build ship Gradle
> integration and this should work as well. You might use the latest
> gradle script for example from the mercury template and adjust the
> modules in the "all-modules.properties", adjust dependencies.gradle and
> gradle.properties.
>
> In later releases, we will use the opencms-gradle-plugin, which is
> basically the extaction of the code from the build.gradle file. You may
> also try to use this: https://github.com/alkacon/opencms-gradle-plugin,
> but more on this probably later.
>
>
> Best, Daniel.
>
> Am 08.02.21 um 09:08 schrieb martin.rosenthal at oerag.de:
>> Hello,
>>
>> does anyone have up-to-date instructions on how to set up an Eclipse
>> project with OpenCms and Gradle to develop your own modules?
>> The current documentation
>>
> https://documentation.opencms.org/opencms-documentation/extending-opencms/development-setups/
>
>> is out of date. Gradle STS is deprecated as an Eclipse plugin and no
>> longer works for me.
>> I use Eclipse 2019-12 and OpenJDK 11. OpenCms 11.02. Maven as an
>> alternative to Maven would also be possible.
>>
>> Thanks and best regards,
>> Martin
>> _______________________________
>> IT-Anwendungen
>>
>> Tel.: 0211 529 5775
>> Fax: 0211 529 59775
>> Email: Martin.Rosenthal at oerag.de
>> Internet: www.oerag.de
>>
>> E-Mail-Newsletter "Rund um Rechtsschutz" – jetzt anmelden:
>> www.oerag.de/newsletter
>>
>> ÖRAG Rechtsschutzversicherungs-AG
>> Hansaallee 199, 40549 Düsseldorf
>> Vorstand: Jörg Tomalak-Plönzke (Vorsitzender), Andreas Heinsen
>> Aufsichtsratsvorsitzender: Dr. Walter Tesarczyk
>> Sitz der Gesellschaft: Düsseldorf, Registergericht Düsseldorf HRB 12073
>>
>> Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte
>> Informationen. Wenn Sie nicht der richtige Adressat sind oder diese
> E-Mail
>> irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und
>> vernichten diese Mail. Das unerlaubte Kopieren sowie die unbefugte
>> Weitergabe dieser Mail sind nicht gestattet.
>> _______________________________________________
>> This mail is sent to you from the opencms-dev mailing list
>> To change your list options, or to unsubscribe from the list, please
> visit
>> https://lists.opencms.org/mailman/listinfo/opencms-dev
>>
>>
>>
> --
> Kind Regards,
> Daniel.
>
> -------------------
>
> Daniel Seidel
>
> Alkacon Software GmbH & Co. KG - The OpenCms Experts
> http://www.alkacon.com - http://www.opencms.org
>
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> https://lists.opencms.org/mailman/listinfo/opencms-dev
>
>
>
>
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> https://lists.opencms.org/mailman/listinfo/opencms-dev
>
>
>
--
Kind Regards,
Daniel.
-------------------
Daniel Seidel
Alkacon Software GmbH & Co. KG - The OpenCms Experts
http://www.alkacon.com - http://www.opencms.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opencms.org/pipermail/opencms-dev/attachments/20210208/847e306d/attachment.htm>
More information about the opencms-dev
mailing list