Break the publish build in multiple files.
diff --git a/build.gradle b/build.gradle
index 8c32f0f..3788392 100644
--- a/build.gradle
+++ b/build.gradle
@@ -32,7 +32,6 @@
 version = '6.9.5-SNAPSHOT'
 
 apply plugin: 'java'
-apply from: 'gradle/publishing.gradle'
 
 repositories {
     mavenCentral()
@@ -137,3 +136,5 @@
         }
     }
 }
+
+apply from: 'gradle/publishing.gradle'