morpheus-gradle

Morpheus Gradle Provisioning Adapter

License

License

The Apache Software License, Version 2.0
Categories

Categories

Gradle Build Tools Morpheus Business Logic Libraries Science
GroupId

GroupId

com.bertramlabs.plugins
ArtifactId

ArtifactId

morpheus-gradle
Last Version

Last Version

0.2.0
Release Date

Release Date

Type

Type

jar
Description

Description

morpheus-gradle
Morpheus Gradle Provisioning Adapter
Project URL

Project URL

https://github.com/gomorpheus/morpheus-gradle
Source Code Management

Source Code Management

https://github.com/gomorpheus/morpheus-gradle

Download morpheus-gradle

How to add to project

<!-- https://jarcasting.com/artifacts/com.bertramlabs.plugins/morpheus-gradle/ -->
<dependency>
    <groupId>com.bertramlabs.plugins</groupId>
    <artifactId>morpheus-gradle</artifactId>
    <version>0.2.0</version>
</dependency>
// https://jarcasting.com/artifacts/com.bertramlabs.plugins/morpheus-gradle/
implementation 'com.bertramlabs.plugins:morpheus-gradle:0.2.0'
// https://jarcasting.com/artifacts/com.bertramlabs.plugins/morpheus-gradle/
implementation ("com.bertramlabs.plugins:morpheus-gradle:0.2.0")
'com.bertramlabs.plugins:morpheus-gradle:jar:0.2.0'
<dependency org="com.bertramlabs.plugins" name="morpheus-gradle" rev="0.2.0">
  <artifact name="morpheus-gradle" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.bertramlabs.plugins', module='morpheus-gradle', version='0.2.0')
)
libraryDependencies += "com.bertramlabs.plugins" % "morpheus-gradle" % "0.2.0"
[com.bertramlabs.plugins/morpheus-gradle "0.2.0"]

Dependencies

runtime (2)

Group / Artifact Type Version
org.apache.httpcomponents : httpclient jar 4.5.1
com.bertramlabs.plugins : morpheus-java-sdk jar 0.3.1

Project Modules

There are no modules declared in this project.

Morpheus Gradle Plugin

The Morpheus Gradle plugin provides tasks for deployment automation to the Morpheus Cloud Management platform. Deploy any of your applications to a morpheus on or off-premise setup.

Configuration

Simply add the plugin to your project and configure it using the morpheus configure block

//Example build.gradle file
buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
    mavenCentral()
  }
  dependencies {
    classpath "com.bertramlabs.plugins:morpheus-gradle:0.1.2"
  }
}
apply plugin: 'com.bertramlabs.morpheus'

morpheus {
    morpheusUser = 'blah'
    morpheusPassword = 'dafsadfsdf'
    applianceUrl = 'https://v2.gomorpheus.com'
    instance = 'My Instance Name'

    from "build/libs/*"
    deployConfiguration = [
      catalinaOpts: '-Dgrails.env=prod'
    ]
}

A from command can be either a path to files to upload to the final deployment archive or they can be a Closure with more advanced options:

morpheus {
    from {
        resolverPath = 'build/libs/*'
        includePatterns = ['**/*.war']
        excludePatterns = ['*.jar']
        //destinationPath = '' Useful for nesting into a subfolder of the deploy archive
    }
}

Usage

Simply execute the task:

./gradlew morpheusDeploy

Resources

com.bertramlabs.plugins

Morpheus

Versions

Version
0.2.0
0.1.2