-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.gradle.kts
97 lines (80 loc) · 2.54 KB
/
build.gradle.kts
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
val mod_id: String by extra
val mod_version: String by extra
val mc_version: String by extra
val registrate_version: String by extra
val create_version: String by extra
val flywheel_version: String by extra
val flightlib_version: String by extra
val curios_version: String by extra
val caelus_version: String by extra
val jei_version: String by extra
val emi_version: String by extra
val night_config_version: String by extra
val trinkets_version: String by extra
val cca_version: String by extra
plugins {
id("com.possible-triangle.gradle") version ("0.1.4")
}
withKotlin()
fabric {
dataGen()
includesMod("com.possible-triangle:flightlib-fabric:${flightlib_version}")
}
base {
archivesName.set("$mod_id-fabric-$mod_version")
}
repositories {
apply(from = "https://raw.githubusercontent.com/PssbleTrngle/GradleHelper/main/repositories/create-fabric.build.kts")
curseMaven()
modrinthMaven()
localMaven(project)
maven {
url = uri("https://maven.blamejared.com/")
content {
includeGroup("mezz.jei")
}
}
maven {
url = uri("https://maven.pkg.github.com/PssbleTrngle/FlightLib")
credentials {
username = env["GITHUB_ACTOR"]
password = env["GITHUB_TOKEN"]
}
content {
includeGroup("com.possible-triangle")
}
}
maven {
url = uri("https://maven.ladysnake.org/releases")
content {
includeGroup("dev.onyxstudios.cardinal-components-api")
}
}
}
dependencies {
modApi("com.simibubi.create:create-fabric-${mc_version}:${create_version}")
modApi("dev.emi:trinkets:${trinkets_version}")
// Should be included with trinkets but is not available at runtime somehow
modCompileOnly("dev.onyxstudios.cardinal-components-api:cardinal-components-base:${cca_version}")
modCompileOnly("dev.onyxstudios.cardinal-components-api:cardinal-components-entity:${cca_version}")
if (!env.isCI) {
modRuntimeOnly("mezz.jei:jei-${mc_version}-fabric:${jei_version}")
modRuntimeOnly("dev.emi:emi-fabric:${emi_version}")
//modRuntimeOnly("com.electronwill.night-config:core:${night_config_version}")
//modRuntimeOnly("com.electronwill.night-config:toml:${night_config_version}")
}
modCompileOnly("com.possible-triangle:flightlib-api:${flightlib_version}")
}
enablePublishing {
githubPackages()
}
uploadToCurseforge {
dependencies {
required("create-fabric")
}
}
uploadToModrinth {
dependencies {
required("Xbc0uyRg")
}
}