Update Gradle and change name

This commit is contained in:
Telesphoreo 2022-04-01 00:26:23 -05:00
parent 4afe2e7155
commit 4fa0085192
6 changed files with 55 additions and 54 deletions

View File

@ -1,50 +0,0 @@
plugins {
id "java"
id "maven-publish"
}
repositories {
maven {
url = uri("https://papermc.io/repo/repository/maven-public/")
}
maven {
url = uri("https://nexus.telesphoreo.me/repository/plex")
}
mavenCentral()
}
dependencies {
compileOnly "org.projectlombok:lombok:1.18.22"
annotationProcessor "org.projectlombok:lombok:1.18.22"
compileOnly "io.papermc.paper:paper-api:1.18.2-R0.1-SNAPSHOT"
compileOnly "dev.plex:Plex:0.9"
implementation "LibsDisguises:LibsDisguises:10.0.28"
}
group = "dev.plex"
version = "1.0"
description = "LibsDisguises"
java {
toolchain.languageVersion.set(JavaLanguageVersion.of(17))
}
publishing {
publications {
maven(MavenPublication) {
from(components.java)
}
}
}
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
}
tasks {
javadoc {
options.memberLevel = JavadocMemberLevel.PRIVATE
}
}

51
build.gradle.kts Normal file
View File

@ -0,0 +1,51 @@
plugins {
java
`maven-publish`
}
repositories {
maven {
url = uri("https://papermc.io/repo/repository/maven-public/")
}
maven {
url = uri("https://nexus.telesphoreo.me/repository/plex")
}
mavenCentral()
}
dependencies {
compileOnly("org.projectlombok:lombok:1.18.22")
annotationProcessor("org.projectlombok:lombok:1.18.22")
compileOnly("io.papermc.paper:paper-api:1.18.2-R0.1-SNAPSHOT")
compileOnly("dev.plex:Plex:0.9")
implementation("LibsDisguises:LibsDisguises:10.0.28")
}
group = "dev.plex"
version = "1.0"
description = "Plex-LibsDisguises"
java {
toolchain.languageVersion.set(JavaLanguageVersion.of(17))
}
publishing {
publications {
create<MavenPublication>("maven") {
from(components["java"])
}
}
}
tasks.getByName<Jar>("jar") {
archiveBaseName.set("Plex-LibsDisguises")
archiveVersion.set("")
}
tasks {
javadoc {
options.memberLevel = JavadocMemberLevel.PRIVATE
}
}

View File

@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.2-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

View File

@ -1,2 +0,0 @@
rootProject.name = 'Module-LibsDisguises'

2
settings.gradle.kts Normal file
View File

@ -0,0 +1,2 @@
rootProject.name = "Module-LibsDisguises"

View File

@ -1,4 +1,4 @@
name: LibsDisguises
name: Plex-LibsDisguises
main: dev.plex.LibsDisguises
description: Control LibsDisguises with Plex
version: 1.0