package Ġcom . github . e ug enes y . scape go at Ċ Ċ import Ġkotlin . test . Test Ċ import Ġkotlin . test . assertNotNull Ċ import Ġkotlin . test . assertTrue Ċ import Ġorg . gradle . api . internal . project . Project Internal Ċ import Ġorg . gradle . test fixtures . Project Builder Ċ Ċ class ĠGradle S cape go at Plugin Test Ġ{ ĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġ` plugin Ġregisters Ġconfiguration `() Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġproject Ġ= ĠProject Builder . builder (). build () ĊĠĠĠĠĠĠĠ Ġproject . plugins . apply (" com . github . e ug enes y . scape go at ") ĊĠĠĠĠĠĠĠ Ġ( project Ġas ĠProject Internal ). evaluate () ĊĊĠĠĠĠĠĠĠ Ġval Ġcfg Ġ= Ġproject . build script . configurations . find ByName (" scala S cape go at Compiler Plugin ") ĊĠĠĠĠĠĠĠ ĠassertNotNull ( cfg , Ġ" Configuration Ġis Ġnot Ġcreated ") ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġ` plugin Ġregisters Ġs cape go at Ġdependency `() Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġproject Ġ= ĠProject Builder . builder (). build () ĊĠĠĠĠĠĠĠ Ġproject . plugins . apply (" com . github . e ug enes y . scape go at ") ĊĠĠĠĠĠĠĠ Ġval Ġext Ġ= Ġproject . extensions . getBy Type ( S cape go at Extension :: class . java ) ĊĠĠĠĠĠĠĠ Ġval Ġs cape go at Ġ= Ġ" com . sk sam uel . scape go at : scal ac - scape go at - plugin _${ ext . scala Version }:${ ext . scape go at Version }" ĊĠĠĠĠĠĠĠ Ġval Ġs cape go at Dependency Ġ= Ġproject . dependencies . create ( scape go at ) ĊĊĠĠĠĠĠĠĠ Ġ( project Ġas ĠProject Internal ). evaluate () ĊĠĠĠĠĠĠĠ Ġval Ġcfg Ġ= Ġproject . build script . configurations . find ByName (" scala S cape go at Compiler Plugin ") ĊĊĠĠĠĠĠĠĠ Ġval Ġcontains Ġ= Ġcfg ?. dependencies ?. contains ( scape go at Dependency ) ĊĠĠĠĠĠĠĠ ĠassertNotNull ( contains , Ġ" Extension Ġdoes Ġnot Ġdefine Ġdependencies Ġin Ġconfiguration ") ĊĠĠĠĠĠĠĠ ĠassertTrue ( contains , Ġ" S cape go at Ġdependency Ġis Ġnot Ġadded ") ĊĠĠĠ Ġ} Ċ } Ċ