Gradle设置编码为UTF-8

下面的两部分,分别设置了java及javadoc的编码为UTF-8

build.gradle

	tasks.withType(JavaCompile) {
		options.encoding = 'UTF-8'
	}

	tasks.withType(Javadoc) {
		options.encoding = 'UTF-8'
	}

Leave a Reply

Your email address will not be published. Required fields are marked *

*