2023-01-04 01:01:32 +01:00
|
|
|
plugins {
|
|
|
|
id "java-library"
|
|
|
|
id "maven-publish"
|
2024-08-06 17:15:13 +02:00
|
|
|
id "net.raphimc.class-token-replacer" version "1.1.3"
|
2023-01-04 01:01:32 +01:00
|
|
|
}
|
|
|
|
|
2023-09-03 00:49:48 +02:00
|
|
|
base {
|
2024-05-17 17:31:33 +02:00
|
|
|
java.toolchain.languageVersion = JavaLanguageVersion.of(17)
|
2023-09-03 00:49:48 +02:00
|
|
|
compileJava.options.encoding = compileTestJava.options.encoding = javadoc.options.encoding = "UTF-8"
|
2023-01-04 01:01:32 +01:00
|
|
|
|
2023-09-03 00:49:48 +02:00
|
|
|
group = project.maven_group ?: rootProject.maven_group
|
|
|
|
archivesName = project.maven_name ?: rootProject.maven_name
|
|
|
|
version = project.maven_version ?: rootProject.maven_version
|
|
|
|
}
|
2023-01-04 01:01:32 +01:00
|
|
|
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
2024-09-05 01:10:10 +02:00
|
|
|
maven {
|
|
|
|
name = "ViaVersion"
|
|
|
|
url = "https://repo.viaversion.com"
|
|
|
|
}
|
2023-01-04 01:01:32 +01:00
|
|
|
maven {
|
|
|
|
name = "Lenni0451"
|
2024-09-05 01:10:10 +02:00
|
|
|
url = "https://maven.lenni0451.net/everything"
|
2023-04-02 21:21:50 +02:00
|
|
|
}
|
|
|
|
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 {
|
2024-09-05 01:10:10 +02:00
|
|
|
name = "Minecraft Libraries"
|
|
|
|
url = "https://libraries.minecraft.net"
|
|
|
|
|
|
|
|
content {
|
|
|
|
includeGroup "com.mojang"
|
|
|
|
}
|
2023-01-04 01:01:32 +01:00
|
|
|
}
|
2023-07-24 20:57:04 +02:00
|
|
|
maven {
|
2024-09-05 01:10:10 +02:00
|
|
|
name = "Jitpack"
|
|
|
|
url = "https://jitpack.io"
|
|
|
|
|
|
|
|
content {
|
|
|
|
includeGroup "com.github.Oryxel"
|
|
|
|
}
|
2023-07-24 20:57:04 +02:00
|
|
|
}
|
2023-01-04 01:01:32 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2024-08-08 17:52:50 +02:00
|
|
|
compileOnly "com.viaversion:viaversion-common:5.0.4-SNAPSHOT"
|
2024-08-23 15:06:39 +02:00
|
|
|
compileOnly "com.viaversion:viabackwards-common:5.0.4-SNAPSHOT"
|
|
|
|
compileOnly "com.viaversion:viarewind-common:4.0.3-SNAPSHOT"
|
2024-08-05 12:54:30 +02:00
|
|
|
compileOnly "net.raphimc:ViaLegacy:3.0.3-SNAPSHOT"
|
|
|
|
compileOnly "net.raphimc:viaaprilfools-common:3.0.2-SNAPSHOT"
|
2024-08-15 17:15:31 +02:00
|
|
|
compileOnly "net.raphimc:ViaBedrock:0.0.11-SNAPSHOT"
|
2024-04-26 16:47:20 +02:00
|
|
|
compileOnly "org.cloudburstmc.netty:netty-transport-raknet:1.0.0.CR3-SNAPSHOT"
|
2023-01-04 01:01:32 +01:00
|
|
|
|
2024-08-19 17:41:26 +02:00
|
|
|
api "com.google.guava:guava:33.3.0-jre"
|
2024-08-12 17:52:15 +02:00
|
|
|
api "org.slf4j:slf4j-api:2.0.16"
|
2023-01-04 01:01:32 +01:00
|
|
|
}
|
|
|
|
|
2023-09-05 21:28:01 +02:00
|
|
|
sourceSets {
|
|
|
|
main {
|
|
|
|
classTokenReplacer {
|
|
|
|
property("\${version}", project.version)
|
|
|
|
}
|
|
|
|
}
|
2023-01-04 03:33:44 +01:00
|
|
|
}
|
|
|
|
|
2023-01-04 01:01:32 +01:00
|
|
|
java {
|
|
|
|
withSourcesJar()
|
|
|
|
}
|
|
|
|
|
2023-01-04 03:33:44 +01:00
|
|
|
jar {
|
|
|
|
from("LICENSE") {
|
2023-09-03 00:49:48 +02:00
|
|
|
rename { "${it}_${project.name ?: rootProject.name}" }
|
2023-01-04 03:33:44 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
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-06-30 23:56:06 +02:00
|
|
|
|
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
|
2023-06-30 23:56:06 +02:00
|
|
|
|
|
|
|
pom {
|
|
|
|
name = "ViaLoader"
|
|
|
|
description = "Implementation of a ViaVersion based protocol translator platform"
|
|
|
|
url = "https://github.com/ViaVersion/ViaLoader"
|
|
|
|
licenses {
|
|
|
|
license {
|
|
|
|
name = "GPL-3.0 License"
|
|
|
|
url = "https://github.com/ViaVersion/ViaLoader/blob/main/LICENSE"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
developers {
|
|
|
|
developer {
|
|
|
|
id = "RK_01"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
scm {
|
|
|
|
connection = "scm:git:git://github.com/ViaVersion/ViaLoader.git"
|
|
|
|
developerConnection = "scm:git:ssh://github.com/ViaVersion/ViaLoader.git"
|
|
|
|
url = "https://github.com/ViaVersion/ViaLoader.git"
|
|
|
|
}
|
|
|
|
}
|
2023-01-04 01:01:32 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|