gradle-xcodePlugin icon indicating copy to clipboard operation
gradle-xcodePlugin copied to clipboard

Failed upgrading from 0.19.1 to 0.20.0

Open adil-hussain-84 opened this issue 5 years ago • 3 comments

I just tried upgrading from version 0.19.1 of the plugin to version 0.20.0 and I'm seeing the following error when Gradle attempts to configure the project:

A problem occurred configuring root project 'some-project'.
> Could not resolve all artifacts for configuration ':classpath'.
   > Could not find any version that matches org.pegdown:pegdown:1.6.+.
     Versions that do not match:
       - 1.5.0
       - 1.4.2
       - 1.4.2-atlassian-1
       - 1.4.1
       - 1.4.0
       - + 10 more
     Searched in the following locations:
       - https://dl.google.com/dl/android/maven2/org/pegdown/pegdown/maven-metadata.xml
       - https://jcenter.bintray.com/org/pegdown/pegdown/maven-metadata.xml
       - https://plugins.gradle.org/m2/org/pegdown/pegdown/maven-metadata.xml
     Required by:
         project : > gradle.plugin.org.openbakery:plugin:0.20.0

I have tried declaring the plugin with both the plugins { id "org.openbakery.xcode-plugin" version "0.20.0" } notation and the dependencies { classpath "gradle.plugin.org.openbakery:plugin:0.20.0" } } notation and the result is the same both times.

adil-hussain-84 avatar Jun 11 '20 07:06 adil-hussain-84

Pegdown is the problem and I want to get rid of it see: #431

For a workaround see: https://github.com/openbakery/gradle-xcodePlugin/issues/430#issuecomment-637550588

renep avatar Jun 12 '20 06:06 renep

Thanks for the response @renep. It looks like all I was missing was a mavenCentral() build script repository declaration. I had jcenter() and not mavenCentral(). Looks like the org.pegdown:pegdown:1.6.+ artifact exists in Maven Central but not in JCenter.

adil-hussain-84 avatar Jul 09 '20 17:07 adil-hussain-84

I already have remove pegdown in the develop branch, because I was used in the HockeyKit part that I have also ditched and a ReleaseNotes tasks, that I have added a very long time ago, but have never really used is. So it's gone too. 😬

renep avatar Jul 10 '20 05:07 renep