add: import code
портирован и слегка подправлен код из старого репозитория https://di9.ru/git/Voomra/Conventional-Commits
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
package ru.di9.gradle.commitlint
|
||||
|
||||
import org.gradle.api.Plugin
|
||||
import org.gradle.api.Project
|
||||
|
||||
@SuppressWarnings('unused')
|
||||
class CommitLintPlugin implements Plugin<Project> {
|
||||
|
||||
@Override
|
||||
void apply(Project project) {
|
||||
project.extensions.create("commitlint", CommitLintExtension)
|
||||
|
||||
project.tasks.register("commitlint", CommitLintTask, {
|
||||
group = "Verification"
|
||||
description = "commit lint"
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user