import Ġorg . gradle . gradle build . Build Environment Ċ import Ġorg . gradle . gradle build . test . integration tests . IntegrationTest Ċ import Ġorg . gradle . gradle build . test . integration tests . integration Test Uses Sample Dir Ċ Ċ plugins Ġ{ ĊĠĠĠ Ġgradle build . distribution .` api - java ` Ċ } Ċ Ċ val Ġinte g Test Runtime Resources : ĠConfiguration Ġby Ġconfigurations . creating Ġ{ ĊĠĠĠ Ġis Can Be Resolved Ġ= Ġfalse ĊĠĠĠ Ġis Can Be Cons umed Ġ= Ġfalse Ċ } Ċ val Ġinte g Test Runtime Resources Classpath : ĠConfiguration Ġby Ġconfigurations . creating Ġ{ ĊĠĠĠ Ġextends From ( inte g Test Runtime Resources ) ĊĠĠĠ Ġis Can Be Resolved Ġ= Ġtrue ĊĠĠĠ Ġis Can Be Cons umed Ġ= Ġfalse ĊĠĠĠ Ġattributes Ġ{ ĊĠĠĠĠĠĠĠ Ġ// Ġplay Ġtest Ġapps ĠMUST Ġbe Ġfound Ġas Ġexplo ded Ġdirectory ĊĠĠĠĠĠĠĠ Ġattribute ( Usage . USAGE _ ATTRIBUTE , Ġproject . objects . named ( Usage :: class . java , ĠUsage . JAVA _ RUNTIME )) ĊĠĠĠĠĠĠĠ Ġattribute ( Library Elements . LIBRARY _ ELEMENT S _ ATTRIBUTE , Ġproject . objects . named ( Library Elements :: class . java , ĠLibrary Elements . RESOURCES )) ĊĠĠĠ Ġ} ĊĠĠĠ Ġis Trans itive Ġ= Ġfalse Ċ } Ċ Ċ dependencies Ġ{ ĊĠĠĠ Ġimplementation ( project (": base Services ")) ĊĠĠĠ Ġimplementation ( project (": files ")) ĊĠĠĠ Ġimplementation ( project (": messaging ")) ĊĠĠĠ Ġimplementation ( project (": process Services ")) ĊĠĠĠ Ġimplementation ( project (": logging ")) ĊĠĠĠ Ġimplementation ( project (": worker Processes ")) ĊĠĠĠ Ġimplementation ( project (": core Api ")) ĊĠĠĠ Ġimplementation ( project (": model Core ")) ĊĠĠĠ Ġimplementation ( project (": core ")) ĊĠĠĠ Ġimplementation ( project (": file Collections ")) ĊĠĠĠ Ġimplementation ( project (": snapshots ")) ĊĠĠĠ Ġimplementation ( project (": dependency Management ")) ĊĠĠĠ Ġimplementation ( project (": workers ")) ĊĠĠĠ Ġimplementation ( project (": plugins ")) ĊĠĠĠ Ġimplementation ( project (": platform Base ")) ĊĠĠĠ Ġimplementation ( project (": platform Jvm ")) ĊĠĠĠ Ġimplementation ( project (": language Jvm ")) ĊĠĠĠ Ġimplementation ( project (": language Java ")) ĊĠĠĠ Ġimplementation ( project (": language Scala ")) ĊĠĠĠ Ġimplementation ( project (": testing Base ")) ĊĠĠĠ Ġimplementation ( project (": testing Jvm ")) ĊĠĠĠ Ġimplementation ( project (": javascript ")) ĊĠĠĠ Ġimplementation ( project (": diagnostics ")) ĊĠĠĠ Ġimplementation ( project (": reporting ")) ĊĊĠĠĠ Ġimplementation ( library (" groovy ")) ĊĠĠĠ Ġimplementation ( library (" slf 4 j _ api ")) ĊĠĠĠ Ġimplementation ( library (" gu ava ")) ĊĠĠĠ Ġimplementation ( library (" commons _ lang ")) ĊĠĠĠ Ġimplementation ( library (" inject ")) ĊĊĠĠĠ Ġtest Implementation ( project (": native ")) ĊĠĠĠ Ġtest Implementation ( project (": resources ")) ĊĠĠĠ Ġtest Implementation ( project (": base Services Gro ovy ")) ĊĊĠĠĠ Ġinte g Test Implementation ( library (" ant ")) ĊĠĠĠ Ġinte g Test Runtime Only ( project (": composite Build s ")) ĊĠĠĠ Ġinte g Test Runtime Only ( project (": ide Play ")) ĊĠĠĠ Ġinte g Test Runtime Only ( project (": testing J unit Platform ")) ĊĊĠĠĠ Ġtest Fixtures Api ( project (": platform Base ")) Ġ{ ĊĠĠĠĠĠĠĠ Ġbecause (" Test Ġfixtures Ġexport Ġthe ĠPlatform Ġclass ") ĊĠĠĠ Ġ} ĊĠĠĠ Ġtest Fixtures Api ( test Fixtures ( project (": core "))) ĊĠĠĠ Ġtest Fixtures Api ( test Fixtures ( project (": platform Native "))) ĊĠĠĠ Ġtest Fixtures Api ( test Fixtures ( project (": language Jvm "))) ĊĠĠĠ Ġtest Fixtures Api ( project (": internal Inte g Testing ")) ĊĠĠĠ Ġtest Fixtures Implementation ( project (": process Services ")) ĊĠĠĠ Ġtest Fixtures Implementation ( library (" commons _ io ")) ĊĠĠĠ Ġtest Fixtures Implementation ( library (" commons _ http client ")) ĊĠĠĠ Ġtest Fixtures Implementation ( library (" slf 4 j _ api ")) ĊĠĠĠ Ġtest Fixtures Api ( test Fixtures ( project (": language Scala "))) ĊĠĠĠ Ġtest Fixtures Api ( test Fixtures ( project (": language Java "))) ĊĊĠĠĠ Ġtest Implementation ( test Fixtures ( project (": dependency Management "))) ĊĠĠĠ Ġtest Implementation ( test Fixtures ( project (": diagnostics "))) ĊĠĠĠ Ġtest Implementation ( test Fixtures ( project (": platform Base "))) ĊĊĠĠĠ Ġinte g Test Distribution Runtime Only ( project (": distributions Full ")) ĊĊĠĠĠ Ġtest Runtime Only ( project (": distributions Core ")) Ġ{ ĊĠĠĠĠĠĠĠ Ġbecause (" Tests Ġinstantiate ĠDefault ClassLoader Registry Ġwhich Ġrequires Ġa Ġ' gradle - plugins . properties ' Ġthrough ĠDefault Plugin Module Registry ") ĊĠĠĠ Ġ} ĊĠĠĠ Ġinte g Test Runtime Resources ( test Fixtures ( project (": platform Play "))) Ċ } Ċ Ċ strict Compile Ġ{ ĊĠĠĠ Ġignore Raw Types () Ġ// Ġdeprecated Ġraw Ġtypes ĊĠĠĠ Ġignore De prec ations () Ġ// Ġuses Ġdeprecated Ġsoftware Ġmodel Ġtypes Ċ } Ċ val Ġinte g Test Prepare Ġby Ġtasks . register ing ( IntegrationTest :: class ) Ġ{ ĊĠĠĠ Ġsystem Properties [" org . gradle . inte gtest . exec uter "] Ġ= Ġ" embedded " ĊĠĠĠ Ġif Ġ( Build Environment . is Ci Server ) Ġ{ ĊĠĠĠĠĠĠĠ Ġsystem Properties [" org . gradle . inte gtest . mult iv ersion "] Ġ= Ġ" all " ĊĠĠĠ Ġ} ĊĠĠĠ Ġinclude (" org / gradle / play / prepare /** ") ĊĠĠĠ Ġmax Parallel Fork s Ġ= Ġ 1 Ċ } Ċ Ċ tasks . with Type < IntegrationTest >(). configure Each Ġ{ ĊĠĠĠ Ġif Ġ( name Ġ!= Ġ" inte g Test Prepare ") Ġ{ ĊĠĠĠĠĠĠĠ Ġdepends On ( inte g Test Prepare ) ĊĠĠĠĠĠĠĠ Ġexclude (" org / gradle / play / prepare /** ") ĊĠĠĠĠĠĠĠ Ġ// Ġthis Ġis Ġa Ġworkaround Ġfor Ġwhich Ġwe Ġneed Ġa Ġbetter Ġfix : ĊĠĠĠĠĠĠĠ Ġ// Ġit Ġsets Ġthe Ġplatform Ġplay Ġtest Ġfixtures Ġresources Ġdirectory Ġin Ġfront ĊĠĠĠĠĠĠĠ Ġ// Ġof Ġthe Ġclasspath , Ġso Ġthat Ġwe Ġcan Ġfind Ġthem Ġwhen Ġexecuting Ġtests Ġin ĊĠĠĠĠĠĠĠ Ġ// Ġan Ġexplo ded Ġformat , Ġrather Ġthan Ġfinding Ġthem Ġin Ġthe Ġtest Ġfixtures Ġjar ĊĠĠĠĠĠĠĠ Ġclasspath Ġ= Ġinte g Test Runtime Resources Classpath Ġ+ Ġclasspath ĊĠĠĠ Ġ} Ċ } Ċ Ċ integration Test Uses Sample Dir (" sub projects / platform - play / src / main ") Ċ