Fixed charset

This commit is contained in:
BuildTools 2020-11-17 15:22:15 +00:00
parent 3362f4d772
commit 19f8d9330c
4 changed files with 13 additions and 19 deletions

1
.gitignore vendored
View File

@ -14,7 +14,6 @@ bin/
# Gradle
.gradle
**/build/
/buildSrc/
!src/**/build/
.gradletasknamecache
!gradle-wrapper.jar

View File

@ -1,3 +1,5 @@
import org.gradle.api.tasks.compile.JavaCompile
plugins {
id 'com.github.johnrengelman.shadow' version '5.2.0'
id 'java'
@ -49,7 +51,12 @@ jar {
archiveFileName = findProperty("plugin-name") + " v" + findProperty("version") + " " + "unshaded" + ".jar"
}
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
compileJava.dependsOn clean
build.dependsOn shadowJar
description = 'EcoEnchants'
compileJava.options.encoding = 'UTF-8'

View File

@ -93,6 +93,11 @@ allprojects {
url 'https://repo.extendedclip.com/content/repositories/placeholderapi/'
}
}
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
compileJava.options.encoding = 'UTF-8'
}
group = 'com.willfp.ecoenchants'
@ -106,8 +111,4 @@ publishing {
from(components.java)
}
}
}
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
}

View File

@ -1,13 +0,0 @@
/*
* This file was generated by the Gradle 'init' task.
*/
plugins {
// Support convention plugins written in Groovy. Convention plugins are build scripts in 'src/main' that automatically become available as plugins in the main build.
id 'groovy-gradle-plugin'
}
repositories {
// Use the plugin portal to apply community plugins in convention plugins.
gradlePluginPortal()
}