You can configure different properties for this as long as you get them to the correct location by the time the publish tasks run. From the plugin publishing docs:
It is common practice to copy and paste the text into your $HOME/.gradle/gradle.properties file, but you can also place it in any other valid location. All that the plugin requires is that
gradle.publish.secret are available as project properties when the appropriate Plugin Portal tasks are executed.
It technically will change things a little bit for everyone you want to share with, but I think that’s actually a good thing so that no one accidentally publishes a non-Hibernate project with the Hibernate shared credentials.
Put something like this in your
build.gradle and tell your publishers to set those values as
ext.gradle.publish.key = project.findProperty('hibernate.gradle.publish.key')
ext.gradle.publish.secret = project.findProperty('hibernate.gradle.publish.secret')