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

[feature/jcenter-publishing] Fix Artifactory plugin configuration #5

Open
tMaxx opened this issue Jul 4, 2019 · 0 comments
Open

[feature/jcenter-publishing] Fix Artifactory plugin configuration #5

tMaxx opened this issue Jul 4, 2019 · 0 comments

Comments

@tMaxx
Copy link

tMaxx commented Jul 4, 2019

Crucial info

WIP version is in branch feature/jcenter-publishing
https://github.com/Knotx/knotx-gradle-plugins/tree/feature/jcenter-publishing
This ticket is a part of Knotx/knotx#503.

Description

Currently, when trying to use the bintray-publish plugin with Artifactory configuration, Gradle throws the following error:

> Configure project :
Evaluating root project 'knotx-junit5' using build file 'D:\projects\knotx\knotx-junit5\build.gradle.kts'.
Configuring signAndPublish task for project :

FAILURE: Build failed with an exception.

* Where:
Build file 'D:\projects\knotx\knotx-junit5\build.gradle.kts' line: 19

* What went wrong:
An exception occurred applying plugin request [id: 'io.knotx.bintray-publish', version: '0.1.2']
> Failed to apply plugin [id 'io.knotx.bintray-publish']
   > Task information is not available, as this task execution graph has not been populated.

This is due to how I originally tried to apply the required configuration, as here we cannot use Gradle's Kotlin DSL.

Most probable cause

The culprit is present here:

configure<ArtifactoryPluginConvention> {

Most likely, we shouldn't be using the configure<> syntax, or we shouldn't be referencing ArtifactoryPluginConvention but something else entirely.

A proper fix for this may need to develop some middleware around this, or try to mimic how BintrayExtension is configured in the same file. BintrayExtension doesn't exhibit the same problem due to how it is written (almost like a POJO).

Impact

Unless this is fixed, we won't be able to publish snapshots to JFrog OSS snapshot repository.

If we get rid of Artifactory portion, current Bintray plugin configuration should be functional as-is.

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

1 participant