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

jreleaser / jreleaser / #510

27 Jul 2025 12:31PM UTC coverage: 45.783% (-3.6%) from 49.39%
#510

push

github

aalmiray
feat(packagers): Stage distribution publication in a fixed directory

Closes #1943

12 of 25 new or added lines in 4 files covered. (48.0%)

2208 existing lines in 190 files now uncovered.

23924 of 52255 relevant lines covered (45.78%)

0.46 hits per line

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

66.67
/plugins/jreleaser/src/main/java/org/jreleaser/cli/Publish.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.cli;
19

20
import org.jreleaser.model.api.JReleaserCommand;
21
import org.jreleaser.model.internal.JReleaserContext;
22
import org.jreleaser.workflow.Workflows;
23
import picocli.CommandLine;
24

25
/**
26
 * @author Andres Almiray
27
 * @since 0.1.0
28
 */
29
@CommandLine.Command(name = "publish")
30
public class Publish extends AbstractPackagerModelCommand<Main> {
1✔
31
    @CommandLine.Option(names = {"--dry-run"})
32
    Boolean dryrun;
33

34
    @Override
35
    protected void doExecute(JReleaserContext context) {
36
        super.doExecute(context);
1✔
UNCOV
37
        Workflows.publish(context).execute();
×
UNCOV
38
    }
×
39

40
    @Override
41
    protected Boolean dryrun() {
42
        return dryrun;
1✔
43
    }
44

45
    @Override
46
    protected JReleaserCommand getCommand() {
47
        return JReleaserCommand.PUBLISH;
1✔
48
    }
49
}
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