GithubHelp home page GithubHelp logo

argelbargel / gradle-build-modules Goto Github PK

View Code? Open in Web Editor NEW
1.0 3.0 0.0 851 KB

Gradle Plugin which allows you to structure your projects into separate modules living in separate git-repositories

Groovy 98.10% Shell 1.90%
gradle plugin modularization source-control git

gradle-build-modules's Introduction

Gradle Build-Modules-Plugin Build Status

This is a Gradle-Plugin which allows you to easily create a gradle-build which ties together multiple otherwise separate gradle-projects. It's use-case is quite similar to that of gradle's own Composite builds.

Apply plugins to your project(s)

See src/example for a minimal example-project.

In settings.gradle of your master-build:

buildscript {
    repositories {
        mavenLocal()
        mavenCentral()
        gradlePluginPortal()
        maven { url 'https://raw.githubusercontent.com/Argelbargel/gradle-build-modules/mvn-repo/' }
    }
    dependencies {
        classpath 'argelbargel.gradle.plugins:build-modules:0.5'
    }
}

apply plugin: 'argelbargel.build-modules.manager'

Additionally you must add a file build-modules.properties listing all modules and their source-code-repositories (currently only git is supported), for example:

module1=http\://git.example.com/module1.git
module2=http\://git.example.com/module2.git

In build.gradle of any project which should be a module of your master-build:

buildscript {
    repositories {
        mavenLocal()
        mavenCentral()
        gradlePluginPortal()
        maven { url 'https://raw.githubusercontent.com/Argelbargel/gradle-build-modules/mvn-repo/' }
    }
    dependencies {
        classpath 'argelbargel.gradle.plugins:build-modules:0.5'
    }
}

apply plugin: 'argelbargel.build-modules.module'

Additonally you must add the following properties to gradle.properties of each module:

buildModule.name=<module-name>
buildModule.group=<module-group>

gradle-build-modules's People

Stargazers

 avatar

Watchers

 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.