Skip to content

armory-io/spinnaker-gradle-project

 
 

Repository files navigation

spinnaker-gradle-project

Build Status

Build conventions for spinnaker Gradle projects

Usage

Applying the Plugin

To include, add the following to your build.gradle

buildscript {
  repositories { 
    maven { url 'https://dl.bintray.com/spinnaker/gradle/' }
  }

  dependencies {
    classpath 'com.netflix.spinnaker.gradle:spinnaker-gradle-project:latest.release'
  }
}

apply plugin: 'spinnaker.project'

Extensions Provided

spinnaker

The spinnaker extension exposes dependency resolution utilities. By default the artifact 'com.netflix.spinnaker:spinnaker-dependencies:latest.release@yml' is resolved and used as common dependency configuration (this can be overridden by setting dependenciesYaml or dependenciesVersion on the spinnaker extension)

The dependency yaml format supports three sections:

  • versions - a map of name to version string
  • dependencies - a map of name to Gradle dependency notation, supporting Groovy simple templating
  • groups - a map of name to a map of configuration name to a list of dependency names

Usage looks like:

dependencies {
  spinnaker.group("bootWeb")
  compile spinnaker.dependency("bootActuator")
  compile "org.springframework:spring-context:${spinnaker.version('spring')}"
}

Overriding resolved dependencies

Values from the ExtraPropertiesExtension override values read from the dependenciesYaml.

For example this:

ext {
  versions = [
    kork : '1.70.0'
  ]
}

Would pin the version of the kork library to 1.70.0 regardless of what version is defined in the dependency file.

About

Gradle project for spinnaker project conventions

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Groovy 50.9%
  • Kotlin 39.1%
  • Java 7.6%
  • Shell 2.4%