Skip to content

Commit 2980909

Browse files
authored
Merge pull request #204 from huxi/deprecation-fixes
Fixes Task.leftShift(Closure) deprecation warnings
2 parents dce9d7a + a179869 commit 2980909

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

src/main/groovy/net/researchgate/release/ReleasePlugin.groovy

+11-11
Original file line numberDiff line numberDiff line change
@@ -59,19 +59,19 @@ class ReleasePlugin extends PluginHelper implements Plugin<Project> {
5959
}
6060

6161
project.task('createScmAdapter', group: RELEASE_GROUP,
62-
description: 'Finds the correct SCM plugin') << this.&createScmAdapter
62+
description: 'Finds the correct SCM plugin') doLast this.&createScmAdapter
6363
project.task('initScmAdapter', group: RELEASE_GROUP,
64-
description: 'Initializes the SCM plugin') << this.&initScmAdapter
64+
description: 'Initializes the SCM plugin') doLast this.&initScmAdapter
6565
project.task('checkCommitNeeded', group: RELEASE_GROUP,
66-
description: 'Checks to see if there are any added, modified, removed, or un-versioned files.') << this.&checkCommitNeeded
66+
description: 'Checks to see if there are any added, modified, removed, or un-versioned files.') doLast this.&checkCommitNeeded
6767
project.task('checkUpdateNeeded', group: RELEASE_GROUP,
68-
description: 'Checks to see if there are any incoming or outgoing changes that haven\'t been applied locally.') << this.&checkUpdateNeeded
68+
description: 'Checks to see if there are any incoming or outgoing changes that haven\'t been applied locally.') doLast this.&checkUpdateNeeded
6969
project.task('unSnapshotVersion', group: RELEASE_GROUP,
70-
description: 'Removes "-SNAPSHOT" from your project\'s current version.') << this.&unSnapshotVersion
70+
description: 'Removes "-SNAPSHOT" from your project\'s current version.') doLast this.&unSnapshotVersion
7171
project.task('confirmReleaseVersion', group: RELEASE_GROUP,
72-
description: 'Prompts user for this release version. Allows for alpha or pre releases.') << this.&confirmReleaseVersion
72+
description: 'Prompts user for this release version. Allows for alpha or pre releases.') doLast this.&confirmReleaseVersion
7373
project.task('checkSnapshotDependencies', group: RELEASE_GROUP,
74-
description: 'Checks to see if your project has any SNAPSHOT dependencies.') << this.&checkSnapshotDependencies
74+
description: 'Checks to see if your project has any SNAPSHOT dependencies.') doLast this.&checkSnapshotDependencies
7575

7676
project.task('runBuildTasks', group: RELEASE_GROUP,
7777
description: 'Runs the build process in a separate gradle run.', type: GradleBuild) {
@@ -86,13 +86,13 @@ class ReleasePlugin extends PluginHelper implements Plugin<Project> {
8686
}
8787
}
8888
project.task('preTagCommit', group: RELEASE_GROUP,
89-
description: 'Commits any changes made by the Release plugin - eg. If the unSnapshotVersion task was executed') << this.&preTagCommit
89+
description: 'Commits any changes made by the Release plugin - eg. If the unSnapshotVersion task was executed') doLast this.&preTagCommit
9090
project.task('createReleaseTag', group: RELEASE_GROUP,
91-
description: 'Creates a tag in SCM for the current (un-snapshotted) version.') << this.&commitTag
91+
description: 'Creates a tag in SCM for the current (un-snapshotted) version.') doLast this.&commitTag
9292
project.task('updateVersion', group: RELEASE_GROUP,
93-
description: 'Prompts user for the next version. Does it\'s best to supply a smart default.') << this.&updateVersion
93+
description: 'Prompts user for the next version. Does it\'s best to supply a smart default.') doLast this.&updateVersion
9494
project.task('commitNewVersion', group: RELEASE_GROUP,
95-
description: 'Commits the version update to your SCM') << this.&commitNewVersion
95+
description: 'Commits the version update to your SCM') doLast this.&commitNewVersion
9696

9797
Boolean supportsMustRunAfter = project.tasks.initScmAdapter.respondsTo('mustRunAfter')
9898

0 commit comments

Comments
 (0)