Giter Site home page Giter Site logo

xenit-eu / alfresco-gradle-sdk-example Goto Github PK

View Code? Open in Web Editor NEW
0.0 12.0 0.0 61 KB

Gradle-based project with examples using Xenit's Alfresco Gradle SDK to bootstrap Alfresco development

Home Page: https://xenit.eu/alfred-products/

License: Apache License 2.0

alfresco alfresco-module alfresco-development alfresco-community alfresco-server alfresco-addon gradle gradle-plugin sdk sdk-java java

alfresco-gradle-sdk-example's Introduction

Alfresco Gradle SDK Examples Build Status

Gradle-based project with examples using Xenit's Alfresco Gradle SDK to bootstrap Alfresco development

Plugins

For Alfresco development, you need to apply 2 plugins. This will configure your project with an amp task that includes the jar built in this project.

plugins {
    id 'eu.xenit.alfresco' version "0.1.3" // Have a look at https://plugins.gradle.org/plugin/eu.xenit.alfresco for the latest version
    id 'eu.xenit.amp' version "0.1.3"
}

The eu.xenit.alfresco plugin introduces the alfrescoProvided configuration that makes it possible to define Alfresco dependencies that are already provided in the Alfresco war, and should not be included in the amp file. These dependencies are available when running unit tests.

Amp configuration

An amp has some typical files and folders. The module.properties file is required. You can override their locations in the ampConfig extension:

property description default required
moduleProperties The file that describes your extension. project.file('src/main/amp/module.properties') false
configDir This folder will be put on the classpath of the war. project.file('src/main/amp/config') false
web This folder will end up in the "web" directory of the amp file. project.file('src/main/amp/web') false
dynamicExtension Jar and dependencies are treated as Dynamic Extensions. false false

More information about Dynamic Extensions for Alfresco can be found here. This plugin can bundle Dynamic Extensions in an amp file. This means that the jar and dependencies should be put in the correct location in the amp file.

Usage

To build an amp, run the amp task. In case you have the gradlew wrapper in your project, run.

./gradlew amp

In case you have gradle installed on your system, run.

gradle amp

The built amp should be visible in build/dist/

Alfresco Gradle SDK

For more information, please visit https://github.com/xenit-eu/alfresco-gradle-sdk/

alfresco-gradle-sdk-example's People

Contributors

todorinskiz avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.