Skip to content

Commit

Permalink
look to gradle.properties for version info
Browse files Browse the repository at this point in the history
  • Loading branch information
Justin Lee committed Feb 6, 2015
1 parent 5f3fe00 commit d601bde
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ allprojects {
}

group = 'org.mongodb.morphia'
// version = '0.111-SNAPSHOT'

sourceCompatibility = JavaVersion.VERSION_1_6
targetCompatibility = JavaVersion.VERSION_1_6
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class PrepareReleaseTask extends DefaultTask {
def prepareGitForRelease() {
def releaseVersion = project.release.releaseVersion
def snapshotVersion = project.release.snapshotVersion
def buildFile = project.file('build.gradle')
def buildFile = project.file('gradle.properties')
getLog().info "Updating ${buildFile.absolutePath} from ${snapshotVersion} to ${releaseVersion}"
project.ant.replaceregexp(file: buildFile, match: snapshotVersion, replace: releaseVersion)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class UpdateToNextVersionTask extends DefaultTask {
def updateToNextVersion() {
def oldVersion = project.release.releaseVersion
def newVersion = incrementToNextVersion(oldVersion)
def buildFile = project.file('build.gradle')
def buildFile = project.file('gradle.properties')
project.ant.replaceregexp(file: buildFile, match: oldVersion, replace: newVersion)

def git = Git.open(new File('.'))
Expand Down

0 comments on commit d601bde

Please sign in to comment.