Convert maven to gradle build

Here's the build converted to gradle. The maven publishing should still be added but shouldn't be too hard. Unit tests and integration tests are executed as expected.