From 10dd4afc19c81a9ea3407650b0bbab1162951153 Mon Sep 17 00:00:00 2001 From: Tofaa <82680183+Tofaa2@users.noreply.github.com> Date: Sat, 17 Feb 2024 22:00:52 +0400 Subject: [PATCH] Update build.gradle --- build.gradle | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/build.gradle b/build.gradle index d1af2a5..f5b07d2 100644 --- a/build.gradle +++ b/build.gradle @@ -7,10 +7,10 @@ plugins { allprojects { project.ext.adventureVersion = '4.15.0' - project.ext.adventureDependencies=["net.kyori:adventure-api:${adventureVersion}", - "net.kyori:adventure-text-serializer-gson:${adventureVersion}", - "net.kyori:adventure-text-serializer-legacy:${adventureVersion}", - "net.kyori:adventure-nbt:${adventureVersion}"] + project.ext.adventureDependencies = ["net.kyori:adventure-api:${adventureVersion}", + "net.kyori:adventure-text-serializer-gson:${adventureVersion}", + "net.kyori:adventure-text-serializer-legacy:${adventureVersion}", + "net.kyori:adventure-nbt:${adventureVersion}"] apply plugin: 'java' apply plugin: 'java-library' @@ -21,6 +21,11 @@ allprojects { java.sourceCompatibility = JavaVersion.VERSION_1_8 java.targetCompatibility = JavaVersion.VERSION_1_8 + java { + withSourcesJar() + withJavadocJar() + } + repositories { mavenCentral() @@ -43,10 +48,10 @@ allprojects { publishing { publications { - mavenJava(MavenPublication) { - groupId = project.group // Group instance of your project - artifactId = project.name - version = project.version // Version instance of your project + maven(MavenPublication) { + groupId project.group + artifactId project.name + version project.version from components.java } }