kafka-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lind...@apache.org
Subject [kafka] branch 2.0 updated: MINOR: Use annotationProcessor instead of compile for JMH annotation processor
Date Mon, 03 Sep 2018 17:22:27 GMT
This is an automated email from the ASF dual-hosted git repository.

lindong pushed a commit to branch 2.0
in repository https://gitbox.apache.org/repos/asf/kafka.git


The following commit(s) were added to refs/heads/2.0 by this push:
     new ae36b04  MINOR: Use annotationProcessor instead of compile for JMH annotation processor
ae36b04 is described below

commit ae36b0405e2e8d94677c6de3da17bd2aa7fcc9d5
Author: Ismael Juma <ismael@juma.me.uk>
AuthorDate: Mon Sep 3 10:21:48 2018 -0700

    MINOR: Use annotationProcessor instead of compile for JMH annotation processor
    
    This fixes the following Gradle warning:
    
    > The following annotation processors were detected on the compile classpath:
    > 'org.openjdk.jmh.generators.BenchmarkProcessor'. Detecting annotation processors
    > on the compile classpath is deprecated and Gradle 5.0 will ignore them. Please add
    > them to the annotation processor path instead. If you did not intend to use annotation
    > processors, you can use the '-proc:none' compiler argument to ignore them.
    
    With this change, the warning went away and `./jmh-benchmarks/jmh.sh` continues
    to work.
    
    Author: Ismael Juma <ismael@juma.me.uk>
    
    Reviewers: Dong Lin <lindong28@gmail.com>
    
    Closes #5602 from ijuma/annotation-processor
    
    (cherry picked from commit a8eac1b8149da20c797d42f426178b31032b76a0)
    Signed-off-by: Dong Lin <lindong28@gmail.com>
---
 build.gradle | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/build.gradle b/build.gradle
index 3579ab8..2b18b1b 100644
--- a/build.gradle
+++ b/build.gradle
@@ -1184,7 +1184,7 @@ project(':jmh-benchmarks') {
     compile project(':clients')
     compile project(':streams')
     compile libs.jmhCore
-    compile libs.jmhGeneratorAnnProcess
+    annotationProcessor libs.jmhGeneratorAnnProcess
     compile libs.jmhCoreBenchmarks
   }
 


Mime
View raw message