Skip to content

Commit

Permalink
Update group name, bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
GladeDiviney committed Oct 30, 2020
1 parent 8aa028f commit df3bb2f
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 8 deletions.
1 change: 1 addition & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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'
}
}

Expand All @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,22 +24,22 @@ class AndroidGitVersion implements Plugin<Project> {
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()}"
println "androidGitVersion.code\t${project.extensions.androidGitVersion.code()}"
}
}
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()
Expand Down
6 changes: 3 additions & 3 deletions src/test/groovy/com/gladed/androidgitversion/MainTest.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}

0 comments on commit df3bb2f

Please sign in to comment.