com.diffplug.if-git-diff
所有者: Ned Twigg
根据相对于`origin/main`的变化来决定配置什么
https://github.com/diffplug/spotless-changelog
来源: https://github.com/diffplug/spotless-changelog.git
使用 plugins DSL
plugins {
id("com.diffplug.if-git-diff") version "3.1.2"
}
使用 旧式插件应用
buildscript {
repositories {
maven {
url = uri("https://plugins.gradle.org.cn/m2/")
}
}
dependencies {
classpath("com.diffplug.spotless-changelog:spotless-changelog-plugin-gradle:3.1.2")
}
}
apply(plugin = "com.diffplug.if-git-diff")
使用 plugins DSL
plugins {
id "com.diffplug.if-git-diff" version "3.1.2"
}
使用 旧式插件应用
buildscript {
repositories {
maven {
url "https://plugins.gradle.org.cn/m2/"
}
}
dependencies {
classpath "com.diffplug.spotless-changelog:spotless-changelog-plugin-gradle:3.1.2"
}
}
apply plugin: "com.diffplug.if-git-diff"