Skip to content

Commit 6513dbf

Browse files
committed
build.gradle updated. Packages added.
Signed-off-by: Pavel Erokhin (MairwunNx) <MairwunNx@gmail.com>
1 parent 559fb53 commit 6513dbf

File tree

2 files changed

+60
-5
lines changed

2 files changed

+60
-5
lines changed

build.gradle

Lines changed: 60 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,12 @@ 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")
@@ -74,23 +80,41 @@ repositories {
7480
mavenCentral()
7581
maven { url("https://libraries.minecraft.net") }
7682
maven { url("https://jitpack.io") }
83+
maven {
84+
name = "GitHubPackages"
85+
url = uri "https://maven.pkg.github.com/ProjectEssentials/ProjectEssentials-Core"
86+
credentials {
87+
username = "MairwunNx@gmail.com"
88+
password = "bf134b6d9132344ceeafa899f0bcda9be24e307f"
89+
}
90+
}
91+
maven {
92+
name = "GitHubPackages"
93+
url = uri "https://maven.pkg.github.com/ProjectEssentials/ProjectEssentials-Cooldown"
94+
credentials {
95+
username = "MairwunNx@gmail.com"
96+
password = "bf134b6d9132344ceeafa899f0bcda9be24e307f"
97+
}
98+
}
7799
}
78100

79101
dependencies {
80-
implementation fileTree(dir: 'libs', include: ['*.jar'])
102+
implementation 'com.mairwunnx.project_essentials_core:ProjectEssentials-Core:1.14.4-1.3.0'
103+
// implementation 'com.mairwunnx.project_essentials_cooldown:ProjectEssentials-Cooldown:1.15.2-1.0.1'
104+
81105
minecraft(group: "net.minecraftforge", name: "forge", version: forge_version)
82-
compile(group: "com.mojang", name: "brigadier", version: brigadier_version)
83-
compile(
106+
implementation(group: "com.mojang", name: "brigadier", version: brigadier_version)
107+
implementation(
84108
group: "org.jetbrains.kotlinx",
85109
name: "kotlinx-serialization-runtime",
86110
version: kotlinx_serialization_version
87111
)
88-
compile(
112+
implementation(
89113
group: "org.jetbrains.kotlin",
90114
name: "kotlin-stdlib-$kotlin_jdk_version_target",
91115
version: kotlin_version
92116
)
93-
compile(
117+
implementation(
94118
group: "com.github.projectessentials",
95119
name: "ProjectEssentials-Cooldown",
96120
version: ess_cooldown_version
@@ -125,3 +149,34 @@ sourceCompatibility = targetCompatibility =
125149
compileKotlin.kotlinOptions.jvmTarget =
126150
compileTestKotlin.kotlinOptions.jvmTarget = project_jvm_version_target
127151

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

0 commit comments

Comments
 (0)