import Ġcom . ad ar shr . gradle . test logger . theme . Theme Type Ċ import Ġme . champ e au . j mh . J MH Plugin Ċ import Ġme . champ e au . j mh . J mh Parameters Ċ import Ġnet . lt gt . gradle . error pr one . error pr one Ċ import Ġorg . gradle . api . artifacts . type . Artifact Type Definition Ċ Ċ plugins Ġ{ ĊĠ Ġid (" ad venture . base - con ventions ") ĊĠ Ġid (" net . ky ori . ind ra . cross doc ") ĊĠ Ġid (" net . ky ori . ind ra ") ĊĠ Ġid (" net . ky ori . ind ra . check style ") ĊĠ Ġid (" net . ky ori . ind ra . license - header ") ĊĠ Ġid (" com . ad ar shr . test - logger ") ĊĠ Ġid (" com . diff plug . eclipse . apt ") ĊĠ Ġid (" net . lt gt . error pr one ") ĊĠ Ġj aco co Ċ } Ċ // Ġexpose Ġversion Ġcatalog Ċ val Ġlibs Ġ= Ġextensions . getBy Type ( org . gradle . access ors . dm . Libraries For Lib s :: class ) Ċ Ċ test logger Ġ{ ĊĠ Ġtheme Ġ= ĠTheme Type . MO CHA _ PAR ALLEL ĊĠ Ġshow Passed Ġ= Ġfalse Ċ } Ċ Ċ plugins . with Id (" me . champ e au . j mh ") Ġ{ ĊĠ Ġextensions . configure ( J mh Parameters :: class ) Ġ{ ĊĠĠĠ Ġj mh Version . set ( libs . versions . j mh . get ()) ĊĠ Ġ} ĊĠ Ġtasks . named (" compile J mh Java ") Ġ{ ĊĠĠĠ Ġ// Ġavoid Ġimplicit Ġtask Ġdependencies ĊĠĠĠ Ġdepends On ( tasks . compile Test Java , Ġtasks . process Test Resources ) ĊĠ Ġ} ĊĠ Ġtasks . named ( J MH Plugin . J MH _ TASK _ COMPILE _ GENERATED _ CLASSES _ NAME , ĠJava Compile :: class ) Ġ{ ĊĠĠĠ Ġclasspath Ġ+= Ġconfigurations . get ByName ( Java Plugin . COMPILE _ CLAS SPATH _ CONFIGURATION _ NAME ). incoming . files ĊĠ Ġ} Ċ } Ċ Ċ configurations Ġ{ ĊĠ Ġtest Compile Classpath Ġ{ ĊĠĠĠ Ġexclude ( group Ġ= Ġ" junit ") Ġ// Ġbrought Ġin Ġby Ġgoogle 's Ġlibs ĊĠ Ġ} Ċ } Ċ Ċ dependencies Ġ{ ĊĠ Ġerror pr one ( libs . error pr one ) ĊĠ Ġannotation Processor ( libs . contract Validator ) ĠĊĠ Ġapi ( platform ( project (": ad venture - bom "))) ĊĠ Ġcheck style ( libs . style check ) ĊĠ Ġtest Implementation ( libs . gu ava . test lib ) ĊĠ Ġtest Implementation ( libs . truth ) ĊĠ Ġtest Implementation ( libs . truth . java 8 ) ĊĠ Ġtest Implementation ( platform ( libs . junit . bom )) ĊĠ Ġtest Implementation ( libs . junit . api ) ĊĠ Ġtest Implementation ( libs . junit . engine ) ĊĠ Ġtest Implementation ( libs . junit . params ) Ċ } Ċ Ċ val ĠAD VENT URE _ PREFIX Ġ= Ġ" ad venture -" Ċ ind ra Cross doc Ġ{ ĊĠ ĠbaseUrl (). set ( providers . gradle Property (" javadoc Publish Root ")) ĊĠ Ġname Based Documentation Url Provider Ġ{ ĊĠĠĠ ĠprojectName Prefix . set ( AD VENT URE _ PREFIX ) ĊĠ Ġ} Ċ } Ċ Ċ tasks Ġ{ ĊĠ Ġjavadoc Ġ{ ĊĠĠĠ Ġval Ġoptions Ġ= Ġoptions Ġas ? ĠStandard Javadoc Doc let Options Ġ?: Ġreturn @ javadoc ĊĠĠĠ Ġoptions . tags (" since Minecraft : a : Since ĠMinecraft :") ĊĠ Ġ} ĊĊĠ Ġj aco co Test Report Ġ{ ĊĠĠĠ Ġdepends On ( test ) ĊĠ Ġ} ĊĠĠĊĠ Ġwith Type ( Java Compile :: class ) Ġ{ ĊĠĠĠ Ġoptions . error pr one Ġ{ ĊĠĠĠĠĠ Ġdisable (" Invalid Block Tag ") Ġ// Ġwe Ġuse Ġcustom Ġblock Ġtags ĊĠĠĠĠĠ Ġdisable (" Inline Me Suggest er ") Ġ// Ġwe Ġdon 't Ġuse Ġerror pr one Ġannotations ĊĠĠĠĠĠ Ġdisable (" Reference Equality ") Ġ// Ġlots Ġof Ġcomparison Ġagainst ĠEMPTY Ġobjects ĊĠĠĠ Ġ} ĊĠ Ġ} Ċ } Ċ