# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
---
loader: android_taskgraph.loader.multi_dep:loader

transforms:
    - android_taskgraph.transforms.multi_dep:transforms
    - android_taskgraph.transforms.beetmover:transforms
    - android_taskgraph.transforms.treeherder:transforms
    - taskgraph.transforms.task:transforms

kind-dependencies:
    - build-components
    - post-signing
    - signing

primary-dependency: signing

only-for-build-types:
    - release
    - beta
    - nightly

group-by: component


task-template:
    description: Publish component
    maven-destination: 'maven2/org/mozilla/components/{component}/{version}/{artifact_file_name}'
    run-on-tasks-for: []
    shipping-phase: ship
    treeherder:
        job-symbol:
            by-build-type:
                release: BM-R
                beta: BM-B
                nightly: BM-N
                default: BM-B
        kind: build
    worker:
        action: push-to-maven
        bucket:
            by-build-type:
                release:
                    by-level:
                        '3': maven-production
                        default: maven-staging
                beta:
                    by-level:
                        '3': maven-production
                        default: maven-staging
                nightly:
                    by-level:
                        '3': maven-nightly-production
                        default: maven-nightly-staging
        beetmover-application-name:
            by-build-type:
                release: components
                beta: components
                nightly: nightly_components
                default: UNDEFINED
    worker-type: beetmover
