Skip to content

Possible to run an Android build whilst skipping all tasks of the J2ObjC Gradle plugin? #606

@adil-hussain-84

Description

@adil-hussain-84

I'm putting together an Android and iOS SDK and have the recommended project structure with three modules: Android, iOS and SharedCode. The build.gradle file in my SharedCode module contains the j2objcConfig { ... } block.

I'm in the process of setting up Continuous Integration builds of my Android and iOS SDKs. I will have separate builds for the Android and iOS modules. Moreover, the machine on which the Android builds are run does not contain the J2ObjC library. Therefore I'd like to exclude all tasks of the J2ObjC Gradle plugin when doing an Android build.

What task or tasks do I need to exclude when executing a build of the Android module? I thought this might do it...

./gradlew :Android:build -x :SharedCode:j2objcBuild

... but I still get a J2ObjC Tool Configuration Failure error complaining that: J2ObjC Home directory not found.

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