Mercurial > public > gradleplugins
changeset 24:cfbdbeba877f
fix location of ProjectVersion class
author | smith@nwoca.org |
---|---|
date | Thu, 04 Aug 2016 03:29:38 +0100 |
parents | e2d02e8742be |
children | 278d28eea819 68b1ec64996b |
files | .hgignore gradle.properties src/main/groovy/org/ssdt_ohio/gradle/plugins/VersionClassPlugin.groovy |
diffstat | 3 files changed, 7 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/.hgignore Wed Mar 16 23:24:26 2016 +0100 +++ b/.hgignore Thu Aug 04 03:29:38 2016 +0100 @@ -4,6 +4,7 @@ \.rej$ \.conflict\~$ .*~$ +glob:classes/* glob:out/* glob:lib/* glob:build/* @@ -18,4 +19,5 @@ glob:*.ipr glob:gradle-app.* glob:build.xml - +glob:private*.* +glob:*.pdf
--- a/gradle.properties Wed Mar 16 23:24:26 2016 +0100 +++ b/gradle.properties Thu Aug 04 03:29:38 2016 +0100 @@ -1,2 +1,2 @@ -version=0.4.2.SNAPSHOT +version=0.4.3.SNAPSHOT group=org.ssdt_ohio
--- a/src/main/groovy/org/ssdt_ohio/gradle/plugins/VersionClassPlugin.groovy Wed Mar 16 23:24:26 2016 +0100 +++ b/src/main/groovy/org/ssdt_ohio/gradle/plugins/VersionClassPlugin.groovy Thu Aug 04 03:29:38 2016 +0100 @@ -101,7 +101,9 @@ return null } - def targetDir = files.first().parentFile.toString() + def targetDir = files.sort { + it.parentFile.toString().replaceAll('(\\\\|/)','.').split(/\./).size() + }.first().parentFile.toString() def targetPackage = targetDir source.each {