Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/spinnaker/spinnaker-gradle-project
Gradle project for spinnaker project conventions
https://github.com/spinnaker/spinnaker-gradle-project
Last synced: 6 days ago
JSON representation
Gradle project for spinnaker project conventions
- Host: GitHub
- URL: https://github.com/spinnaker/spinnaker-gradle-project
- Owner: spinnaker
- License: apache-2.0
- Created: 2014-05-15T21:01:19.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2024-10-30T23:03:28.000Z (about 2 months ago)
- Last Synced: 2024-12-08T05:30:58.752Z (15 days ago)
- Language: Kotlin
- Homepage:
- Size: 926 KB
- Stars: 20
- Watchers: 67
- Forks: 97
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# spinnaker-gradle-project
[![Build Status](https://travis-ci.org/spinnaker/spinnaker-gradle-project.svg)](https://travis-ci.org/spinnaker/spinnaker-gradle-project)
Build conventions for spinnaker Gradle projects
## Usage
### Applying the Plugin
To include, add the following to your build.gradle
```groovy
plugins {
id 'io.spinnaker.project' version "$spinnakerGradleVersion" apply false
}allprojects {
apply plugin: 'io.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 namesUsage looks like:
```groovy
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.