Missing code signing in moeIpaBuild

We are using manual code signing for our project on CI.
We got:
XXXXX requires a provisioning profile. Select a provisioning profile for the “Release” build configuration in the project editor.
15:57:26 Code signing is required for product type ‘Application’ in SDK ‘iOS 10.3’
during moeIpaBuild task.

After we add

PROVISIONING_PROFILE_SPECIFIER=XXXX CODE_SIGN_IDENTITY=XXXXX

to the command line

xcrun xcodebuild archive -workspace ./xcode/XXXX.xcworkspace -scheme XXXX MOE_GRADLE_EXTERNAL_BUILD=YES ONLY_ACTIVE_ARCH=NO DEVELOPMENT_TEAM=XXXX -configuration Release -archivePath ./build/archive 

, it works.

Managed to hack into this by:

moeIpaBuild {
    additionalParameters = ["PROVISIONING_PROFILE="+provisioning, "CODE_SIGN_IDENTITY="+identity, "MOE_GRADLE_EXTERNAL_BUILD=YES", "ONLY_ACTIVE_ARCH=NO"]
}

Will this be fixed in the future?