plugins Ġ{ ĊĠĠĠ Ġjava ĊĠĠĠ Ġ` maven - publish ` ĊĠĠĠ Ġid (" org . aj ober star . git - publish ") Ġversion Ġ" 3 . 0 . 0 - rc . 1 " Ċ } Ċ Ċ group Ġ= Ġ" com . int end ia " Ċ version Ġ= Ġ" 1 . 0 - SNAPSHOT " Ċ description Ġ= Ġ" I some tric ĠCity Ġboard Ġin ĠG WT ." Ċ Ċ java . source Compatibility Ġ= ĠJava Version . VERSION _ 1 1 Ċ java . target Compatibility Ġ= ĠJava Version . VERSION _ 1 1 Ċ tasks . with Type < Java Compile > Ġ{ Ġoptions . encoding Ġ= Ġ" UTF - 8 " Ġ} Ċ Ċ repositories Ġ{ ĊĠĠĠ Ġmaven Central () ĊĠĠĠ Ġmaven Ġ{ Ġurl Ġ= Ġuri (" https :// oss . son atype . org / content / repositories / snapshots /") Ġ} ĊĠĠĠ Ġmaven Ġ{ Ġurl Ġ= Ġuri (" https :// oss . son atype . org / content / repositories / google - snapshots /") Ġ} ĊĠĠĠ Ġmaven Ġ{ Ġurl Ġ= Ġuri (" https :// raw . githubusercontent . com / int end ia - oss / rx java - gwt / mvn - repo /") Ġ} ĊĠĠĠ Ġmaven Local () Ċ } Ċ Ċ dependencies Ġ{ ĊĠĠĠ Ġimplementation ( en forced Platform (" com . google . gwt : gwt : HEAD - SNAPSHOT ")) ĊĠĠĠ Ġimplementation (" com . google . gwt : gwt - user ") ĊĠĠĠ Ġimplementation (" com . google . gwt : gwt - dev ") ĊĠĠĠ Ġimplementation (" com . google . element al 2 : element al 2 - dom : 1 . 0 . 0 ") Ċ } Ċ Ċ fun Ġg wt Classpath () Ġ= Ġsource Sets . main . get (). run Ġ{ ĊĠĠĠ Ġfiles ( java . src Dirs , Ġresources . src Dirs , Ġcompile Classpath ) Ċ } Ċ Ċ tasks . register < Java Exec >(" gwt Compile ") Ġ{ ĊĠĠĠ Ġdepends On ( tasks . classes ) ĊĠĠĠ Ġdescription Ġ= Ġ" G WT Ġcompiler " ĊĠĠĠ Ġinputs . files ( gwt Classpath ()) ĊĠĠĠ Ġoutputs . dir ("$ build Dir / gwt Compile / war / is oc ity ") ĊĠĠĠ Ġworking Dir ("$ build Dir / gwt Compile ") ĊĠĠĠ Ġdo First Ġ{ Ġworking Dir . mkdir s () Ġ} ĊĠĠĠ Ġmain Ġ= Ġ" com . google . gwt . dev . Compiler " ĊĠĠĠ Ġclasspath ( gwt Classpath ()) ĊĠĠĠ Ġargs Ġ= ĠlistOf ("- source Level ", Ġ" 1 1 ", Ġ"- draft Compile ", Ġ"- fail OnError ", Ġ" is oc ity . Iso City ") Ċ } Ċ Ċ tasks . assemble Ġ{ ĊĠĠĠ Ġdepends On (" gwt Compile ") Ċ } Ċ Ċ tasks . register < Java Exec >(" gwt Serve ") Ġ{ ĊĠĠĠ Ġdepends On ( tasks . classes ) ĊĠĠĠ Ġdescription Ġ= Ġ" G WT Ġserve " ĊĠĠĠ Ġworking Dir ("$ build Dir / gwt Serve ") ĊĠĠĠ Ġdo First Ġ{ Ġworking Dir . mkdir s () Ġ} ĊĠĠĠ Ġmain Ġ= Ġ" com . google . gwt . dev . Dev Mode " ĊĠĠĠ Ġclasspath ( gwt Classpath ()) ĊĠĠĠ Ġargs Ġ= ĠlistOf ("- source Level ", Ġ" 1 1 ", Ġ"- fail OnError ", Ġ" is oc ity . Iso City ") Ċ } Ċ Ċ git Publish Ġ{ ĊĠĠĠ Ġrepo Uri . set (" git @ github . com : ib aca / is oc ity - gwt . git ") ĊĠĠĠ Ġbranch . set (" gh - pages ") ĊĠĠĠ Ġcontents Ġ{ ĊĠĠĠĠĠĠĠ Ġfrom ( tasks . named (" gwt Compile ")) ĊĠĠĠ Ġ} Ċ } Ċ