2023-01-04 01:01:32 +01:00
|
|
|
plugins {
|
|
|
|
id "java-library"
|
|
|
|
id "maven-publish"
|
2023-01-04 11:30:26 +01:00
|
|
|
id "net.kyori.blossom" version "1.3.1"
|
2023-01-04 01:01:32 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
java.toolchain.languageVersion = JavaLanguageVersion.of(8)
|
2023-01-04 18:06:49 +01:00
|
|
|
compileJava.options.encoding = compileTestJava.options.encoding = javadoc.options.encoding = "UTF-8"
|
2023-01-04 01:01:32 +01:00
|
|
|
|
|
|
|
group = project.maven_group
|
|
|
|
archivesBaseName = project.maven_name
|
|
|
|
version = project.maven_version
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
maven {
|
|
|
|
name = "Lenni0451"
|
|
|
|
url "https://maven.lenni0451.net/releases"
|
|
|
|
}
|
2023-04-02 21:21:50 +02:00
|
|
|
maven {
|
|
|
|
name = "Lenni0451 Snapshots"
|
|
|
|
url "https://maven.lenni0451.net/snapshots"
|
|
|
|
}
|
|
|
|
maven {
|
|
|
|
name = "OpenCollab Releases"
|
|
|
|
url = "https://repo.opencollab.dev/maven-releases/"
|
|
|
|
}
|
|
|
|
maven {
|
|
|
|
name = "OpenCollab Snapshots"
|
|
|
|
url = "https://repo.opencollab.dev/maven-snapshots/"
|
|
|
|
}
|
2023-01-04 01:01:32 +01:00
|
|
|
maven {
|
|
|
|
name = "ViaVersion"
|
|
|
|
url "https://repo.viaversion.com"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2023-06-09 12:16:10 +02:00
|
|
|
compileOnly "com.viaversion:viaversion:4.7.1-SNAPSHOT"
|
2023-06-18 15:31:28 +02:00
|
|
|
compileOnly("com.viaversion:viabackwards-common:4.7.1-SNAPSHOT") {
|
2023-01-04 01:01:32 +01:00
|
|
|
exclude group: "com.viaversion", module: "viaversion"
|
2023-04-02 21:21:50 +02:00
|
|
|
exclude group: "io.netty", module: "netty-all"
|
2023-01-04 01:01:32 +01:00
|
|
|
}
|
2023-03-23 13:36:15 +01:00
|
|
|
compileOnly "com.viaversion:viarewind-core:2.0.4-SNAPSHOT"
|
2023-06-08 14:00:26 +02:00
|
|
|
compileOnly "net.raphimc:ViaLegacy:2.2.17"
|
|
|
|
compileOnly "net.raphimc:ViaAprilFools:2.0.7"
|
|
|
|
compileOnly "net.raphimc:ViaBedrock:0.0.2-SNAPSHOT"
|
2023-04-02 21:21:50 +02:00
|
|
|
compileOnly "org.cloudburstmc.netty:netty-transport-raknet:1.0.0.CR1-SNAPSHOT"
|
2023-01-04 01:01:32 +01:00
|
|
|
|
2023-03-20 17:10:01 +01:00
|
|
|
api "org.slf4j:slf4j-api:2.0.7"
|
2023-02-28 21:57:34 +01:00
|
|
|
api "org.yaml:snakeyaml:2.0"
|
2023-01-04 01:01:32 +01:00
|
|
|
}
|
|
|
|
|
2023-01-04 03:33:44 +01:00
|
|
|
blossom {
|
2023-05-28 19:19:59 +02:00
|
|
|
replaceToken("\${version}", project.version, "src/main/java/net/raphimc/vialoader/ViaLoader.java")
|
2023-01-04 03:33:44 +01:00
|
|
|
}
|
|
|
|
|
2023-01-04 01:01:32 +01:00
|
|
|
java {
|
|
|
|
withSourcesJar()
|
|
|
|
withJavadocJar()
|
|
|
|
}
|
|
|
|
|
2023-01-04 03:33:44 +01:00
|
|
|
jar {
|
|
|
|
from("LICENSE") {
|
|
|
|
rename { "${it}_${project.archivesBaseName}" }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-01-04 01:01:32 +01:00
|
|
|
publishing {
|
|
|
|
repositories {
|
|
|
|
maven {
|
2023-05-28 19:19:59 +02:00
|
|
|
name = "Via"
|
|
|
|
url = "https://repo.viaversion.com/"
|
2023-01-04 01:01:32 +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
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|