aboutsummaryrefslogtreecommitdiff
path: root/buildSrc/src/licenseinfo.kt
blob: 85ef54c1f1d52cf982f113eb64412188ba382e16 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
// SPDX-FileCopyrightText: 2023 Linnea Gräf <nea@nea.moe>
//
// SPDX-License-Identifier: CC0-1.0

import moe.nea.licenseextractificator.LicenseExtension

fun LicenseExtension.addExtraLicenseMatchers() {
    solo {
        name = "Firmament"
        description = "A Hypixel Skyblock mod"
        developer("Linnea Gräf") {
            webPresence = "https://nea.moe/"
        }
        spdxLicense.`GPL-3-0-or-later`()
        webPresence = "https://git.nea.moe/nea/Firmament/"
    }
    match {
        if (group == "net.minecraft") useLicense {
            name = "Minecraft"
            description = "Minecraft - The critically acclaimed video game"
            license("All Rights Reserved", "https://www.minecraft.net/en-us/eula")
            developer("Mojang") {
                webPresence = "https://mojang.com"
            }
            webPresence = "https://www.minecraft.net/en-us"
        }
        if (module == "architectury") useLicense {
            name = "Architectury API"
            description = "An intermediary api aimed at easing development of multiplatform mods."
            spdxLicense.`LGPL-3-0-or-later`()
            developer("Architectury") {
                webPresence = "https://docs.architectury.dev/"
            }
            webPresence = "https://github.com/architectury/architectury-api"
        }
        if (module.startsWith("RoughlyEnoughItems")) useLicense {
            name = module
            description = "Your recipe viewer mod for 1.13+."
            spdxLicense.MIT()
            developer("Shedaniel") {
                webPresence = "https://shedaniel.me/"
            }
            webPresence = "https://github.com/shedaniel/RoughlyEnoughItems"
        }
        if (module == "cloth-config") useLicense {
            name = "Cloth Config"
            description = "Client sided configuration API"
            spdxLicense.`LGPL-3-0-or-later`()
            developer("Shedaniel") {
                webPresence = "https://shedaniel.me/"
            }
            webPresence = "https://github.com/shedaniel/cloth-config"
        }
        if (module == "basic-math") useLicense {
            name = "Cloth BasicMath"
            description = "Basic Math Operations"
            spdxLicense.Unlicense()
            developer("Shedaniel") {
                webPresence = "https://shedaniel.me/"
            }
            webPresence = "https://github.com/shedaniel/cloth-basic-math"
        }
        if (module == "fabric-language-kotlin") useLicense {
            name = "Fabric Language Kotlin"
            description = "Kotlin Language Support for Fabric mods"
            webPresence = "https://github.com/FabricMC/fabric-language-kotlin"
            spdxLicense.`Apache-2-0`()
            developer("FabricMC") {
                webPresence = "https://fabricmc.net/"
            }
        }
        if (group == "com.mojang") useLicense {
            name = module
            description = "Mojang library packaged by Minecraft"
        }
    }
    module("net.fabricmc", "yarn") {
        name = "Yarn"
        description = "Libre Minecraft mappings, free to use for everyone. No exceptions."
        spdxLicense.`CC0-1-0`()
        developer("FabricMC") {
            webPresence = "https://fabricmc.net/"
        }
        webPresence = "https://github.com/FabricMC/yarn/"
    }
    module("com.mojang", "datafixerupper") {
        name = "DataFixerUpper"
        description =
            "A set of utilities designed for incremental building, merging and optimization of data transformations."
        spdxLicense.MIT()
        developer("Mojang") {
            webPresence = "https://mojang.com"
        }
        webPresence = "https://github.com/Mojang/DataFixerUpper"
    }
    module("com.mojang", "brigadier") {
        name = "Brigadier"
        description = "Brigadier is a command parser & dispatcher, designed and developed for Minecraft: Java Edition."
        spdxLicense.MIT()
        developer("Mojang") {
            webPresence = "https://mojang.com"
        }
        webPresence = "https://github.com/Mojang/brigadier"
    }
    module("net.fabricmc", "tiny-remapper") {
        name = "Tiny Remapper"
        description = "Tiny JAR remapping tool"
        spdxLicense.`LGPL-3-0-or-later`()
        webPresence = "https://github.com/FabricMC/tiny-remapper"
        developer("FabricMC") {
            webPresence = "https://fabricmc.net/"
        }
    }
    module("net.fabricmc", "sponge-mixin") {
        name = "Mixin"
        description = "Mixin is a trait/mixin framework for Java using ASM"
        spdxLicense.MIT()
        webPresence = "https://github.com/FabricMC/mixin"
        developer("FabricMC") {
            webPresence = "https://fabricmc.net/"
        }
        developer("SpongePowered") {
            webPresence = "https://spongepowered.org/"
        }
    }
    module("net.fabricmc", "tiny-mappings-parser") {
        name = "Tiny Mappings Parser"
        webPresence = "https://github.com/fabricMC/tiny-mappings-parser"
        description = "Library for parsing .tiny mapping files"
        developer("FabricMC") {
            webPresence = "https://fabricmc.net/"
        }
        spdxLicense.`Apache-2-0`()
    }
    module("net.fabricmc", "fabric-loader") {
        name = "Fabric Loader"
        description = " Fabric's mostly-version-independent mod loader."
        spdxLicense.`Apache-2-0`()
        developer("FabricMC") {
            webPresence = "https://fabricmc.net/"
        }
        webPresence = "https://github.com/FabricMC/fabric-loader/"
    }
}