Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

aspectj.gradle error #8063

Closed
ghost opened this issue Dec 17, 2018 · 5 comments
Closed

aspectj.gradle error #8063

ghost opened this issue Dec 17, 2018 · 5 comments

Comments

@ghost
Copy link

ghost commented Dec 17, 2018

Hi folks,

When trying to apply the aspectj.gradle plugin I am faced with the following error message.

  • What went wrong:
    A problem occurred evaluating root project 'test-bed'.

Failed to apply plugin [id 'aspectj.gradle']
Could not create task ':compileAspect'.
> Could not get unknown property 'classesDir' for main classes of type org.gradle.api.internal.tasks.DefaultSourceSetOutput.

Gradle version 5.0
AspectJ version 1.9.1
aspectj.gradle plugin version 0.1.6

Anyone got any idea-ios?

@big-guy
Copy link
Member

big-guy commented Dec 17, 2018

This was a property that was removed in Gradle 5.0 after being deprecated for Gradle 4.x. There are several other AspectJ plugins you could try on the plugin portal.

related: #7861

@big-guy big-guy closed this as completed Dec 17, 2018
@ghost
Copy link
Author

ghost commented Dec 18, 2018

Noice!

I'm using the following plugin.

@amrsa1
Copy link

amrsa1 commented May 14, 2019

@Uooka
@big-guy

Can you please provide ur build.gradle
Im facing an issue with new plugin as well :

Could not find any public constructor for class io.freefair.gradle.plugins.AspectJExtension_Decorated which accepts parameters [].

"buildscript {

repositories {
    jcenter()
    maven {
        url "https://plugins.gradle.org/m2/"
    }
}
dependencies {
    classpath "io.freefair.gradle:aspectj-plugin:3.5.1"
}

}

plugins {
id 'java'
id 'ru.vyarus.quality' version '2.2.0'
id "io.qameta.allure" version "2.7.0"
// id("aspectj.gradle") version "0.1.6" apply false
id "io.freefair.aspectj.post-compile-weaving" version "3.5.1" apply false

}
ext {
aspectjVersion = '1.9.2'
}

apply plugin: 'java'
apply plugin: 'idea'
apply plugin: "io.qameta.allure"
apply plugin: "io.freefair.aspectj.post-compile-weaving"

"

@raghavpn
Copy link

raghavpn commented Oct 24, 2019

@amrkamel1 Please can you share your build.gradle if its fixed?

I am facing the same error:
io.freefair.gradle.plugins.AspectJExtension_Decorated which accepts parameters []

@wangmingliang-ms
Copy link

same here

A problem occurred evaluating root project '****'.
> Failed to apply plugin [class 'io.freefair.gradle.plugins.aspectj.AspectJBasePlugin']
   > Could not create an instance of type io.freefair.gradle.plugins.aspectj.AspectJExtension_Decorated.
      > Could not find any public constructor for class io.freefair.gradle.plugins.aspectj.AspectJExtension_Decorated which accepts parameters [].

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants