Mirror von
https://github.com/ViaVersion/ViaBackwards.git
synchronisiert 2024-12-26 00:00:33 +01:00
Make it build™️
Dieser Commit ist enthalten in:
Ursprung
9a581c534f
Commit
189936ecd2
@ -1,22 +1,19 @@
|
|||||||
import net.kyori.indra.IndraPlugin
|
import com.github.jengelman.gradle.plugins.shadow.ShadowPlugin
|
||||||
import net.kyori.indra.IndraPublishingPlugin
|
|
||||||
import net.kyori.indra.sonatypeSnapshots
|
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
`java-library`
|
`java-library`
|
||||||
`maven-publish`
|
`maven-publish`
|
||||||
id("net.kyori.indra")
|
|
||||||
}
|
}
|
||||||
|
|
||||||
group = "com.viaversion"
|
allprojects {
|
||||||
version = "3.3.0-21w07a"
|
group = "com.viaversion"
|
||||||
description = "Allow older clients to join newer server versions."
|
version = "3.3.0-21w07a"
|
||||||
|
description = "Allow older clients to join newer server versions."
|
||||||
|
}
|
||||||
|
|
||||||
subprojects {
|
subprojects {
|
||||||
apply<JavaLibraryPlugin>()
|
apply<JavaLibraryPlugin>()
|
||||||
apply<MavenPublishPlugin>()
|
apply<MavenPublishPlugin>()
|
||||||
apply<IndraPlugin>()
|
|
||||||
apply<IndraPublishingPlugin>()
|
|
||||||
|
|
||||||
tasks {
|
tasks {
|
||||||
// Variable replacements
|
// Variable replacements
|
||||||
@ -27,7 +24,11 @@ subprojects {
|
|||||||
"url" to "https://github.com/ViaVersion/ViaBackwards")
|
"url" to "https://github.com/ViaVersion/ViaBackwards")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
withType<Javadoc> {
|
||||||
|
options.encoding = Charsets.UTF_8.name()
|
||||||
|
}
|
||||||
withType<JavaCompile> {
|
withType<JavaCompile> {
|
||||||
|
options.encoding = Charsets.UTF_8.name()
|
||||||
options.compilerArgs.addAll(listOf("-nowarn", "-Xlint:-unchecked", "-Xlint:-deprecation"))
|
options.compilerArgs.addAll(listOf("-nowarn", "-Xlint:-unchecked", "-Xlint:-deprecation"))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -42,9 +43,12 @@ subprojects {
|
|||||||
if (platforms.contains(project.name)) {
|
if (platforms.contains(project.name)) {
|
||||||
configureShadowJar()
|
configureShadowJar()
|
||||||
}
|
}
|
||||||
|
if (project.name == "viabackwards") {
|
||||||
|
apply<ShadowPlugin>()
|
||||||
|
}
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
sonatypeSnapshots()
|
maven("https://oss.sonatype.org/content/repositories/snapshots/")
|
||||||
maven("https://hub.spigotmc.org/nexus/content/repositories/snapshots")
|
maven("https://hub.spigotmc.org/nexus/content/repositories/snapshots")
|
||||||
maven("https://nexus.velocitypowered.com/repository/velocity-artifacts-snapshots/")
|
maven("https://nexus.velocitypowered.com/repository/velocity-artifacts-snapshots/")
|
||||||
maven("https://repo.spongepowered.org/maven")
|
maven("https://repo.spongepowered.org/maven")
|
||||||
@ -53,23 +57,34 @@ subprojects {
|
|||||||
mavenLocal()
|
mavenLocal()
|
||||||
}
|
}
|
||||||
|
|
||||||
indra {
|
java {
|
||||||
javaVersions {
|
sourceCompatibility = JavaVersion.VERSION_1_8
|
||||||
target.set(8)
|
targetCompatibility = JavaVersion.VERSION_1_8
|
||||||
testWith(8, 11, 15)
|
withSourcesJar()
|
||||||
}
|
withJavadocJar()
|
||||||
github("ViaVersion", "ViaBackwards") {
|
|
||||||
issues = true
|
|
||||||
}
|
|
||||||
mitLicense()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
publishing.repositories.maven {
|
publishing {
|
||||||
name = "Via"
|
publications {
|
||||||
url = uri("https://repo.viaversion.com/")
|
create<MavenPublication>("mavenJava") {
|
||||||
credentials(PasswordCredentials::class)
|
groupId = rootProject.group as String
|
||||||
authentication {
|
artifactId = project.name
|
||||||
create<BasicAuthentication>("basic")
|
version = rootProject.version as String
|
||||||
|
|
||||||
|
if (plugins.hasPlugin(ShadowPlugin::class.java)) {
|
||||||
|
artifact(tasks["shadowJar"])
|
||||||
|
} else {
|
||||||
|
from(components["java"])
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
repositories.maven {
|
||||||
|
name = "Via"
|
||||||
|
url = uri("https://repo.viaversion.com/")
|
||||||
|
credentials(PasswordCredentials::class)
|
||||||
|
authentication {
|
||||||
|
create<BasicAuthentication>("basic")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -7,7 +7,5 @@ repositories {
|
|||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation("net.kyori", "indra-common", "1.3.1")
|
|
||||||
implementation("net.kyori", "indra-publishing-gradle-plugin", "1.3.1")
|
|
||||||
implementation("com.github.jengelman.gradle.plugins", "shadow", "6.1.0")
|
implementation("com.github.jengelman.gradle.plugins", "shadow", "6.1.0")
|
||||||
}
|
}
|
@ -1,8 +1,5 @@
|
|||||||
import com.github.jengelman.gradle.plugins.shadow.ShadowPlugin
|
|
||||||
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
|
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
|
||||||
|
|
||||||
apply<ShadowPlugin>()
|
|
||||||
|
|
||||||
tasks {
|
tasks {
|
||||||
withType<ShadowJar> {
|
withType<ShadowJar> {
|
||||||
archiveClassifier.set("")
|
archiveClassifier.set("")
|
||||||
@ -25,9 +22,4 @@ tasks {
|
|||||||
build {
|
build {
|
||||||
dependsOn(withType<ShadowJar>())
|
dependsOn(withType<ShadowJar>())
|
||||||
}
|
}
|
||||||
withType<Jar> {
|
|
||||||
if (name == "jar") {
|
|
||||||
archiveClassifier.set("unshaded")
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren