net.twisterrob.gradle.internal.deprecation.nagUserWith.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of twister-compat-gradle Show documentation
Show all versions of twister-compat-gradle Show documentation
Support methods for compatibility with all supported Gradle versions.
The newest version!
@file:JvmMultifileClass
@file:JvmName("DeprecationUtils")
package net.twisterrob.gradle.internal.deprecation
import org.gradle.internal.deprecation.DeprecationLogger
import org.gradle.internal.deprecation.DeprecationMessageBuilder
fun nagUserWith(builder: DeprecationMessageBuilder<*>, calledFrom: Class<*>) {
DeprecationLogger::class.java
.getDeclaredMethod("nagUserWith", DeprecationMessageBuilder::class.java, Class::class.java)
.apply { isAccessible = true }
.invoke(null, builder, calledFrom)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy