diff --git a/ragconnect.base/build.gradle b/ragconnect.base/build.gradle
index ecc07614df7df5d10e9a2a77a47b8a2923fbbed7..d5420c6dbf3d4b3e4860956fdda9486e5bd2ae4d 100644
--- a/ragconnect.base/build.gradle
+++ b/ragconnect.base/build.gradle
@@ -241,7 +241,8 @@ publishing {
     publications {
         //noinspection GroovyAssignabilityCheck
         maven(MavenPublication) {
-            artifactId = 'ragconnect' as Publication
+            //noinspection GroovyAssignabilityCheck
+            artifactId = 'ragconnect'
             //noinspection GroovyAssignabilityCheck
             from components.java
         }