org.mpierce.slf4j-capabilities
所有者: Marshall Pierce
使用 Gradle 依赖功能在构建时查找 SLF4J 类路径冲突
https://bitbucket.org/marshallpierce/gradle-plugin-slf4j-capabilities/src/master/
源代码:https://bitbucket.org/marshallpierce/gradle-plugin-slf4j-capabilities/src/master/
使用 插件的 DSL
plugins {
id("org.mpierce.slf4j-capabilities") version "0.1.1"
}
使用 旧插件的 DSL
buildscript {
repositories {
maven {
url = uri("https://plugins.gradle.org.cn/m2/")
}
}
dependencies {
classpath("gradle.plugin.org.mpierce.slf4j-capabilities:gradle-plugin-slf4j-capabilities:0.1.1")
}
}
apply(plugin = "org.mpierce.slf4j-capabilities")
使用 插件的 DSL
plugins {
id "org.mpierce.slf4j-capabilities" version "0.1.1"
}
使用 旧插件的 DSL
buildscript {
repositories {
maven {
url "https://plugins.gradle.org.cn/m2/"
}
}
dependencies {
classpath "gradle.plugin.org.mpierce.slf4j-capabilities:gradle-plugin-slf4j-capabilities:0.1.1"
}
}
apply plugin: "org.mpierce.slf4j-capabilities"