Branch parameter from artifactPattern not replaced when using ivy publish descriptor

Hi, I’m setting up a test webapp called gradle-ivy-publish with the following build.gradle file:

ext {
  repositoryDir = System.getProperty("user.home") + "/.ivyrepo"
}

apply plugin: 'war'
apply plugin: 'ivy-publish'

publishing {
  publications {
    portlet(IvyPublication) {
      organisation 'com.mycompany'
      revision "1.0-dev"

      descriptor.branch = "master"

      from components.web
    }
  }

  repositories {
    ivy {
      ivyPattern "${repositoryDir}/[organisation]/[module]/[branch]/ivy-[revision].xml"
      artifactPattern "${repositoryDir}/[organisation]/[module]/[branch]/[artifact]-[revision].[ext]"
    }
  }
}

src/main/webapp/index.html only has a Hello World in the contents.

When I invoke gradle publish (latest version from Github) I notice that the branch parameter from artifactPattern is not replaced:

$ find ~/.ivyrepo -type f
/Users/jbq/.ivyrepo/com.mycompany/gradle-ivy-publish/[branch]/gradle-ivy-publish-1.0-dev.war
/Users/jbq/.ivyrepo/com.mycompany/gradle-ivy-publish/[branch]/gradle-ivy-publish-1.0-dev.war.sha1
/Users/jbq/.ivyrepo/com.mycompany/gradle-ivy-publish/[branch]/ivy-1.0-dev.xml
/Users/jbq/.ivyrepo/com.mycompany/gradle-ivy-publish/[branch]/ivy-1.0-dev.xml.sha1

I believe this is a bug, right?