Skip to content

printChangeLog configuration causing error #59

@j-choi1

Description

@j-choi1

Without printChangeLog configuration, the task is working fine. But with any kind of printChangeLog configuration, it is causing errors. I copied the exact printChangeLog configuration from the docs.

Using the latest plugin version: 0.12.6

Example 1:

build.gradle:

semver {
    groupVersionIncrements = false
}

semver {
    changeLogTexts = PlainChangeLogTexts
}

error:

A problem occurred evaluating root project 'semantic-test'.
> Could not get unknown property 'PlainChangeLogTexts' for extension 'semver' of type git.semver.plugin.gradle.GitSemverPluginExtension.

Example 2:

build.gradle:

semver {
    groupVersionIncrements = false
}

semver {
    changeLogTexts {
        headerTexts = mutableMapOf(
            "fix" to "### Bug Fixes \uD83D\uDC1E",
            "feat" to "### New Features \uD83C\uDF89",
            "test" to "### Tests ✅",
            "docs" to "### Documentation \uD83D\uDCD6",
            "deps" to "### Dependency Updates \uD83D\uDE80",
            "build" to "### Build \uD83D\uDC18 & CI ⚙\uFE0F",
            "ci" to "### Build \uD83D\uDC18 & CI ⚙\uFE0F",
            "chore" to "### Chores \uD83D\uDD27",
            "perf" to "### Performance Enhancements ⚡",
            "refactor" to "### Refactorings \uD83D\uDE9C"
        )
        header = "## What's Changed" // Set your custom header text
        breakingChange = "### Breaking Changes 🛠" // Set your custom breaking change text
        otherChange = "### Other Changes \uD83D\uDCA1" // Set your custom other change text
    }
}

error:

A problem occurred evaluating root project 'semantic-test'.
> No signature of method: java.lang.String.to() is applicable for argument types: (String, String) values: [### Bug Fixes ?, feat] 
  Possible solutions: tr(java.lang.CharSequence, java.lang.CharSequence), trim(), toURI(), md5(), toSet(), toURI()

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions