plugins Ġ{ ĊĠĠĠ Ġid (" cd m . library - con ventions ") Ċ } Ċ Ċ // ĠMat ches ĠMaven 's Ġ" project . description " Ċ description Ġ= Ġ" The ĠC DM Ġcore Ġpackages ." Ċ Ċ dependencies Ġ{ ĊĠĠĠ Ġimplementation ( platform ( project (": net cdf - java - platform "))) ĊĠĠĠ Ġtest Implementation ( platform ( project (": net cdf - java - testing - platform "))) ĊĊĠĠĠ Ġimplementation ( project (": ud units ")) ĊĊĠĠĠ Ġimplementation ( libs . auto Value Annotations ) ĊĠĠĠ Ġimplementation ( libs . gu ava ) ĊĠĠĠ Ġimplementation ( libs . j command er ) ĊĠĠĠ Ġimplementation ( libs . j dom 2 ) ĊĠĠĠ Ġimplementation ( libs . js r 3 0 5 ) ĊĠĠĠ Ġimplementation ( libs . protobuf Java ) ĊĠĠĠ Ġimplementation ( libs . re 2 j ) ĊĠĠĠ Ġimplementation ( libs . slf 4 j ) ĊĊĠĠĠ Ġannotation Processor ( libs . auto Value ) ĊĊĠĠĠ Ġtest Implementation ( project (": buf r ")) ĊĠĠĠ Ġtest Implementation ( project (": cd m - test - utils ")) ĊĠĠĠ Ġtest Implementation ( project (": grib ")) ĊĊĠĠĠ Ġtest Implementation ( libs . commons Io ) ĊĠĠĠ Ġtest Implementation ( libs . groovy All ) ĊĠĠĠ Ġtest Implementation ( libs . junit ) ĊĠĠĠ Ġtest Implementation ( libs . mockito Core ) ĊĠĠĠ Ġtest Implementation ( libs . sp ock Core ) ĊĠĠĠ Ġtest Implementation ( libs . truth ) ĊĠĠĠ Ġtest Implementation ( libs . truth Java 8 Extension ) ĊĊĠĠĠ Ġtest Runtime Only ( libs . log back Classic ) Ċ Ċ } Ċ Ċ tasks . clean Ġ{ ĊĠĠĠ Ġ// Ġcreated Ġduring Ġtests . ĠCleanup Ġas Ġpart Ġof Ġclean Ġtask . ĊĠĠĠ Ġdelete ( ĊĠĠĠĠĠĠĠ Ġ" src / test / data / compress / test B zip . nc ", ĊĠĠĠĠĠĠĠ Ġ" src / test / data / compress / test Compress . nc ", ĊĠĠĠĠĠĠĠ Ġ" src / test / data / compress / test G zip . nc ", ĊĠĠĠĠĠĠĠ Ġ" src / test / data / compress / test Zip . nc " ĊĠĠĠ Ġ) Ċ } Ċ Ċ tasks . jar Ġ{ ĊĠĠĠ Ġmanifest Ġ{ ĊĠĠĠĠĠĠĠ Ġattributes ( ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ" Main - Class " Ġto Ġ" uc ar . nc 2 . writer . Nc dump ", ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ" Implementation - Title " Ġto Ġ" CD M Ġcore Ġlibrary " ĊĠĠĠĠĠĠĠ Ġ) ĊĠĠĠ Ġ} Ċ } Ċ Ċ tasks . jac oco Test Report Ġ{ ĊĠĠĠ Ġval Ġsource File Tree : ĠConfigur able File Tree Ġ= Ġfile Tree ( source Directories . files ) ĊĠĠĠ Ġval Ġclass File Tree : ĠConfigur able File Tree Ġ= Ġfile Tree ( source Directories . files ) ĊĠĠĠ Ġ// ĠExclude ĠAuto Value Ġgenerated Ġsources Ġand Ġclasses Ġfrom Ġthe Ġcoverage Ġreports ĊĠĠĠ Ġsource Directories . set From ( source File Tree . exclude (" **/ Auto Value _ *. java ")) ĊĠĠĠ Ġclass Directories . set From ( class File Tree . exclude (" **/ Auto Value _ *. class ", Ġ" **/ Auto Value _* $ *. class ")) Ċ }