Fix latest pom output

This commit is contained in:
Jesse Boyd 2016-10-01 16:01:34 +10:00
parent 47fef5b345
commit c39f92248f
No known key found for this signature in database
GPG Key ID: 59F1DE6293AF6E1F

View File

@ -34,6 +34,13 @@ task createPom << {
version project.parent.version
}
}.writeTo("../mvn/com/boydti/fawe-api/${project.parent.version}/fawe-api-${project.parent.version}.pom")
pom {
project {
groupId 'com.boydti'
artifactId 'fawe-api'
version 'latest'
}
}.writeTo("../mvn/com/boydti/fawe-api/latest/fawe-api-latest.pom")
}
task copyFiles {
@ -41,8 +48,7 @@ task copyFiles {
copy {
from "../mvn/com/boydti/fawe-api/${project.parent.version}/"
into '../mvn/com/boydti/fawe-api/latest/'
include('*.*')
rename ("fawe-api-${project.parent.version}.pom", 'fawe-api-latest.pom')
include('*.jar')
rename ("fawe-api-${project.parent.version}.jar", 'fawe-api-latest.jar')
}
}