plugins Ġ{ ĊĠĠĠ Ġid (" com . android . library ") ĊĠĠĠ Ġid (" maven ") ĊĠĠĠ Ġid (" com . github . dc end ents . android - maven ") Ċ } Ċ Ċ group Ġ= Ġ" com . hu ya . rx java 2 " Ċ Ċ android Ġ{ ĊĠĠĠ Ġcompile Sdk Version ( 2 9 ) ĊĠĠĠ Ġbuild Tools Version (" 2 9 . 0 . 3 ") ĊĊĠĠĠ Ġdefault Config Ġ{ ĊĠĠĠĠĠĠĠ Ġmin Sdk Version ( 1 4 ) ĊĠĠĠĠĠĠĠ Ġtarget Sdk Version ( 2 9 ) ĊĊĠĠĠĠĠĠĠ Ġcompile Options Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġsource Compatibility Ġ= ĠJava Version . VERSION _ 1 _ 8 ĊĠĠĠĠĠĠĠĠĠĠĠ Ġtarget Compatibility Ġ= ĠJava Version . VERSION _ 1 _ 8 ĊĠĠĠĠĠĠĠ Ġ} ĊĊĠĠĠĠĠĠĠ Ġmulti Dex Enabled Ġ= Ġtrue ĊĠĠĠ Ġ} Ċ } Ċ Ċ dependencies Ġ{ ĊĠĠĠ Ġapi ( project (": scheduler - suppress ")) ĊĊĠĠĠ Ġcompile Only (" io . reactivex . rx java 2 : rx android : 2 . 1 . 1 ") ĊĠĠĠ Ġcompile Only (" io . reactivex . rx java 2 : rx java : 2 . 2 . 1 9 ") Ċ } Ċ Ċ dependencies Ġ{ ĊĠĠĠ Ġandroid . default Config . test Instrumentation Runner Ġ= Ġ" android x . test . runner . Android JUnit Runner " ĊĠĠĠ Ġandroid Test Implementation (" android x . test : core : 1 . 2 . 0 ") ĊĠĠĠ Ġandroid Test Implementation (" android x . test : runner : 1 . 2 . 0 ") ĊĠĠĠ Ġandroid Test Implementation (" android x . test : rules : 1 . 2 . 0 ") ĊĠĠĠ Ġandroid Test Implementation (" android x . test . ext : junit : 1 . 1 . 1 ") ĊĠĠĠ Ġandroid Test Implementation (" android x . test . espress o : espress o - core : 3 . 2 . 0 ") ĊĠĠĠ Ġandroid Test Implementation (" junit : junit : 4 . 1 2 ") ĊĠĠĠ Ġandroid Test Implementation (" org . hamcrest : hamcrest - library : 1 . 3 ") ĊĠĠĠ Ġandroid Test Implementation (" io . reactivex . rx java 2 : rx android : 2 . 1 . 1 ") ĊĠĠĠ Ġandroid Test Implementation (" io . reactivex . rx java 2 : rx java : 2 . 2 . 1 9 ") Ċ } Ċ Ċ tasks Ġ{ ĊĠĠĠ Ġval Ġsources Jar Ġ= Ġcreate < Jar >(" sources Jar ") Ġ{ ĊĠĠĠĠĠĠĠ Ġclassifier Ġ= Ġ" sources " ĊĠĠĠĠĠĠĠ Ġfrom ( android . source Sets . named (" main "). get (). java . src Dirs ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġartifacts Ġ{ ĊĠĠĠĠĠĠĠ Ġarch ives ( sources Jar ) ĊĠĠĠ Ġ} Ċ }