I want to change the h2 port from the default value to a custom value. The code is as follows:
build.gradle file :
node {
    name "O=A,P=B,Q=C"
    advertisedServices = []
    p2pPort 10108
    rpcPort 10109
    webPort 10110
    h2Port 50002
    cordapps = [
            "com.template:states-and-contracts:$version",
            "com.template:other-sources:$version",
            "net.corda:corda-finance:$corda_release_version"
    ]
    rpcUsers = [[ user: "edureka_user", "password": "12345678", "permissions": ["ALL"]]]
}
Main File:
startNode(providedName = CordaX500Name("O", "P", "Q"), rpcUsers = listOf(user),customOverrides = mapOf("h2Port" to 50002))
node.conf file:
 h2port=50002
myLegalName="O=A,P=B,Q=C"
networkMapService {
    address="localhost:10102"
    legalName="O=A,P=B,Q=C"
}
p2pAddress="localhost:10108"
rpcAddress="localhost:10109"
rpcUsers=[
    {
        password=12345678
        permissions=[
            ALL
        ]
        user=edureka_user
    }
]
webAddress="localhost:10110"
It is working fine via Command prompt but not when I use IntelliJ. Please help