Commits

Meikel Brandmeyer committed c4c6b43

Add deprecation warning for clojarsDeploy

  • Participants
  • Parent commits b1a3689

Comments (0)

Files changed (1)

File clojuresque/src/main/groovy/clojuresque/ClojureUploadConvention.groovy

 /*-
- * Copyright 2009,2010 © Meikel Brandmeyer.
+ * Copyright 2009-2013 © Meikel Brandmeyer.
  * All rights reserved.
  *
  * Permission is hereby granted, free of charge, to any person obtaining a
 
 package clojuresque
 
-import org.gradle.api.Project
 import org.gradle.api.tasks.Upload
 
+import org.slf4j.Logger
+import org.slf4j.LoggerFactory
+
 class ClojureUploadConvention {
+    private static final Logger LOGGER = LoggerFactory.getLogger(ClojureUploadConvention)
+
     private Upload upload
 
     public ClojureUploadConvention(Upload upload) {
     }
 
     public void clojarsDeploy() {
+        Util.deprecationWarning(LOGGER, "clojarsDeploy()", "clojars.deploy()")
+        LOGGER.warn("(provided by new clojars plugin)")
+
         upload.doLast {
             String pomName = project.buildDir.path + "/" +
                 project.mavenPomDir.path + "/" +