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

jreleaser / jreleaser / #475

03 Apr 2025 10:50AM UTC coverage: 40.322% (-8.9%) from 49.193%
#475

push

github

aalmiray
feat(release): Support Forgejo as releaser

Closes #1842

Closes #1843

182 of 1099 new or added lines in 45 files covered. (16.56%)

4239 existing lines in 333 files now uncovered.

20797 of 51577 relevant lines covered (40.32%)

0.4 hits per line

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

73.33
/api/jreleaser-model-api/src/main/java/org/jreleaser/model/Flatpak.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.model;
19

20
import java.util.Locale;
21

22
import static org.jreleaser.util.StringUtils.isBlank;
23

24
/**
25
 * @author Andres Almiray
26
 * @since 1.2.0
27
 */
28
public class Flatpak {
×
29
    public enum Runtime {
1✔
30
        FREEDESKTOP("org.freedesktop.Platform", "org.freedesktop.Sdk"),
1✔
31
        GNOME("org.gnome.Platform", "org.gnome.Sdk"),
1✔
32
        KDE("org.kde.Platform", "org.kde.Sdk"),
1✔
33
        ELEMENTARY("io.elementary.Platform", "io.elementary.Sdk");
1✔
34

35
        private final String runtime;
36
        private final String sdk;
37

38
        Runtime(String runtime, String sdk) {
1✔
39
            this.runtime = runtime;
1✔
40
            this.sdk = sdk;
1✔
41
        }
1✔
42

43
        public String runtime() {
UNCOV
44
            return runtime;
×
45
        }
46

47
        public String sdk() {
UNCOV
48
            return sdk;
×
49
        }
50

51
        public String formatted() {
52
            return name().toLowerCase(Locale.ENGLISH);
×
53
        }
54

55
        public static Runtime of(String str) {
56
            if (isBlank(str)) return null;
1✔
57
            return Runtime.valueOf(str.toUpperCase(Locale.ENGLISH).trim());
1✔
58
        }
59
    }
60
}
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