Skip to content

Gradle

Organizing different repositories and environmental variables

Organizing different publishing libraries should be straightforward in the build.gradle in situations where you might pubish to a snapshot repository vs a release repository.

In the following build.gradle, note that I can simply change the publishRepository to releasesRepository and the artifact will be published accordingly. I don't yet have a sexy solution for having the "SNAPSHOT" at the end of the version, but I will report back if I streamline that further.