summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main/groovy/frege/gradle/FregePlugin.groovy3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/groovy/frege/gradle/FregePlugin.groovy b/src/main/groovy/frege/gradle/FregePlugin.groovy
index 2765a21..07d0ea2 100644
--- a/src/main/groovy/frege/gradle/FregePlugin.groovy
+++ b/src/main/groovy/frege/gradle/FregePlugin.groovy
@@ -6,6 +6,9 @@ import org.gradle.api.Project
class FregePlugin implements Plugin<Project> {
void apply(Project project) {
+ // Workaround to build proper jars on Windows, see https://github.com/Frege/frege-gradle-plugin/issues/9
+ System.setProperty("file.encoding", "UTF-8")
+
project.apply(plugin: 'base')
def e = (FregePluginExtension) project.extensions.create("frege", FregePluginExtension)