Skip to content

Commit 6b98586

Browse files
committed
Project Essentials dependencies added to build.gradle.
Signed-off-by: Pavel Erokhin (MairwunNx) <[email protected]>
1 parent 93f917e commit 6b98586

File tree

2 files changed

+44
-16
lines changed

2 files changed

+44
-16
lines changed

build.gradle

Lines changed: 43 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,16 @@ buildscript {
2222
}
2323
}
2424

25+
plugins {
26+
id "maven"
27+
}
28+
2529
apply(plugin: "net.minecraftforge.gradle")
2630
apply(plugin: "kotlin")
2731
apply(plugin: "kotlinx-serialization")
2832

33+
String packagesToken = new String(package_public_token.decodeBase64())
34+
2935
version = module_version
3036
group = "com.mairwunnx.$module_id"
3137
archivesBaseName = module_name
@@ -70,10 +76,46 @@ repositories {
7076
mavenCentral()
7177
maven { url("https://minecraft.curseforge.com/api/maven/") }
7278
maven { url("https://libraries.minecraft.net") }
73-
maven { url("https://jitpack.io") }
79+
maven {
80+
name = "GitHubPackages"
81+
url = uri "https://maven.pkg.github.com/projectessentials/projectessentials-core"
82+
credentials {
83+
username = "[email protected]"
84+
password = packagesToken
85+
}
86+
}
87+
maven {
88+
name = "GitHubPackages"
89+
url = uri "https://maven.pkg.github.com/projectessentials/projectessentials-permissions"
90+
credentials {
91+
username = "[email protected]"
92+
password = packagesToken
93+
}
94+
}
95+
maven {
96+
name = "GitHubPackages"
97+
url = uri "https://maven.pkg.github.com/ProjectEssentials/ProjectEssentials-Cooldown"
98+
credentials {
99+
username = "[email protected]"
100+
password = packagesToken
101+
}
102+
}
103+
maven {
104+
name = "GitHubPackages"
105+
url = uri "https://maven.pkg.github.com/ProjectEssentials/ProjectEssentials-Home"
106+
credentials {
107+
username = "[email protected]"
108+
password = packagesToken
109+
}
110+
}
74111
}
75112

76113
dependencies {
114+
implementation 'com.mairwunnx.project_essentials_core:ProjectEssentials-Core:1.14.4-1.3.0'
115+
implementation 'com.mairwunnx.project_essentials_permissions:ProjectEssentials-Permissions:1.14.4-1.2.1'
116+
implementation 'com.mairwunnx.project_essentials_cooldown:ProjectEssentials-Cooldown:1.14.4-1.0.4'
117+
implementation 'com.mairwunnx.project_essentials_home:ProjectEssentials-Home:1.14.4-1.2.0'
118+
77119
minecraft(group: "net.minecraftforge", name: "forge", version: forge_version)
78120
compile(group: "com.mojang", name: "brigadier", version: brigadier_version)
79121
compile(
@@ -86,21 +128,6 @@ dependencies {
86128
name: "kotlin-stdlib-$kotlin_jdk_version_target",
87129
version: kotlin_version
88130
)
89-
compile(
90-
group: "com.github.projectessentials",
91-
name: "ProjectEssentials-Permissions",
92-
version: ess_perm_version
93-
)
94-
compile(
95-
group: "com.github.projectessentials",
96-
name: "ProjectEssentials-Core",
97-
version: ess_core_version
98-
)
99-
compile(
100-
group: "com.github.projectessentials",
101-
name: "ProjectEssentials-Cooldown",
102-
version: ess_cooldown_version
103-
)
104131
}
105132

106133
jar {

gradle.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,4 @@ module_version=1.14.4-1.2.0
1717
module_name=Project Essentials Spawn
1818
module_id=project_essentials_spawn
1919
module_vendor=MairwunNx (Pavel Erokhin)
20+
package_public_token=ZDhjMjgyNjlhM2E0ZTQ0MmM2Mjk5ZWI4YmMyZjI0YzNjOTNkMDVkZA==

0 commit comments

Comments
 (0)