Skip to content

Commit

Permalink
Merge pull request #12 from rspieldenner/more_travisci
Browse files Browse the repository at this point in the history
More checks changed to support travisci
  • Loading branch information
rspieldenner committed Mar 12, 2015
2 parents bd11a43 + 7bf1c9e commit a0fbcca
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
2.2.9 / 2015-03-12
==================

* Further modification to release.travisci to remove more checks.

2.2.8 / 2015-03-12
==================

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ import nebula.plugin.publishing.NebulaPublishingPlugin
import nebula.plugin.publishing.NebulaSourceJarPlugin
import nebula.plugin.release.NetflixOssStrategies
import nebula.plugin.release.ReleasePlugin
import nebula.plugin.release.ReleaseExtension
import org.ajoberstar.gradle.git.release.base.ReleasePluginExtension
import org.gradle.api.GradleException
import org.gradle.api.JavaVersion
Expand Down Expand Up @@ -59,6 +60,16 @@ class NetflixOssProjectPlugin implements Plugin<Project> {
defaultVersionStrategy = NetflixOssStrategies.SNAPSHOT
}

if (project.hasProperty(TRAVIS_CI) && project.property(TRAVIS_CI).toBoolean()) {
project.tasks.release.deleteAllActions() // remove tagging op on travisci
project.tasks.prepare.deleteAllActions()
if (type.isRootProject) {
ReleaseExtension nebulaReleaseExtension = project.extensions.findByType(ReleaseExtension)
nebulaReleaseExtension.addReleaseBranchPattern(/HEAD/)
nebulaReleaseExtension.addReleaseBranchPattern(/v?\d+\.\d+\.\d+/)
}
}

project.plugins.apply DependencyLockPlugin
}

Expand Down

0 comments on commit a0fbcca

Please sign in to comment.