From df3bb2f123254f34466274dfb446bdb12df40efd Mon Sep 17 00:00:00 2001 From: Glade Diviney Date: Fri, 30 Oct 2020 10:51:37 -0700 Subject: [PATCH] Update group name, bump version --- HISTORY.md | 1 + build.gradle | 4 ++-- .../com/gladed/androidgitversion/AndroidGitVersion.groovy | 6 +++--- .../groovy/com/gladed/androidgitversion/MainTest.groovy | 6 +++--- 4 files changed, 9 insertions(+), 8 deletions(-) diff --git a/HISTORY.md b/HISTORY.md index c7c78b3..f001392 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -2,6 +2,7 @@ ## 0.4.14 +* Add descriptions and groups to tasks (#85). * Print warning message if git repo not found (#87). ## 0.4.13 diff --git a/build.gradle b/build.gradle index 6fed394..d556c3d 100644 --- a/build.gradle +++ b/build.gradle @@ -5,7 +5,7 @@ buildscript { gradlePluginPortal() } dependencies { - classpath 'com.gradle.publish:plugin-publish-plugin:0.10.1' + classpath 'com.gradle.publish:plugin-publish-plugin:0.12.0' } } @@ -18,7 +18,7 @@ apply plugin: 'maven-publish' sourceCompatibility = '1.6' targetCompatibility = '1.6' -version = '0.4.13' // <-----UPDATE THIS VERSION NUMBER MANUALLY FOR EACH RELEASE +version = '0.4.14' // <-----UPDATE THIS VERSION NUMBER MANUALLY FOR EACH RELEASE group = 'com.gladed.androidgitversion' repositories { diff --git a/src/main/groovy/com/gladed/androidgitversion/AndroidGitVersion.groovy b/src/main/groovy/com/gladed/androidgitversion/AndroidGitVersion.groovy index f8dc710..46366cd 100644 --- a/src/main/groovy/com/gladed/androidgitversion/AndroidGitVersion.groovy +++ b/src/main/groovy/com/gladed/androidgitversion/AndroidGitVersion.groovy @@ -24,7 +24,7 @@ class AndroidGitVersion implements Plugin { void apply(Project project) { project.extensions.create("androidGitVersion", AndroidGitVersionExtension, project) project.task('androidGitVersion') { - group = 'Build' + group = 'Android' description = 'Print version name and version code' doLast { println "androidGitVersion.name\t${project.extensions.androidGitVersion.name()}" @@ -32,14 +32,14 @@ class AndroidGitVersion implements Plugin { } } project.task('androidGitVersionName') { - group = 'Build' + group = 'Android' description = 'Print version name' doLast { println project.extensions.androidGitVersion.name() } } project.task('androidGitVersionCode') { - group = 'Build' + group = 'Android' description = 'Print version code' doLast { println project.extensions.androidGitVersion.code() diff --git a/src/test/groovy/com/gladed/androidgitversion/MainTest.groovy b/src/test/groovy/com/gladed/androidgitversion/MainTest.groovy index d2662b9..96b288f 100644 --- a/src/test/groovy/com/gladed/androidgitversion/MainTest.groovy +++ b/src/test/groovy/com/gladed/androidgitversion/MainTest.groovy @@ -172,15 +172,15 @@ class MainTest extends AndroidGitVersionTest { void testTaskNames() { plugin // Touch the plugin so it's loaded def androidGitVersion = project.getTasksByName("androidGitVersion", true).first() - assertEquals("Build", androidGitVersion.group) + assertEquals("Android", androidGitVersion.group) assertEquals("Print version name and version code", androidGitVersion.description) def androidGitVersionName = project.getTasksByName("androidGitVersionName", true).first() - assertEquals("Build", androidGitVersionName.group) + assertEquals("Android", androidGitVersionName.group) assertEquals("Print version name", androidGitVersionName.description) def androidGitVersionCode = project.getTasksByName("androidGitVersionCode", true).first() - assertEquals("Build", androidGitVersionCode.group) + assertEquals("Android", androidGitVersionCode.group) assertEquals("Print version code", androidGitVersionCode.description) } }