-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
49 lines (39 loc) · 1.34 KB
/
build.gradle.kts
File metadata and controls
49 lines (39 loc) · 1.34 KB
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
import me.modmuss50.mpp.ReleaseType
plugins {
alias(libs.plugins.multimod)
}
group = properties["maven_group"] as String
version = properties["version"] as String
multimod {
id = properties["mod_id"] as String
name = properties["mod_name"] as String
description = properties["mod_description"] as String
archivesBaseName = properties["archives_base_name"] as String
minecraft {
minecraft = libs.minecraft
}
neoForgeVersion = libs.versions.neoforge
modPublishing {
base {
changelog = file("CHANGELOG.md").readText()
type = ReleaseType.of(properties["release_type"] as String)
}
modrinth {
accessToken = providers.gradleProperty("MODRINTH_API_TOKEN")
projectId = properties["modrinth_project_id"] as String
minecraftVersions.addAll(libs.versions.minecraft.release.get().split(","))
}
github {
accessToken = providers.gradleProperty("GITHUB_API_PUBLISH_TOKEN")
repository = properties["github_repository"] as String
commitish = properties["git_branch"] as String
}
}
publishing {
maven {
name = "eclipseisoffline"
url = uri("https://maven.eclipseisoffline.xyz/releases")
credentials(PasswordCredentials::class)
}
}
}