ViaLoader/build.gradle

74 lines
1.7 KiB
Groovy
Raw Normal View History

2023-01-04 01:01:32 +01:00
plugins {
id "java-library"
id "maven-publish"
2023-01-04 03:33:44 +01:00
id "net.kyori.blossom" version "1.2.0"
2023-01-04 01:01:32 +01:00
}
java.toolchain.languageVersion = JavaLanguageVersion.of(8)
compileJava.options.encoding = "UTF-8"
group = project.maven_group
archivesBaseName = project.maven_name
version = project.maven_version
repositories {
mavenCentral()
maven {
name = "Lenni0451"
url "https://maven.lenni0451.net/releases"
}
maven {
name = "ViaVersion"
url "https://repo.viaversion.com"
}
}
dependencies {
compileOnly "com.viaversion:viaversion:4.5.2-SNAPSHOT"
compileOnly("com.viaversion:viabackwards-common:4.5.2-SNAPSHOT") {
exclude group: "com.viaversion", module: "viaversion"
}
compileOnly "com.viaversion:viarewind-core:2.0.3-SNAPSHOT"
compileOnly "net.raphimc:ViaLegacy:2.0.0"
api "org.slf4j:slf4j-api:2.0.6"
api "org.yaml:snakeyaml:1.33"
}
2023-01-04 03:33:44 +01:00
blossom {
replaceToken("\${version}", project.version, "src/main/java/net/raphimc/viaprotocolhack/ViaProtocolHack.java")
}
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 {
name = "reposilite"
url = "https://maven.lenni0451.net/releases"
credentials(PasswordCredentials)
authentication {
basic(BasicAuthentication)
}
}
}
publications {
maven(MavenPublication) {
groupId = project.maven_group
artifactId = project.maven_name
version = project.maven_version
from components.java
}
}
}