Skip to content

Commit 4149631

Browse files
committed
Dependencies updated.
Signed-off-by: Pavel Erokhin (MairwunNx) <[email protected]>
1 parent c7a4ea1 commit 4149631

File tree

4 files changed

+63
-4
lines changed

4 files changed

+63
-4
lines changed

build.gradle

Lines changed: 62 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,19 @@ buildscript {
2525
}
2626
}
2727

28+
plugins {
29+
id "maven-publish"
30+
id "java-library"
31+
id 'maven'
32+
}
33+
2834
apply(plugin: "org.jetbrains.dokka")
2935
apply(plugin: "net.minecraftforge.gradle")
3036
apply(plugin: "kotlin")
3137
apply(plugin: "kotlinx-serialization")
3238

39+
String packagesToken = new String(package_public_token.decodeBase64())
40+
3341
version = module_version
3442
group = "com.mairwunnx.$module_id"
3543
archivesBaseName = module_name
@@ -73,18 +81,37 @@ repositories {
7381
jcenter()
7482
mavenCentral()
7583
maven { url("https://libraries.minecraft.net") }
84+
maven { url("https://jitpack.io") }
85+
maven {
86+
name = "GitHubPackages"
87+
url = uri "https://maven.pkg.github.com/projectessentials/projectessentials-core"
88+
credentials {
89+
username = "[email protected]"
90+
password = packagesToken
91+
}
92+
}
93+
maven {
94+
name = "GitHubPackages"
95+
url = uri "https://maven.pkg.github.com/projectessentials/projectessentials-permissions"
96+
credentials {
97+
username = "[email protected]"
98+
password = packagesToken
99+
}
100+
}
76101
}
77102

78103
dependencies {
79-
implementation fileTree(dir: 'libs', include: ['*.jar'])
104+
implementation 'com.mairwunnx.project_essentials_core:ProjectEssentials-Core:1.14.4-1.3.0'
105+
implementation 'com.mairwunnx.project_essentials_permissions:ProjectEssentials-Permissions:1.14.4-1.2.1'
106+
80107
minecraft(group: "net.minecraftforge", name: "forge", version: forge_version)
81-
compile(group: "com.mojang", name: "brigadier", version: brigadier_version)
82-
compile(
108+
implementation(group: "com.mojang", name: "brigadier", version: brigadier_version)
109+
implementation(
83110
group: "org.jetbrains.kotlinx",
84111
name: "kotlinx-serialization-runtime",
85112
version: kotlinx_serialization_version
86113
)
87-
compile(
114+
implementation(
88115
group: "org.jetbrains.kotlin",
89116
name: "kotlin-stdlib-$kotlin_jdk_version_target",
90117
version: kotlin_version
@@ -119,3 +146,34 @@ sourceCompatibility = targetCompatibility =
119146
compileKotlin.kotlinOptions.jvmTarget =
120147
compileTestKotlin.kotlinOptions.jvmTarget = project_jvm_version_target
121148

149+
task sourcesJar(type: Jar) {
150+
classifier = 'sources'
151+
from sourceSets.main.allSource
152+
}
153+
154+
task dokkaJar(type: Jar) {
155+
group = JavaBasePlugin.DOCUMENTATION_GROUP
156+
description = "Assembles Kotlin docs with Dokka"
157+
classifier = "javadoc"
158+
from tasks.dokka as Object
159+
}
160+
161+
publishing {
162+
repositories {
163+
maven {
164+
name = "GitHubPackages"
165+
url = uri "https://maven.pkg.github.com/projectessentials/projectessentials-cooldown"
166+
credentials {
167+
username = System.getenv("GradleUser")
168+
password = System.getenv("GradlePass")
169+
}
170+
}
171+
}
172+
publications {
173+
gpr(MavenPublication) {
174+
from components.java
175+
artifact sourcesJar
176+
artifact dokkaJar
177+
}
178+
}
179+
}

gradle.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,4 @@ module_version=1.14.4-1.0.4
1818
module_name=Project Essentials Cooldown
1919
module_id=project_essentials_cooldown
2020
module_vendor=MairwunNx (Pavel Erokhin)
21+
package_public_token=ZDhjMjgyNjlhM2E0ZTQ0MmM2Mjk5ZWI4YmMyZjI0YzNjOTNkMDVkZA==
-68.3 KB
Binary file not shown.
-890 KB
Binary file not shown.

0 commit comments

Comments
 (0)