Gradle Plugins - Simple Continuous Delivery for Java and Groovy Developers
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
scd4j-examples
scd4j
.gitignore
LICENSE
README.md

README.md

SCD4J

Simple Continuous Delivery for Java and Groovy Developers

In short, SCD4J is an automation platform for configuring and installing your Web IT infrastructure. With just one command you can install clusters and deploy applications. Note that SCD4J is not another option for Puppet or Chef. It is, actually, a SIMPLER option than those tools

Documentation

To understand more about SCD4J or get more details about how to create and implement a new project, take a look at documentation:

Project Structure

To start a new project, first we must create a file called build.gradle, as show in the below example:

plugins {
    id "com.datamaio.scd4j" version "0.7.21"
}

scd4j {
    install {
        modules "my_first_module"         // should be any dir into modules dir
        config  "my_first_config.conf"	 // should be any properties file into config dir.
    }
}

Then, we may run the task newproject of our build.gradle using the installed gradle build tool.

Note: We need to have Gradle 2.1 (or higher) installed just for the first run. After that, SCD4J will automatically install a Gradle wrapper. Please, see Requirements for more details.

Once the execution has finished we will have the following directory structure created:

build.gradle
config/
      my_first_config.conf
modules/
      my_first_module/
            Module.hook
gradlew
gradlew.bat
gradle/...

The config dir contains the configuration files. In our case the my_first_config.conf file (i.e. a Java properties file) in which we must put all the variables that will be used by our modules.

The modules dir contains a new module called my_first_module. This is the place where we will implement our automation. Note that the newproject task also created a file called Module.hook, take a look at basics to undertand how to implement this hook.

Finally, we can see a gradle directory and gradlew and gradlew.bat files. Those are the gradle wrapper and, from now one, you can pack this project and run it in any machine without needing to install gradle.

To understand more about how to implement a module take a look at the wiki


Thanks for the interest of making the software delivery somewhat more professional. Hope you enjoy our tool.

Sincerely, SCD4J Team