The root project is a composite build which comprises the Gradle plugin and the framework modules (see includeBuild directive in settings.gradle). So the following command will assemble and test both the plugin and the framework:
./gradlew build
In order to publish artefacts to the local Maven repo, execute the following commands:
./gradlew publishToMavenLocal
./gradlew -b jmix-gradle-plugin/build.gradle publishToMavenLocal
If you want to upload artefacts to a remote repository, set up the following properties in ~/.gradle/gradle.properties:
jmixUploadUrl=<repo_url>
jmixUploadUser=<repo_user>
jmixUploadPassword=<repo_password>
If you are building a *-SNAPSHOT version, the build script will add /snapshots to <repo_url>, otherwise it will add /releases.