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

jreleaser / jreleaser / #521

29 Jul 2025 12:08PM UTC coverage: 45.469% (-0.05%) from 45.518%
#521

push

github

web-flow
feat(extensions): Support JBang as extension loader and launcher

Closed #1952

1 of 49 new or added lines in 6 files covered. (2.04%)

9 existing lines in 2 files now uncovered.

24041 of 52873 relevant lines covered (45.47%)

0.45 hits per line

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

83.33
/api/jreleaser-utils/src/main/java/org/jreleaser/util/DefaultVersions.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.util;
19

20
import java.util.ResourceBundle;
21

22
/**
23
 * @author Andres Almiray
24
 * @since 1.3.0
25
 */
26
public final class DefaultVersions {
1✔
27
    private static final DefaultVersions INSTANCE = new DefaultVersions();
1✔
28

29
    private final ResourceBundle bundle = ResourceBundle.getBundle("org.jreleaser.default_versions");
1✔
30
    private final String cosignVersion = bundle.getString("cosign.version");
1✔
31
    private final String jibVersion = bundle.getString("jib.version");
1✔
32
    private final String mvnVersion = bundle.getString("mvn.version");
1✔
33
    private final String pomcheckerVersion = bundle.getString("pomchecker.version");
1✔
34
    private final String cyclonedxVersion = bundle.getString("cyclonedx.version");
1✔
35
    private final String syftVersion = bundle.getString("syft.version");
1✔
36
    private final String jbangVersion = bundle.getString("jbang.version");
1✔
37

38
    public String getCosignVersion() {
39
        return cosignVersion;
×
40
    }
41

42
    public String getJibVersion() {
43
        return jibVersion;
1✔
44
    }
45

46
    public String getMvnVersion() {
47
        return mvnVersion;
×
48
    }
49

50
    public String getPomcheckerVersion() {
51
        return pomcheckerVersion;
1✔
52
    }
53

54
    public String getCyclonedxVersion() {
55
        return cyclonedxVersion;
1✔
56
    }
57

58
    public String getSyftVersion() {
59
        return syftVersion;
1✔
60
    }
61

62
    public String getJbangVersion() {
NEW
63
        return jbangVersion;
×
64
    }
65

66
    public static DefaultVersions getInstance() {
67
        return INSTANCE;
1✔
68
    }
69
}
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