package Ġru . mobile up . code quality Ċ Ċ import Ġorg . gradle . api . Plugin Ċ import Ġorg . gradle . api . Project Ċ import Ġorg . gradle . api . file . Directory Property Ċ import Ġorg . gradle . api . file . Regular File Property Ċ import Ġorg . gradle . api . model . ObjectFactory Ċ import Ġorg . gradle . api . provider . Property Ċ Ċ open Ġclass ĠCode Quality Extension ( objects : ĠObject Factory ) Ġ{ ĊĠĠĠ Ġval Ġreports Directory : ĠDirectory Property Ġ= Ġobjects . directory Property () ĊĠĠĠ Ġval Ġissues File : ĠRegular File Property Ġ= Ġobjects . file Property () ĊĠĠĠ Ġval Ġcollect Information Issues : ĠProperty < Boolean > Ġ= Ġobjects . property ( Boolean :: class . java ). apply Ġ{ Ġset ( false ) Ġ} Ċ } Ċ Ċ /** Ċ Ġ* ĠCreates Ġtask Ġ" collect Code Quality Issues " Ġthat ĠConverts ĠDet ek t Ġand ĠL int Ġreports Ġto ĠGit lab Ġcompatible Ġformat . Ċ Ġ*/ Ċ class ĠCode Quality Plugin Ġ: ĠPlugin < Project > Ġ{ ĊĊĠĠĠ Ġoverride Ġfun Ġapply ( project : ĠProject ) Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġtask Ġ= Ġproject . tasks . create (" collect Code Quality Issues ", ĠCollect Code Quality Issues Task :: class . java ) ĊĠĠĠĠĠĠĠ Ġval Ġextension Ġ= Ġproject . extensions . create (" code Quality ", ĠCode Quality Extension :: class . java ) ĊĠĠĠĠĠĠĠ Ġtask . input Directory . set ( extension . reports Directory ) ĊĠĠĠĠĠĠĠ Ġtask . outputFile . set ( extension . issues File ) ĊĠĠĠĠĠĠĠ Ġtask . collect Information Issues . set ( extension . collect Information Issues ) ĊĠĠĠ Ġ} Ċ } Ċ