diff --git a/plugins/fancydialogs/api/build.gradle.kts b/plugins/fancydialogs/api/build.gradle.kts new file mode 100644 index 00000000..7e199753 --- /dev/null +++ b/plugins/fancydialogs/api/build.gradle.kts @@ -0,0 +1,75 @@ +plugins { + id("java-library") + id("maven-publish") + id("com.gradleup.shadow") +} + +val minecraftVersion = "1.21.5" + +dependencies { + compileOnly("io.papermc.paper:paper-api:$minecraftVersion-R0.1-SNAPSHOT") + + compileOnly(project(":libraries:common")) + compileOnly("de.oliver.FancyAnalytics:logger:0.0.6") + + implementation("org.lushplugins:ChatColorHandler:5.1.3") +} + +tasks { + shadowJar { + relocate("org.lushplugins.chatcolorhandler", "com.fancyinnovations.fancydialogs.libs.chatcolorhandler") + + archiveClassifier.set("") + } + + publishing { + repositories { + maven { + name = "fancyinnovationsReleases" + url = uri("https://repo.fancyinnovations.com/releases") + credentials(PasswordCredentials::class) + authentication { + isAllowInsecureProtocol = true + create("basic") + } + } + + maven { + name = "fancyinnovationsSnapshots" + url = uri("https://repo.fancyinnovations.com/snapshots") + credentials(PasswordCredentials::class) + authentication { + isAllowInsecureProtocol = true + create("basic") + } + } + } + publications { + create("maven") { + groupId = "de.oliver" + artifactId = "FancyHolograms" + version = getFDVersion() + from(project.components["java"]) + } + } + } + + java { + withSourcesJar() + withJavadocJar() + } + + javadoc { + options.encoding = Charsets.UTF_8.name() + } + + compileJava { + options.encoding = Charsets.UTF_8.name() + + options.release.set(17) + } +} + +fun getFDVersion(): String { + return file("../VERSION").readText() +} \ No newline at end of file diff --git a/plugins/fancydialogs/build.gradle.kts b/plugins/fancydialogs/build.gradle.kts index 381aab5c..e408f0eb 100644 --- a/plugins/fancydialogs/build.gradle.kts +++ b/plugins/fancydialogs/build.gradle.kts @@ -19,29 +19,31 @@ val supportedVersions = "1.21.5", ) -//allprojects { -// group = "de.oliver" -// version = getFDVersion() -// description = "Simple, lightweight and fast dialog plugin using the new dialog feature" -// -// repositories { -// mavenLocal() -// mavenCentral() -// -// maven(url = "https://repo.papermc.io/repository/maven-public/") -// maven("https://s01.oss.sonatype.org/content/repositories/snapshots/") -// -// maven(url = "https://repo.fancyinnovations.com/snapshots") -// maven(url = "https://repo.fancyinnovations.com/releases") -// maven(url = "https://repo.lushplugins.org/releases") -// maven(url = "https://repo.viaversion.com/") -// maven(url = "https://repo.opencollab.dev/main/") -// } -//} +allprojects { + group = "de.oliver" + version = getFDVersion() + description = "Simple, lightweight and fast dialog plugin using the new dialog feature" + + repositories { + mavenLocal() + mavenCentral() + + maven(url = "https://repo.papermc.io/repository/maven-public/") + maven("https://s01.oss.sonatype.org/content/repositories/snapshots/") + + maven(url = "https://repo.fancyinnovations.com/snapshots") + maven(url = "https://repo.fancyinnovations.com/releases") + maven(url = "https://repo.lushplugins.org/releases") + maven(url = "https://repo.viaversion.com/") + maven(url = "https://repo.opencollab.dev/main/") + } +} dependencies { compileOnly("io.papermc.paper:paper-api:1.21.5-R0.1-SNAPSHOT") + implementation(project(":plugins:fancydialogs:api")) + rootProject.subprojects .filter { it.path.startsWith(":libraries:packets:implementations") } .forEach { implementation(project(it.path)) } diff --git a/settings.gradle.kts b/settings.gradle.kts index 7cd5586e..add73d4a 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -30,6 +30,7 @@ include(":plugins:fancyholograms:implementation_1_19_4") include(":plugins:fancyvisuals") include(":plugins:fancydialogs") +include(":plugins:fancydialogs:api") include(":libraries:common") include(":libraries:jdb")