Skip to content

Commit

Permalink
Made the plugin compliant with the new Gradle Plugin repository
Browse files Browse the repository at this point in the history
  • Loading branch information
stevesaliman committed Jul 24, 2014
1 parent c4f4984 commit 98d3d68
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 5 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
Changes for 1.4.2
=================
- Changed the plugin id to "net.saliman.properties" and added to the new Gradle
Plugin repository.

Changes for 1.4.1
=================
- Fixed a bug that could occur when applying to a settings object.
Expand Down
17 changes: 13 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# Gradle Properties Plugin #
Gradle has released 2.0, and the properties plugin appears to work fine with it.
It is also available on the new [Gradle Plugin portal]
(http://plugins.gradle.org/) Gradle plugin repository.
(http://plugins.gradle.org/) Gradle plugin repository with the id
```net.saliman.properties```.

The Properties plugin is a useful plugin that changes the way Gradle loads
properties from the various properties files. See the [CHANGELOG]
Expand Down Expand Up @@ -183,22 +184,30 @@ directory needed by the log4j.properties template.

**Step 3: Include and apply the plugin**

Add the following to the build.gradle file:
To use the plugin in Gradle 2.1 or later, add the following to the build.gradle
file:

```groovy
plugins {
id 'net.saliman.properties' version '1.4.2'
}
```

To use the plugin in Gradle 2.0 or older, add the following to build.gradle:

```groovy
// Pull the plugin from Maven Central
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'net.saliman:gradle-properties-plugin:1.4.1'
classpath 'net.saliman:gradle-properties-plugin:1.4.2'
}
}
// invoke the plugin
apply plugin: 'properties'
apply plugin: 'net.saliman.properties'
```

Note that this only applies the plugin to the current project. To apply the
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ apply plugin: "idea"
apply plugin: "eclipse"
apply plugin: 'com.jfrog.bintray'

version = "1.4.1"
version = "1.4.2"
group = "net.saliman"
archivesBaseName = "gradle-properties-plugin"
ext.isSnapshot = version.endsWith("SNAPSHOT")
Expand Down

0 comments on commit 98d3d68

Please sign in to comment.