Running with Redirects
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
plugins {
|
||||
id 'java'
|
||||
id 'com.gradleup.shadow' version '8.3.5'
|
||||
}
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
maven {
|
||||
url = "https://libraries.minecraft.net"
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
compileOnly "com.mojang:brigadier:${brigadier_version}"
|
||||
compileOnly "net.kyori:adventure-api:${adventure_version}"
|
||||
compileOnly "net.kyori:adventure-text-serializer-json:${adventure_version}"
|
||||
compileOnly "net.kyori:adventure-text-minimessage:${adventure_version}"
|
||||
|
||||
compileOnly("org.slf4j:slf4j-api:$slf4j_version")
|
||||
|
||||
compileOnly("com.google.code.gson:gson:${gson_version}")
|
||||
|
||||
implementation "de.themoep:minedown-adventure:${minedown_version}"
|
||||
}
|
||||
|
||||
def targetJavaVersion = 21
|
||||
tasks.withType(JavaCompile).configureEach {
|
||||
// ensure that the encoding is set to UTF-8, no matter what the system default is
|
||||
// this fixes some edge cases with special characters not displaying correctly
|
||||
// see http://yodaconditions.net/blog/fix-for-java-file-encoding-problems-with-gradle.html
|
||||
// If Javadoc is generated, this must be specified in that task too.
|
||||
it.options.encoding = "UTF-8"
|
||||
if (targetJavaVersion >= 10 || JavaVersion.current().isJava10Compatible()) {
|
||||
it.options.release.set(targetJavaVersion)
|
||||
}
|
||||
}
|
||||
|
||||
shadowJar {
|
||||
relocate("de.themoep.minedown.adventure", "io.github.skippyall.minedown")
|
||||
}
|
||||
Reference in New Issue
Block a user