diff --git a/build.gradle b/build.gradle index bf48e2f4..715cbefb 100644 --- a/build.gradle +++ b/build.gradle @@ -1,5 +1,6 @@ plugins { id "fabric-loom" version "1.1-SNAPSHOT" + id "maven-publish" } archivesBaseName = project.archives_base_name @@ -124,3 +125,25 @@ 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.archives_base_name + version = project.mod_version + + from components.java + } + } +} \ No newline at end of file