openbakery / gradle-xcodePlugin

gradle plugin for building Xcode Projects for iOS, watchOS, macOS or tvOS
Apache License 2.0
457 stars 129 forks source link

Any plans to publish 0.22.0 to Maven Central or Gradle Plugins? #453

Open adil-hussain-84 opened 2 years ago

adil-hussain-84 commented 2 years ago

I see in the CHANGELOG that there's a 0.22.0 release which supports Xcode 13.2.1.

Do you have any plans to publish this release to Maven Central or https://plugins.gradle.org/m2 any time soon?

renep commented 2 years ago

I have some trouble with the publish task on my build server. I will look to it next week and post an update.

thipokch commented 2 years ago

any luck so far? I'm having issues with the current 0.21.0. Thanks :)

renep commented 2 years ago

I did not find time yet to look into this. This has also no high priority for me, because the publish on my own server works fine. So when you use the method described in the Readme you will get the lastest version of the plugin: https://github.com/openbakery/gradle-xcodePlugin#usage

(This remindes me that I have to test it with Xcode 14-beta 😬)

thipokch commented 2 years ago

I'm actually experiment this plugin with Kotlin DSL and Xcode 14. I might fork this and just publish it for the peace of mind. It's a little bit easier and more consistent with my build setup too.

thipokch commented 2 years ago

Just realized that Gradle Plugin repo does not allow forks, so I just published it to jitpack

// build.gradle.kts

buildscript {
    repositories {
        gradlePluginPortal()
        google()
        mavenCentral()
        maven {
            url = uri("https://jitpack.io")
            // isAllowInsecureProtocol not required
        }
    }

    dependencies {
        classpath( "com.github.thipokch:gradle-xcodePlugin:0.22.2")
        ...
    }
}

plugins {
    id("org.openbakery.xcode-plugin")
}
thipokch commented 2 years ago

@renep Jitpack seems to work right out of the box. Here's where I published it https://jitpack.io/#thipokch/gradle-xcodePlugin. The only change I've made is added Maven Publish plugin to libxcode and libxcodetools as seen in commit 3241b78025a4fd7bcf58a251e2babcb164db3c8b . Jitpack just publish to maven local and take care of the rest.