initial gradle build script

currently only compile
and almost half tests fails, but as gradle capabilities demonstration should be enough