ViaLegacy/build.gradle
dependabot[bot] 90c77a3352
Bump org.yaml:snakeyaml from 2.0 to 2.1
Bumps [org.yaml:snakeyaml](https://bitbucket.org/snakeyaml/snakeyaml) from 2.0 to 2.1.
- [Commits](https://bitbucket.org/snakeyaml/snakeyaml/branches/compare/snakeyaml-2.1..snakeyaml-2.0)

---
updated-dependencies:
- dependency-name: org.yaml:snakeyaml
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-07 09:55:14 +00:00

90 lines
2.4 KiB
Groovy

plugins {
id "java-library"
id "maven-publish"
id "net.kyori.blossom" version "1.3.1"
}
java.toolchain.languageVersion = JavaLanguageVersion.of(8)
compileJava.options.encoding = compileTestJava.options.encoding = javadoc.options.encoding = "UTF-8"
group = project.maven_group
archivesBaseName = project.maven_name
version = project.maven_version
repositories {
mavenCentral()
maven {
name = "ViaVersion"
url "https://repo.viaversion.com"
}
}
dependencies {
compileOnly "com.viaversion:viaversion:4.7.1-SNAPSHOT"
compileOnly "org.yaml:snakeyaml:2.1"
compileOnly "com.google.guava:guava:32.1.2-jre"
compileOnly "io.netty:netty-handler:4.1.96.Final"
api "net.lenni0451.mcstructs:text:2.3.0"
}
blossom {
replaceToken("\${version}", project.version, "src/main/java/net/raphimc/vialegacy/ViaLegacy.java")
}
java {
withSourcesJar()
withJavadocJar()
}
jar {
from("LICENSE") {
rename { "${it}_${project.archivesBaseName}" }
}
}
publishing {
repositories {
maven {
name = "Via"
url = "https://repo.viaversion.com/"
credentials(PasswordCredentials)
authentication {
basic(BasicAuthentication)
}
}
}
publications {
maven(MavenPublication) {
groupId = project.maven_group
artifactId = project.maven_name
version = project.maven_version
from components.java
pom {
name = "ViaLegacy"
description = "ViaVersion addon to add support for EVERY Minecraft server version (Classic, Alpha, Beta, Release)"
url = "https://github.com/ViaVersion/ViaLegacy"
licenses {
license {
name = "GPL-3.0 License"
url = "https://github.com/ViaVersion/ViaLegacy/blob/main/LICENSE"
}
}
developers {
developer {
id = "RK_01"
}
}
scm {
connection = "scm:git:git://github.com/ViaVersion/ViaLegacy.git"
developerConnection = "scm:git:ssh://github.com/ViaVersion/ViaLegacy.git"
url = "https://github.com/ViaVersion/ViaLegacy.git"
}
}
}
}
}