diff --git a/build.gradle b/build.gradle
index 1f3842a9176e04578593d30ee81d779f3cea8ae1..54d149dc3b34e3dcc168d3903637281764082fd9 100644
--- a/build.gradle
+++ b/build.gradle
@@ -41,8 +41,8 @@ publishing {
     }
     repositories {
     	ivy {
-			ivyPattern "file://$buildDir/../../ivy-repository/[organisation]/[module]/[revision]/ivy.xml"
-		    artifactPattern "file://$buildDir/../../ivy-repository/[organisation]/[module]/[revision]/[artifact]-[revision](-[classifier]).[ext]"
+			ivyPattern "file://${project.projectDir}/../ivy-repository/[organisation]/[module]/[revision]/ivy.xml"
+		    artifactPattern "file://${project.projectDir}/../ivy-repository/[organisation]/[module]/[revision]/[artifact]-[revision](-[classifier]).[ext]"
 	    }
     }
 }