Update build.gradle
This commit is contained in:
parent
10e863a029
commit
10dd4afc19
1 changed files with 13 additions and 8 deletions
21
build.gradle
21
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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue