Пример #1
0
 public static void nagUserOfReplacedProperty(String propertyName, String replacement) {
   if (isEnabled() && PROPERTIES.add(propertyName)) {
     LOGGER.warn(
         String.format(
             "The %s property has been deprecated and will be removed in the next version of Gradle. Please use the %s property instead.",
             propertyName, replacement));
     logTraceIfNecessary();
   }
 }
Пример #2
0
 public static void nagUserOfReplacedTask(String taskName, String replacement) {
   if (isEnabled() && TASKS.add(taskName)) {
     LOGGER.warn(
         String.format(
             "The %s task has been deprecated and will be removed in the next version of Gradle. Please use the %s instead.",
             taskName, replacement));
     logTraceIfNecessary();
   }
 }
Пример #3
0
 public static void nagUserOfReplacedMethod(String methodName, String replacement) {
   if (isEnabled() && METHODS.add(methodName)) {
     LOGGER.warn(
         String.format(
             "The %s method has been deprecated and will be removed in the next version of Gradle. Please use the %s method instead.",
             methodName, replacement));
     logTraceIfNecessary();
   }
 }
Пример #4
0
 public static void nagUserOfReplacedPlugin(String pluginName, String replacement) {
   if (isEnabled() && PLUGINS.add(pluginName)) {
     LOGGER.warn(
         String.format(
             "The %s plugin has been deprecated and will be removed in the next version of Gradle. Please use the %s plugin instead.",
             pluginName, replacement));
     logTraceIfNecessary();
   }
 }
Пример #5
0
 public static void nagUserOfReplacedNamedParameter(String parameterName, String replacement) {
   if (isEnabled() && NAMED_PARAMETERS.add(parameterName)) {
     LOGGER.warn(
         String.format(
             "The %s named parameter has been deprecated and will be removed in the next version of Gradle. Please use the %s named parameter instead.",
             parameterName, replacement));
     logTraceIfNecessary();
   }
 }
Пример #6
0
 public static void nagUserOfDiscontinuedProperty(String propertyName, String advice) {
   if (isEnabled() && PROPERTIES.add(propertyName)) {
     LOGGER.warn(
         String.format(
             "The %s property has been deprecated and will be removed in the next version of Gradle. %s",
             propertyName, advice));
     logTraceIfNecessary();
   }
 }
Пример #7
0
 public static void nagUserOfDiscontinuedMethod(String methodName) {
   if (isEnabled() && METHODS.add(methodName)) {
     LOGGER.warn(
         String.format(
             "The %s method has been deprecated and will be removed in the next version of Gradle.",
             methodName));
     logTraceIfNecessary();
   }
 }
Пример #8
0
 public static void nagUserWith(String message) {
   if (isEnabled() && METHODS.add(message)) {
     LOGGER.warn(message);
     logTraceIfNecessary();
   }
 }