Skip to content

Commit 9cf9f75

Browse files
author
archinamon
committed
important hotfix of two-step compilation flow;
1 parent f30a925 commit 9cf9f75

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

AspectJ-gradle/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ dependencies {
2626
}
2727

2828
group = 'com.archinamon'
29-
version = '2.4.2'
29+
version = '2.4.3'
3030

3131
// local archive :: debug mode
3232
uploadArchives {

AspectJ-gradle/src/main/groovy/com/archinamon/api/AspectJAppTransform.groovy

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ class AspectJAppTransform extends Transform {
171171
logAugmentationStart();
172172

173173
// attaching source classes compiled by compile${variantName}AspectJ task
174-
includeCompiledAspects(transformInvocation);
174+
includeCompiledAspects(transformInvocation, outputDir);
175175
Collection<TransformInput> inputs = modeComplex() ? transformInvocation.inputs : transformInvocation.referencedInputs;
176176

177177
inputs.each { input ->
@@ -226,10 +226,13 @@ class AspectJAppTransform extends Transform {
226226

227227
/* Internal */
228228

229-
def private includeCompiledAspects(TransformInvocation transformInvocation) {
229+
def private includeCompiledAspects(TransformInvocation transformInvocation, File outputDir) {
230230
def compiledAj = project.file("$project.buildDir/aspectj/${(transformInvocation.context as TransformTask).variantName}");
231231
if (compiledAj.exists()) {
232232
aspectJWeaver.aspectPath << compiledAj;
233+
234+
//copy compiled .class files to output directory
235+
FileUtil.copyDir compiledAj, outputDir;
233236
}
234237
}
235238

0 commit comments

Comments
 (0)