Skip to content
This repository was archived by the owner on Jul 9, 2025. It is now read-only.
This repository was archived by the owner on Jul 9, 2025. It is now read-only.

Don't reference "compile" when it's not present #38

@Namnodorel

Description

@Namnodorel

In the latest Android Gradle Plugin Canary, compile has been removed in favor of implementation and api. That results in this line failing during build:

configurations.compile.getDependencies().each { dep -> addDependency(dep, "compile") }

Execution failed for task ':views:generatePomFileForMavenPublishPublication'.
> Could not apply withXml() to generated POM
   > Could not get unknown property 'compile' for configuration container of type org.gradle.api.internal.artifacts.configurations.DefaultConfigurationContainer.

I don't know much about Groovy syntax, but I think adding a check before accessing the property should quickly solve this problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions