diff --git a/build.gradle b/build.gradle index 226b6eb5..5df0ada9 100644 --- a/build.gradle +++ b/build.gradle @@ -125,3 +125,12 @@ jar { includeEmptyDirs = false exclude 'com/demo/**' } +if (version.endsWith('-SNAPSHOT')) { + nexusPublishing { + repositories { + sonatype { + nexusUrl = uri("https://s01.oss.sonatype.org/service/local/") + } + } + } +}