All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.twisterrob.gradle.internal.deprecation.nagUserWith.kt Maven / Gradle / Ivy

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