|
1 | | -import dex.plugins.outlet.v2.util.ReleaseType |
2 | | - |
3 | 1 | plugins { |
4 | | - id 'fabric-loom' version '1.10-SNAPSHOT' apply false |
5 | | - id 'io.github.dexman545.outlet' version '1.6.1' apply false |
6 | | - id 'com.modrinth.minotaur' version '2.+' apply false |
| 2 | + id 'multiloader-root' |
| 3 | + id 'java' |
| 4 | + id 'net.neoforged.moddev' version "${neoforged_moddev}" apply false |
| 5 | + id 'fabric-loom' version "${fabric_loom}" apply false |
| 6 | + id 'io.papermc.paperweight.userdev' version "${papermc_paperweight_userdev}" apply false |
| 7 | + id 'xyz.jpenilla.run-paper' version "${jpenilla_run_task}" apply false |
| 8 | + id 'com.gradleup.shadow' version "${gradleup_shadow}" apply false |
| 9 | + id 'xyz.jpenilla.resource-factory' version "${jpenilla_resource_factory}" apply false |
| 10 | + id 'io.github.dexman545.outlet' version "${dexman_outlet}" apply false |
| 11 | + id 'com.modrinth.minotaur' version "${modrinth_minotaur}" apply false |
| 12 | + id 'hamburg.janove.elevator-music' version "0.1" |
7 | 13 | } |
8 | 14 |
|
9 | | -allprojects { |
10 | | - group = "top.offsetmonkey538.githubresourcepackmanager" |
11 | | - |
12 | | - repositories { |
13 | | - mavenLocal() |
14 | | - } |
15 | | -} |
| 15 | +//elevatorMusic { |
| 16 | +// if (Boolean.parseBoolean(System.getenv("DISABLE_MUSIC"))) return |
| 17 | +// waitMusic = file("${rootProject.projectDir}/veryImportant/music.wav") |
| 18 | +// successSound = file("${rootProject.projectDir}/veryImportant/done.wav") |
| 19 | +//} |
16 | 20 |
|
17 | 21 | subprojects { |
18 | | - apply plugin: "java" |
19 | | - |
20 | | - archivesBaseName = "github-resourcepack-manager-${project.nameSuffix}" |
21 | | - version = "${project.mod_version}+${project.minecraft_version}" |
22 | | - |
23 | | - java { |
24 | | - withSourcesJar() |
25 | | - } |
| 22 | + apply plugin: "java-library" |
26 | 23 |
|
27 | | - jar { |
28 | | - from("${rootProject.projectDir}/LICENSE") { |
29 | | - rename { "${it}" } |
| 24 | + repositories { |
| 25 | + mavenCentral() |
| 26 | + mavenLocal() |
| 27 | + exclusiveContent { |
| 28 | + forRepository { |
| 29 | + maven { |
| 30 | + name = "OffsetMods538" |
| 31 | + url = "https://maven.offsetmonkey538.top/releases" |
| 32 | + } |
| 33 | + } |
| 34 | + filter { |
| 35 | + includeGroupAndSubgroups "top.offsetmonkey538" |
| 36 | + } |
30 | 37 | } |
31 | 38 | } |
32 | | -} |
33 | 39 |
|
34 | | -configure(subprojects.findAll { it.name != "common" }) { |
35 | | - apply plugin: 'com.modrinth.minotaur' |
36 | | - apply plugin: 'io.github.dexman545.outlet' |
37 | | - |
38 | | - outlet { |
39 | | - mcVersionRange = rootProject.supported_minecraft_versions |
40 | | - allowedReleaseTypes = Set.of(ReleaseType.RELEASE) |
| 40 | + dependencies { |
| 41 | + compileOnlyApi "org.jspecify:jspecify:${rootProject.jspecify_version}" |
41 | 42 | } |
42 | | - |
43 | | - modrinth { |
44 | | - token = System.getenv("MODRINTH_TOKEN") |
45 | | - projectId = "github-resourcepack-manager" |
46 | | - def customVersionName = System.getenv("VERSION_NAME") |
47 | | - if (customVersionName != null) versionName = customVersionName |
48 | | - versionNumber = "${project.version}" |
49 | | - versionType = "alpha" |
50 | | - def isPreRelease = System.getenv("VERSION_IS_PRERELEASE") |
51 | | - versionType = !"false".equals(isPreRelease) ? "beta" : "release" |
52 | | - additionalFiles = [sourcesJar.archiveFile] |
53 | | - gameVersions = outlet.mcVersions() |
54 | | - syncBodyFrom = rootProject.file("README.md").text |
55 | | - def changelogEnv = System.getenv("VERSION_CHANGELOG") |
56 | | - if (changelogEnv != null) changelog = changelogEnv |
57 | | - |
58 | | - dependencies { |
59 | | - embedded.version "mesh-lib", "${project.meshlib_version}" |
60 | | - } |
61 | | - } |
62 | | - tasks.modrinth.dependsOn(tasks.modrinthSyncBody) |
63 | | - |
64 | 43 | } |
0 commit comments