Aspectj doesn't work with kotlin

后端 未结 5 1441
南方客
南方客 2020-12-29 08:41

i want to use aspectj aop in kotlin,here is my code:

my annotation in annotation.lazy_list:

Kotlin:

 package anotation

@Retention(Annotation         


        
5条回答
  •  南方客
    南方客 (楼主)
    2020-12-29 09:21

    You can use freefair gradle plugin

    buildscript {
      repositories {
        maven {
          url "https://plugins.gradle.org/m2/"
        }
      }
      dependencies {
        classpath "io.freefair.gradle:aspectj-plugin:5.2.1"
      }
    }
    
    apply plugin: "io.freefair.aspectj.post-compile-weaving"
    

提交回复
热议问题