Fixed release task.

This commit is contained in:
Erik C. Thauvin 2017-06-09 21:05:42 -07:00
parent d8fa58d9d3
commit dbd17858b5

View file

@ -16,7 +16,6 @@ def deployDir = 'deploy'
def localProps = 'local.properties' def localProps = 'local.properties'
def isRelease = 'release' in gradle.startParameter.taskNames def isRelease = 'release' in gradle.startParameter.taskNames
def mavenGroupId = 'net.thauvin.erik.httpstatus'
def mavenName = 'HttpStatus' def mavenName = 'HttpStatus'
def mavenDescription = 'HttpStatus JSP Tag Library' def mavenDescription = 'HttpStatus JSP Tag Library'
def mavenUrl = 'https://github.com/ethauvin/HttpStatus' def mavenUrl = 'https://github.com/ethauvin/HttpStatus'
@ -53,6 +52,7 @@ def getVersion(isIncrement = false) {
} }
version = getVersion(); version = getVersion();
group = 'net.thauvin.erik.httpstatus'
mainClassName = 'net.thauvin.erik.httpstatus.Reasons' mainClassName = 'net.thauvin.erik.httpstatus.Reasons'
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8' [compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
@ -123,7 +123,7 @@ publishing {
from components.java from components.java
artifact sourcesJar artifact sourcesJar
artifact javadocJar artifact javadocJar
groupId mavenGroupId groupId project.group
artifactId rootProject.name artifactId rootProject.name
version project.version version project.version
@ -212,7 +212,7 @@ task deploy(dependsOn: ['build', 'copyToDeploy']) {
task release(dependsOn: ['wrapper', 'clean', 'deploy']) { task release(dependsOn: ['wrapper', 'clean', 'deploy']) {
group = 'Publishing' group = 'Publishing'
description = 'Releases new version.' description = 'Releases new version.'
doLast { doFirst {
isRelease = true isRelease = true
} }
} }