plugins {
	// Javadoc linking requires repositories to bet configured. And
	// those are declared in common-conventions, hence we add it here.
	id 'org.minidns.common-conventions'
}


tasks.withType(Javadoc) {
	// The '-quiet' as second argument is actually a hack,
	// since the one parameter addStringOption doesn't seem to
	// work, we extra add '-quiet', which is added anyway by
	// gradle.
	// We disable 'missing' as we do most of javadoc checking via checkstyle.
	options.addStringOption('Xdoclint:all,-missing', '-quiet')
	// Abort on javadoc warnings.
	// See JDK-8200363 (https://bugs.openjdk.java.net/browse/JDK-8200363)
	// for information about the -Xwerror option.
	options.addStringOption('Xwerror', '-quiet')
	options.addStringOption('-release', javaMajor)
}

tasks.withType(Javadoc) {
	options.charSet = "UTF-8"
}
