mirror of
https://github.com/FancyInnovations/FancyPlugins.git
synced 2025-12-06 07:43:36 +00:00
fancydialogs: Add api module
This commit is contained in:
75
plugins/fancydialogs/api/build.gradle.kts
Normal file
75
plugins/fancydialogs/api/build.gradle.kts
Normal file
@@ -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<BasicAuthentication>("basic")
|
||||
}
|
||||
}
|
||||
|
||||
maven {
|
||||
name = "fancyinnovationsSnapshots"
|
||||
url = uri("https://repo.fancyinnovations.com/snapshots")
|
||||
credentials(PasswordCredentials::class)
|
||||
authentication {
|
||||
isAllowInsecureProtocol = true
|
||||
create<BasicAuthentication>("basic")
|
||||
}
|
||||
}
|
||||
}
|
||||
publications {
|
||||
create<MavenPublication>("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()
|
||||
}
|
||||
@@ -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)) }
|
||||
|
||||
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user