Archinamon / android-gradle-aspectj

gradle plug-in adding supports of AspectJ into Android project
Apache License 2.0
363 stars 58 forks source link

implementation library #75

Open sineom-1 opened 6 years ago

sineom-1 commented 6 years ago

xx:xx:1.0.0 is my library,contain android-gradle-aspectj, I implementation this library in my app's build.gradle‘s dependencies I don't know set this ,please help me aspectj { includeAspectsFromJar 'xx' }

kirtan403 commented 6 years ago

How to use this inside library? So that user(developer) does not need to add the apply plugin line into their build.gradle file?

miomao656 commented 5 years ago

How to use this inside a custom plugin for Gradle? I want to enable or disable this plugin from code in my plugin (dryRun)

Archinamon commented 5 years ago

How to use this inside a custom plugin for Gradle? I want to enable or disable this plugin from code in my plugin (dryRun)

Since 3.3.6 you can use option dryRun to decide where should plugin runs augmenting or not. If you set dryRun = true, then plugin will NOT run compile/augment aspects within your project. When you set dryRun = false, then plugin WILL inject aspect instructions into your project's code. I did add a description in readme both for kotlin and groovy scripts.