• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

jreleaser / jreleaser / #556

22 Nov 2025 04:17PM UTC coverage: 46.213% (-2.0%) from 48.203%
#556

push

github

aalmiray
feat(jdks): Allow filtering by platform

Closes #2000

Co-authored-by: Ixchel Ruiz <ixchelruiz@yahoo.com>

0 of 42 new or added lines in 5 files covered. (0.0%)

1116 existing lines in 107 files now uncovered.

24939 of 53965 relevant lines covered (46.21%)

0.46 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/plugins/jreleaser-maven-plugin/src/main/java/org/jreleaser/maven/plugin/JReleaserDeployMojo.java
1
/*
2
 * SPDX-License-Identifier: Apache-2.0
3
 *
4
 * Copyright 2020-2025 The JReleaser authors.
5
 *
6
 * Licensed under the Apache License, Version 2.0 (the "License");
7
 * you may not use this file except in compliance with the License.
8
 * You may obtain a copy of the License at
9
 *
10
 *     https://www.apache.org/licenses/LICENSE-2.0
11
 *
12
 * Unless required by applicable law or agreed to in writing, software
13
 * distributed under the License is distributed on an "AS IS" BASIS,
14
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
 * See the License for the specific language governing permissions and
16
 * limitations under the License.
17
 */
18
package org.jreleaser.maven.plugin;
19

20
import org.apache.maven.plugin.MojoExecutionException;
21
import org.apache.maven.plugin.MojoFailureException;
22
import org.apache.maven.plugins.annotations.Mojo;
23
import org.apache.maven.plugins.annotations.Parameter;
24
import org.jreleaser.model.api.JReleaserCommand;
25
import org.jreleaser.model.api.JReleaserContext.Mode;
26
import org.jreleaser.model.internal.JReleaserContext;
27
import org.jreleaser.workflow.Workflows;
28

29
import static org.jreleaser.model.api.JReleaserContext.Mode.DEPLOY;
30

31
/**
32
 * Deploys all artifacts.
33
 *
34
 * @author Andres Almiray
35
 * @since 1.3.0
36
 */
37
@Mojo(threadSafe = true, name = "deploy")
UNCOV
38
public class JReleaserDeployMojo extends AbstractJReleaserMojo {
×
39
    /**
40
     * Include a deployer by type.
41
     */
42
    @Parameter(property = "jreleaser.deployers")
43
    private String[] includedDeployers;
44

45
    /**
46
     * Exclude a deployer by type.
47
     */
48
    @Parameter(property = "jreleaser.excluded.deployers")
49
    private String[] excludedDeployers;
50

51
    /**
52
     * Include a deployer by name.
53
     */
54
    @Parameter(property = "jreleaser.deployer.names")
55
    private String[] includedDeployerNames;
56

57
    /**
58
     * Exclude a deployer by name.
59
     */
60
    @Parameter(property = "jreleaser.excluded.deployer.names")
61
    private String[] excludedDeployerNames;
62

63
    /**
64
     * Skip execution.
65
     */
66
    @Parameter(property = "jreleaser.deploy.skip")
67
    private boolean skip;
68

69
    @Override
70
    protected void doExecute() throws MojoExecutionException, MojoFailureException {
UNCOV
71
        JReleaserContext context = createContext();
×
UNCOV
72
        context.setIncludedDeployerTypes(collectEntries(includedDeployers, true));
×
UNCOV
73
        context.setIncludedDeployerNames(collectEntries(includedDeployerNames));
×
UNCOV
74
        context.setExcludedDeployerTypes(collectEntries(excludedDeployers, true));
×
UNCOV
75
        context.setExcludedDeployerNames(collectEntries(excludedDeployerNames));
×
UNCOV
76
        Workflows.deploy(context).execute();
×
UNCOV
77
    }
×
78

79
    @Override
80
    protected Mode getMode() {
UNCOV
81
        return DEPLOY;
×
82
    }
83

84
    @Override
85
    protected boolean isSkip() {
UNCOV
86
        return skip;
×
87
    }
88

89
    @Override
90
    protected JReleaserCommand getCommand() {
UNCOV
91
        return JReleaserCommand.DEPLOY;
×
92
    }
93
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc