Mirror von
https://github.com/ViaVersion/ViaVersion.git
synchronisiert 2024-12-26 16:12:42 +01:00
Include api sources in common sources jar
Dieser Commit ist enthalten in:
Ursprung
ffdddeeb0a
Commit
2881fb18e0
@ -33,3 +33,5 @@ dependencies {
|
|||||||
java {
|
java {
|
||||||
withJavadocJar()
|
withJavadocJar()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
publishShadowJar()
|
||||||
|
@ -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")
|
||||||
|
@ -8,3 +8,5 @@ dependencies {
|
|||||||
}
|
}
|
||||||
compileOnly(projects.compat.protocolsupportCompat)
|
compileOnly(projects.compat.protocolsupportCompat)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
publishShadowJar()
|
||||||
|
@ -2,3 +2,5 @@ dependencies {
|
|||||||
compileOnlyApi(projects.viaversionCommon)
|
compileOnlyApi(projects.viaversionCommon)
|
||||||
compileOnly(libs.bungee)
|
compileOnly(libs.bungee)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
publishShadowJar()
|
||||||
|
@ -14,3 +14,9 @@ dependencies {
|
|||||||
java {
|
java {
|
||||||
withJavadocJar()
|
withJavadocJar()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
tasks.named<Jar>("sourcesJar") {
|
||||||
|
from(project(":viaversion-api").sourceSets.main.get().allSource)
|
||||||
|
}
|
||||||
|
|
||||||
|
publishShadowJar()
|
||||||
|
@ -2,3 +2,5 @@ dependencies {
|
|||||||
compileOnlyApi(projects.viaversionCommon)
|
compileOnlyApi(projects.viaversionCommon)
|
||||||
compileOnly(libs.sponge)
|
compileOnly(libs.sponge)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
publishShadowJar()
|
||||||
|
@ -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('-')
|
||||||
|
@ -6,3 +6,5 @@ dependencies {
|
|||||||
}
|
}
|
||||||
annotationProcessor(libs.velocity)
|
annotationProcessor(libs.velocity)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
publishShadowJar()
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren