3
0
Mirror von https://github.com/ViaVersion/ViaVersion.git synchronisiert 2024-11-19 14:30:16 +01:00

Include api sources in common sources jar

Dieser Commit ist enthalten in:
Nassim Jahnke 2023-11-06 20:04:45 +10:00
Ursprung ffdddeeb0a
Commit 2881fb18e0
8 geänderte Dateien mit 20 neuen und 2 gelöschten Zeilen

Datei anzeigen

@ -33,3 +33,5 @@ dependencies {
java { java {
withJavadocJar() withJavadocJar()
} }
publishShadowJar()

Datei anzeigen

@ -21,8 +21,6 @@ tasks {
} }
} }
publishShadowJar()
fun ShadowJar.configureRelocations() { fun ShadowJar.configureRelocations() {
relocate("com.google.gson", "com.viaversion.viaversion.libs.gson") relocate("com.google.gson", "com.viaversion.viaversion.libs.gson")
relocate("com.github.steveice10.opennbt", "com.viaversion.viaversion.libs.opennbt") relocate("com.github.steveice10.opennbt", "com.viaversion.viaversion.libs.opennbt")

Datei anzeigen

@ -8,3 +8,5 @@ dependencies {
} }
compileOnly(projects.compat.protocolsupportCompat) compileOnly(projects.compat.protocolsupportCompat)
} }
publishShadowJar()

Datei anzeigen

@ -2,3 +2,5 @@ dependencies {
compileOnlyApi(projects.viaversionCommon) compileOnlyApi(projects.viaversionCommon)
compileOnly(libs.bungee) compileOnly(libs.bungee)
} }
publishShadowJar()

Datei anzeigen

@ -14,3 +14,9 @@ dependencies {
java { java {
withJavadocJar() withJavadocJar()
} }
tasks.named<Jar>("sourcesJar") {
from(project(":viaversion-api").sourceSets.main.get().allSource)
}
publishShadowJar()

Datei anzeigen

@ -2,3 +2,5 @@ dependencies {
compileOnlyApi(projects.viaversionCommon) compileOnlyApi(projects.viaversionCommon)
compileOnly(libs.sponge) compileOnly(libs.sponge)
} }
publishShadowJar()

Datei anzeigen

@ -16,10 +16,12 @@ dependencies {
tasks { tasks {
shadowJar { shadowJar {
archiveClassifier.set("")
archiveFileName.set("ViaVersion-${project.version}.jar") archiveFileName.set("ViaVersion-${project.version}.jar")
destinationDirectory.set(rootProject.projectDir.resolve("build/libs")) destinationDirectory.set(rootProject.projectDir.resolve("build/libs"))
} }
sourcesJar { sourcesJar {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
rootProject.subprojects.forEach { subproject -> rootProject.subprojects.forEach { subproject ->
if (subproject == project) return@forEach if (subproject == project) return@forEach
val platformSourcesJarTask = subproject.tasks.findByName("sourcesJar") as? Jar ?: return@forEach val platformSourcesJarTask = subproject.tasks.findByName("sourcesJar") as? Jar ?: return@forEach
@ -29,6 +31,8 @@ tasks {
} }
} }
publishShadowJar()
val branch = rootProject.branchName() val branch = rootProject.branchName()
val baseVersion = project.version as String val baseVersion = project.version as String
val isRelease = !baseVersion.contains('-') val isRelease = !baseVersion.contains('-')

Datei anzeigen

@ -6,3 +6,5 @@ dependencies {
} }
annotationProcessor(libs.velocity) annotationProcessor(libs.velocity)
} }
publishShadowJar()