Is it possible to use module replacement rules in platform project

I had to specify to following module replacement rule recently in one of our Java projects:

dependencies
{
	// ...
	modules
	{
		module('javax.activation:javax.activation-api')
		{
			replacedBy('jakarta.activation:jakarta.activation-api', 'Moved since Jakarta EE 8, which we depend on.')
		}
	}
}

I was then thinking to move it into a platform project to apply it “globally” to all projects that specify the platform project as a dependency. However, this showed no effect, meaning that I still saw javax.activation:javax.activation-api in the dependency graph instead of jakarta.activation:jakarta.activation-api. Since I couldn’t find whether such rules are actually supported for platform projects, I would like to ask this question here. Or do I miss something?

Thanks!