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

Could not create domain object 'compileOnlyAar' #5

Open
eugene-krivobokov opened this issue Sep 19, 2019 · 2 comments
Open

Could not create domain object 'compileOnlyAar' #5

eugene-krivobokov opened this issue Sep 19, 2019 · 2 comments

Comments

@eugene-krivobokov
Copy link

plugins {
    id("kotlin")
    id("com.stepango.aar2jar") version "0.6"
}

Error:

Caused by: java.lang.IllegalStateException: Could not create domain object 'compileOnlyAar' (Configuration)
       ...
Caused by: org.gradle.api.UnknownDomainObjectException: Extension of type 'JavaPluginConvention' does not exist. Currently registered extension types: [ExtraPropertiesExtension, KotlinJvmProjectExtension, KotlinTestsRegistry, DefaultArtifactPublicationSet]
        at org.gradle.internal.extensibility.ExtensionsStorage.getHolderByType(ExtensionsStorage.java:88)
        at org.gradle.internal.extensibility.ExtensionsStorage.getByType(ExtensionsStorage.java:74)
        at org.gradle.internal.extensibility.DefaultConvention.getByType(DefaultConvention.java:167)
        at com.stepango.aar2jar.Aar2JarKt$baseConfiguration$2.execute(Aar2Jar.kt:133)
        at com.stepango.aar2jar.Aar2JarKt$baseConfiguration$2.execute(Aar2Jar.kt)

You can reproduce it in this project:
https://github.com/avito-tech/android-ui-testing/blob/master/ui-testing-core/build.gradle.kts

@stepango
Copy link
Owner

stepango commented Sep 20, 2019

Yeah, seen it before, you could try old fashioned way by specifying dep version in classpath

dependencies {
        classpath "gradle.plugin.com.stepango.aar2jar:aar2jar:0.6"
...
    }

Somehow it affects the way plugin get's applied

@eugene-krivobokov
Copy link
Author

Thanks, it helps

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

2 participants