2023-01-03 23:54:35 +01:00
|
|
|
plugins {
|
|
|
|
id "java-library"
|
|
|
|
id "maven-publish"
|
2023-01-04 10:13:40 +01:00
|
|
|
id "net.kyori.blossom" version "1.3.1"
|
2023-01-03 23:54:35 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
java.toolchain.languageVersion = JavaLanguageVersion.of(8)
|
2023-01-04 18:05:23 +01:00
|
|
|
compileJava.options.encoding = compileTestJava.options.encoding = javadoc.options.encoding = "UTF-8"
|
2023-01-03 23:54:35 +01:00
|
|
|
|
|
|
|
group = project.maven_group
|
|
|
|
archivesBaseName = project.maven_name
|
|
|
|
version = project.maven_version
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
maven {
|
|
|
|
name = "ViaVersion"
|
|
|
|
url "https://repo.viaversion.com"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2023-06-18 18:57:02 +02:00
|
|
|
compileOnly "com.viaversion:viaversion:4.7.1-SNAPSHOT"
|
2023-02-27 11:15:00 +01:00
|
|
|
compileOnly "org.yaml:snakeyaml:2.0"
|
2023-06-09 12:06:26 +02:00
|
|
|
compileOnly "com.google.guava:guava:32.0.1-jre"
|
2023-06-21 12:04:42 +02:00
|
|
|
compileOnly "io.netty:netty-handler:4.1.94.Final"
|
2023-02-08 22:40:36 +01:00
|
|
|
|
2023-06-14 12:10:56 +02:00
|
|
|
api "net.lenni0451.mcstructs:text:2.2.6"
|
2023-01-03 23:54:35 +01:00
|
|
|
}
|
|
|
|
|
2023-01-04 03:39:05 +01:00
|
|
|
blossom {
|
|
|
|
replaceToken("\${version}", project.version, "src/main/java/net/raphimc/vialegacy/ViaLegacy.java")
|
|
|
|
}
|
|
|
|
|
2023-01-03 23:54:35 +01:00
|
|
|
java {
|
|
|
|
withSourcesJar()
|
|
|
|
withJavadocJar()
|
|
|
|
}
|
|
|
|
|
2023-01-04 03:39:05 +01:00
|
|
|
jar {
|
|
|
|
from("LICENSE") {
|
|
|
|
rename { "${it}_${project.archivesBaseName}" }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-01-03 23:54:35 +01:00
|
|
|
publishing {
|
|
|
|
repositories {
|
|
|
|
maven {
|
2023-05-28 18:53:41 +02:00
|
|
|
name = "Via"
|
|
|
|
url = "https://repo.viaversion.com/"
|
2023-01-03 23:54:35 +01:00
|
|
|
credentials(PasswordCredentials)
|
|
|
|
authentication {
|
|
|
|
basic(BasicAuthentication)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
publications {
|
|
|
|
maven(MavenPublication) {
|
|
|
|
groupId = project.maven_group
|
|
|
|
artifactId = project.maven_name
|
|
|
|
version = project.maven_version
|
|
|
|
|
|
|
|
from components.java
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|