-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathbuild.gradle.kts
105 lines (89 loc) · 2.68 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
98
99
100
101
102
103
104
105
val mod_id: 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 mod_version: String by extra
val curios_version: String by extra
val caelus_version: String by extra
val elytra_slot_version: String by extra
val jei_version: String by extra
plugins {
id("com.possible-triangle.gradle") version("0.1.4")
}
withKotlin()
forge {
dataGen()
includesMod("com.possible-triangle:flightlib-forge:${flightlib_version}")
}
base {
archivesName.set("$mod_id-forge-$mod_version")
}
repositories {
curseMaven()
localMaven(project)
maven {
url = uri("https://maven.blamejared.com/")
content {
includeGroup("mezz.jei")
}
}
maven {
url = uri("https://maven.tterrag.com/")
content {
includeGroup("com.simibubi.create")
includeGroup("com.jozufozu.flywheel")
includeGroup("com.tterrag.registrate")
}
}
maven {
url = uri("https://maven.theillusivec4.top/")
content {
includeGroup("top.theillusivec4.caelus")
includeGroup("top.theillusivec4.curios")
}
}
maven {
url = uri("https://maven.pkg.github.com/PssbleTrngle/FlightLib")
credentials {
username = env["GITHUB_ACTOR"]
password = env["GITHUB_TOKEN"]
}
content {
includeGroup("com.possible-triangle")
}
}
}
dependencies {
modImplementation("com.tterrag.registrate:Registrate:${registrate_version}")
modImplementation("com.simibubi.create:create-${mc_version}:${create_version}:slim") { isTransitive = false }
modImplementation("com.jozufozu.flywheel:flywheel-forge-${mc_version}:${flywheel_version}")
if (!env.isCI) {
modRuntimeOnly("mezz.jei:jei-${mc_version}:${jei_version}")
// Only here to test jetpack+elytra combination behaviour
modRuntimeOnly("top.theillusivec4.curios:curios-forge:${curios_version}")
modRuntimeOnly("top.theillusivec4.caelus:caelus-forge:${caelus_version}")
modRuntimeOnly("curse.maven:elytra-slot-317716:${elytra_slot_version}")
}
modCompileOnly("com.possible-triangle:flightlib-api:${flightlib_version}")
modCompileOnly("com.possible-triangle:flightlib-forge-api:${flightlib_version}")
}
tasks.withType<Jar> {
exclude("screenshots")
}
enablePublishing {
githubPackages()
}
uploadToCurseforge {
dependencies {
required("create")
}
}
uploadToModrinth {
dependencies {
required("LNytGWDc")
}
syncBodyFromReadme()
}
enableSonarQube()