Mirror von
https://github.com/ViaVersion/ViaVersion.git
synchronisiert 2024-11-08 17:20:24 +01:00
Include api sources in common sources jar
Dieser Commit ist enthalten in:
Ursprung
ffdddeeb0a
Commit
2881fb18e0
@ -33,3 +33,5 @@ dependencies {
|
||||
java {
|
||||
withJavadocJar()
|
||||
}
|
||||
|
||||
publishShadowJar()
|
||||
|
@ -21,8 +21,6 @@ tasks {
|
||||
}
|
||||
}
|
||||
|
||||
publishShadowJar()
|
||||
|
||||
fun ShadowJar.configureRelocations() {
|
||||
relocate("com.google.gson", "com.viaversion.viaversion.libs.gson")
|
||||
relocate("com.github.steveice10.opennbt", "com.viaversion.viaversion.libs.opennbt")
|
||||
|
@ -8,3 +8,5 @@ dependencies {
|
||||
}
|
||||
compileOnly(projects.compat.protocolsupportCompat)
|
||||
}
|
||||
|
||||
publishShadowJar()
|
||||
|
@ -2,3 +2,5 @@ dependencies {
|
||||
compileOnlyApi(projects.viaversionCommon)
|
||||
compileOnly(libs.bungee)
|
||||
}
|
||||
|
||||
publishShadowJar()
|
||||
|
@ -14,3 +14,9 @@ dependencies {
|
||||
java {
|
||||
withJavadocJar()
|
||||
}
|
||||
|
||||
tasks.named<Jar>("sourcesJar") {
|
||||
from(project(":viaversion-api").sourceSets.main.get().allSource)
|
||||
}
|
||||
|
||||
publishShadowJar()
|
||||
|
@ -2,3 +2,5 @@ dependencies {
|
||||
compileOnlyApi(projects.viaversionCommon)
|
||||
compileOnly(libs.sponge)
|
||||
}
|
||||
|
||||
publishShadowJar()
|
||||
|
@ -16,10 +16,12 @@ dependencies {
|
||||
|
||||
tasks {
|
||||
shadowJar {
|
||||
archiveClassifier.set("")
|
||||
archiveFileName.set("ViaVersion-${project.version}.jar")
|
||||
destinationDirectory.set(rootProject.projectDir.resolve("build/libs"))
|
||||
}
|
||||
sourcesJar {
|
||||
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
|
||||
rootProject.subprojects.forEach { subproject ->
|
||||
if (subproject == project) return@forEach
|
||||
val platformSourcesJarTask = subproject.tasks.findByName("sourcesJar") as? Jar ?: return@forEach
|
||||
@ -29,6 +31,8 @@ tasks {
|
||||
}
|
||||
}
|
||||
|
||||
publishShadowJar()
|
||||
|
||||
val branch = rootProject.branchName()
|
||||
val baseVersion = project.version as String
|
||||
val isRelease = !baseVersion.contains('-')
|
||||
|
@ -6,3 +6,5 @@ dependencies {
|
||||
}
|
||||
annotationProcessor(libs.velocity)
|
||||
}
|
||||
|
||||
publishShadowJar()
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren