Skip to content
This repository was archived by the owner on Nov 27, 2023. It is now read-only.

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
rspieldenner committed Nov 9, 2015
1 parent 71b77f5 commit a81786a
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 6 deletions.
15 changes: 13 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
2.2.0 / 2015-1-30
===================
3.0.1 / 2015-10-21
==================

* Move to gradle 2.8

3.0.0 / 2015-09-15
==================

* Update to new build
* Move to gradle 2.7

2.2.0 / 2015-01-30
==================

* Move to gradle 2.2.1

Expand Down
48 changes: 44 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,17 +37,24 @@ code this becomes very tedious. Furthermore, the build script user has to know t

### Applying the Plugin

To include, add the following to your build.gradle

To apply this plugin if using Gradle 2.1 or newer

plugins {
id 'nebula.override' version '3.0.1'
}

If using an older version of Gradle

buildscript {
repositories { jcenter() }

dependencies {
classpath 'com.netflix.nebula:gradle-override-plugin:1.12.+'
classpath 'com.netflix.nebula:gradle-override-plugin:3.0.1'
}
}

apply plugin: 'nebula-override'
apply plugin: 'nebula.override'

### Overriding properties with the plugin

Expand All @@ -67,7 +74,7 @@ Override properties provided through system properties take precedence over the

Let's consider the following, modified build script code:

apply plugin: 'nebula-override'
apply plugin: 'nebula.override'

class MyExtension {
String myProp
Expand All @@ -86,3 +93,36 @@ the build script user can override the default value `hello` of myProp by provid
* Introduce a plugin-specific argument that doesn't require a "prefix" similar to project properties e.g.
`-Nexample.myProp=newValue`. This will require a change in Gradle core as the functionality to add new command line handlers
(see `AbstractPropertiesCommandLineConverter`) is not exposed.

Gradle Compatibility Tested
---------------------------

Built with Oracle JDK7
Tested with Oracle JDK8

| Gradle Version | Works |
| :------------: | :---: |
| 2.2.1 | yes |
| 2.3 | yes |
| 2.4 | yes |
| 2.5 | yes |
| 2.6 | yes |
| 2.7 | yes |
| 2.8 | yes |

LICENSE
=======

Copyright 2014-2015 Netflix, Inc.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

<http://www.apache.org/licenses/LICENSE-2.0>

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

0 comments on commit a81786a

Please sign in to comment.