Skip to content

Commit

Permalink
fix: mark as internal the setupScript() method because of the removal…
Browse files Browse the repository at this point in the history
… of the Gradle limitation
  • Loading branch information
nicolasfara committed Jun 15, 2022
1 parent b40202a commit 5b04ed6
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ open class ConventionalCommitsExtension(private val project: Project) {
/**
* List of admitted scopes.
*
* By default an empty list is set, meaning that all scopes are admitted.
* By default, an empty list is set, meaning that all scopes are admitted.
*/
var scopes: List<String> = emptyList()

Expand All @@ -55,9 +55,8 @@ open class ConventionalCommitsExtension(private val project: Project) {

/**
* This method do all the work needed to write the script file.
* Unfortunately, due to gradle workflow is the only way to apply the configuration without defining a manual task.
*/
fun setupScript() {
internal fun setupScript() {
writeScript(project, project.projectDir, types, scopes, warningIfNoGitRoot, successMessage, failureMessage)
}
}

0 comments on commit 5b04ed6

Please sign in to comment.