• 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

85.71
/core/jreleaser-engine/src/main/java/org/jreleaser/workflow/Workflows.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.workflow;
19

20
import org.jreleaser.model.internal.JReleaserContext;
21

22
import static java.util.Arrays.asList;
23
import static java.util.Collections.singletonList;
24

25
/**
26
 * @author Andres Almiray
27
 * @since 0.1.0
28
 */
29
public final class Workflows {
30
    private Workflows() {
31
        // noop
32
    }
33

34
    public static Workflow download(JReleaserContext context) {
35
        return new WorkflowImpl(context, singletonList(
1✔
36
            new DownloadWorkflowItem()
37
        ));
38
    }
39

40
    public static Workflow assemble(JReleaserContext context) {
41
        return new WorkflowImpl(context, singletonList(
1✔
42
            new AssembleWorkflowItem()
43
        ));
44
    }
45

46
    public static Workflow changelog(JReleaserContext context) {
47
        return new WorkflowImpl(context, singletonList(
1✔
48
            new ChangelogWorkflowItem()
49
        ));
50
    }
51

52
    public static Workflow checksum(JReleaserContext context) {
53
        return new WorkflowImpl(context, singletonList(
1✔
54
            new ChecksumWorkflowItem()
55
        ));
56
    }
57

58
    public static Workflow catalog(JReleaserContext context) {
59
        return new WorkflowImpl(context, asList(
1✔
60
            new ChecksumWorkflowItem(),
61
            new CatalogWorkflowItem()
62
        ));
63
    }
64

65
    public static Workflow sign(JReleaserContext context) {
66
        return new WorkflowImpl(context, asList(
1✔
67
            new ChecksumWorkflowItem(),
68
            new CatalogWorkflowItem(),
69
            new SignWorkflowItem()
70
        ));
71
    }
72

73
    public static Workflow deploy(JReleaserContext context) {
74
        return new WorkflowImpl(context, singletonList(
1✔
75
            new DeployWorkflowItem()
76
        ));
77
    }
78

79
    public static Workflow upload(JReleaserContext context) {
80
        return new WorkflowImpl(context, asList(
1✔
81
            new ChecksumWorkflowItem(),
82
            new CatalogWorkflowItem(),
83
            new SignWorkflowItem(),
84
            new UploadWorkflowItem()
85
        ));
86
    }
87

88
    public static Workflow release(JReleaserContext context) {
89
        return new WorkflowImpl(context, asList(
1✔
90
            new ChangelogWorkflowItem(),
91
            new ChecksumWorkflowItem(),
92
            new CatalogWorkflowItem(),
93
            new SignWorkflowItem(),
94
            new DeployWorkflowItem(),
95
            new UploadWorkflowItem(),
96
            new ReleaseWorkflowItem()
97
        ));
98
    }
99

100
    public static Workflow prepare(JReleaserContext context) {
101
        return new WorkflowImpl(context, asList(
1✔
102
            new ChecksumWorkflowItem(),
103
            new PrepareWorkflowItem()
104
        ));
105
    }
106

107
    public static Workflow packageRelease(JReleaserContext context) {
108
        return new WorkflowImpl(context, asList(
1✔
109
            new ChecksumWorkflowItem(),
110
            new PrepareWorkflowItem(),
111
            new PackageWorkflowItem()
112
        ));
113
    }
114

115
    public static Workflow publish(JReleaserContext context) {
116
        return new WorkflowImpl(context, asList(
1✔
117
            new ChecksumWorkflowItem(),
118
            new PrepareWorkflowItem(),
119
            new PackageWorkflowItem(),
120
            new PublishWorkflowItem()
121
        ));
122
    }
123

124
    public static Workflow announce(JReleaserContext context) {
UNCOV
125
        return new WorkflowImpl(context, asList(
×
126
            new ChangelogWorkflowItem(),
127
            new AnnounceWorkflowItem()
128
        ));
129
    }
130

131
    public static Workflow fullRelease(JReleaserContext context) {
UNCOV
132
        return new WorkflowImpl(context, asList(
×
133
            new ChangelogWorkflowItem(),
134
            new ChecksumWorkflowItem(),
135
            new CatalogWorkflowItem(),
136
            new SignWorkflowItem(),
137
            new DeployWorkflowItem(),
138
            new UploadWorkflowItem(),
139
            new ReleaseWorkflowItem(),
140
            new PrepareWorkflowItem(),
141
            new PackageWorkflowItem(),
142
            new PublishWorkflowItem(),
143
            new AnnounceWorkflowItem()
144
        ));
145
    }
146
}
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