Skip to content

Commit

Permalink
Fix whitespace errors and line endings
Browse files Browse the repository at this point in the history
  • Loading branch information
friederbluemle authored and Hillkorn committed Apr 18, 2019
1 parent 148996c commit 6633e14
Show file tree
Hide file tree
Showing 14 changed files with 913 additions and 913 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ bin
.idea
out

/.nb-gradle/
/.nb-gradle/
19 changes: 9 additions & 10 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
sudo: false
cache:
directories:
- $HOME/.gradle/caches/
language: groovy
jdk:
- oraclejdk8
notifications:
webhooks: https://www.travisbuddy.com/

sudo: false
cache:
directories:
- $HOME/.gradle/caches/
language: groovy
jdk:
- oraclejdk8
notifications:
webhooks: https://www.travisbuddy.com/
34 changes: 19 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
[![Download](https://api.bintray.com/packages/researchgate/gradle-plugins/gradle-release/images/download.svg)](https://bintray.com/researchgate/gradle-plugins/gradle-release/_latestVersion)
[![Gitter](https://img.shields.io/badge/chat-online-brightgreen.svg?style=flat)](https://gitter.im/researchgate/gradle-release)



## Introduction

The gradle-release plugin is designed to work similar to the Maven release plugin.
Expand Down Expand Up @@ -176,15 +174,19 @@ Below are some properties of the Release Plugin Convention that are specific to

To set any of these properties to false, add a "release" configuration to your project's ```build.gradle``` file. Eg. To ignore un-versioned files, you would add the following to your ```build.gradle``` file:

release {
failOnUnversionedFiles = false
}
```
release {
failOnUnversionedFiles = false
}
```

Eg. To ignore upstream changes, change 'failOnUpdateNeeded' to false:

release {
failOnUpdateNeeded = false
}
```
release {
failOnUpdateNeeded = false
}
```

This are all possible configuration options and its default values:

Expand Down Expand Up @@ -238,17 +240,20 @@ To add a step to the release process is very easy. Gradle provides a very nice m

For example, if we wanted to make sure `uploadArchives` is called and succeeds after the build with the release version has finished, we would just add the `uploadArchives` task as a dependency of the `afterReleaseBuild` task:

afterReleaseBuild.dependsOn uploadArchives
```groovy
afterReleaseBuild.dependsOn uploadArchives
```

### Multi-Project Builds

Support for [multi-project builds](http://gradle.org/docs/current/userguide/multi_project_builds.html) isn't complete, but will work given some assumptions. The gradle-release plugin assumes and expects that only one version control system is used by both root and sub projects.

Apply the plugin separately to each subproject that you wish to release. Release using a qualified task name, e.g.:

./gradlew :sub:release # release a subproject named "sub"
./gradlew :release # release the root project

```bash
./gradlew :sub:release # release a subproject named "sub"
./gradlew :release # release the root project
```

### Working in Continuous Integration

Expand All @@ -257,15 +262,14 @@ In a continuous integration environment like Jenkins or Hudson, you don't want t
You can do this by setting the `release.useAutomaticVersion` property on the command line, or in Jenkins when you execute gradle. The version to release and the next version can be optionally defined using the properties `release.releaseVersion` and `release.newVersion`.

```bash
$ gradle release -Prelease.useAutomaticVersion=true -Prelease.releaseVersion=1.0.0 -Prelease.newVersion=1.1.0-SNAPSHOT
gradle release -Prelease.useAutomaticVersion=true -Prelease.releaseVersion=1.0.0 -Prelease.newVersion=1.1.0-SNAPSHOT
```


## Getting Help

To ask questions please use stackoverflow or github issues.

* Github Issues: [https://github.com/researchgate/gradle-release/issues/new](https://github.com/researchgate/gradle-release/issues/new)
* GitHub Issues: [https://github.com/researchgate/gradle-release/issues/new](https://github.com/researchgate/gradle-release/issues/new)
* Stack Overflow: [http://stackoverflow.com/questions/tagged/gradle-release-plugin](http://stackoverflow.com/questions/tagged/gradle-release-plugin)

To report bugs, please use the GitHub project.
Expand Down
2 changes: 0 additions & 2 deletions UPGRADE.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,5 +79,3 @@ release {
tagTemplate = '$name-$version'
}
```


3 changes: 1 addition & 2 deletions settings.gradle
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
rootProject.name = 'gradle-release'

rootProject.name = 'gradle-release'
Loading

0 comments on commit 6633e14

Please sign in to comment.