package com.jdroid.gradle.java

import com.jdroid.gradle.commons.JavaBaseGradlePlugin
import org.gradle.api.Project

public class JavaGradlePlugin extends JavaBaseGradlePlugin {

	public void apply(Project project) {
		super.apply(project)

		project.apply plugin: 'java'

		project.compileJava {
			sourceCompatibility getJavaSourceCompatibility()
			targetCompatibility getJavaTargetCompatibility()
		}
	}

	protected Class<? extends JavaGradleExtension> getExtensionClass() {
		return JavaGradleExtension.class;
	}
}
package com.jdroid.gradle.java

import com.jdroid.gradle.commons.JavaBaseGradlePlugin
import org.gradle.api.Project

public class JavaGradlePlugin extends JavaBaseGradlePlugin {

	public void apply(Project project) {
		super.apply(project)

		project.apply plugin: 'java'

		project.compileJava {
			sourceCompatibility getJavaSourceCompatibility()
			targetCompatibility getJavaTargetCompatibility()
			options.encoding = 'UTF-8'
		}
	}

	protected Class<? extends JavaGradleExtension> getExtensionClass() {
		return JavaGradleExtension.class;
	}
}
Add UTF-8 encoding to compile
Add UTF-8 encoding to compile
