jfrog / artifactory-gradle-plugin

JFrog Gradle plugin for Build Info extraction and Artifactory publishing.
Apache License 2.0
20 stars 15 forks source link

afterEvaluate runs when project is already evaluated #70

Closed yahavi closed 10 months ago

yahavi commented 10 months ago

Fix the following issue:

An exception occurred applying plugin request [id: 'com.jfrog.artifactory']
> Failed to apply plugin class 'org.jfrog.gradle.plugin.artifactory.ArtifactoryPlugin'.
   > Cannot run Project.afterEvaluate(Action) when the project is already evaluated.

The problem occurs when the plugin is used but not applied in the root project:

 id 'com.jfrog.artifactory' version '5.1.6' apply false
github-actions[bot] commented 10 months ago
[![](https://raw.githubusercontent.com/jfrog/frogbot/master/resources/v2/noVulnerabilityBannerPR.png)](https://github.com/jfrog/frogbot#readme)

[🐸 JFrog Frogbot](https://github.com/jfrog/frogbot#readme)