title: Log4j2 log4j-core
body: <p>I have added spring-boot-starter-log4j2 dependency in pom.xml which is of version 2.2.5. I am trying to change the version of org.apache.logging.log4j.log4j-core from 2.12.1 to 2.13.3
  However, in doing so I am getting runtime exception. I went through other solutions which suggest that maybe log4j jar is included twice. I am unable to solve the error by excluding that also. This runtime exception occurs only when org.apache.logging.log4j.log4j-core version is changed. Changing version of other api included under spring-boot-starter-log4j2 does not cause any exception.
  What am I missing?
  Pom.xml
  ...</p>
  
  <pre><code>  &lt;!-- Add Log4j2 --&gt;
  &lt;dependency&gt;
  &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
  &lt;artifactId&gt;spring-boot-starter-log4j2&lt;/artifactId&gt;
  &lt;/dependency&gt;
  &lt;dependency&gt;
  &lt;groupId&gt;org.apache.logging.log4j&lt;/groupId&gt;
  &lt;artifactId&gt;log4j-core&lt;/artifactId&gt;
  &lt;version&gt;2.13.3&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>...
  Dependency Tree
  <a href="https://i.stack.imgur.com/vrOCt.png" rel="nofollow noreferrer">Dependency Tree</a>
  Runtime Exception
  ...</p>
  
  <pre><code>Exception in thread "main" java.lang.NoSuchMethodError: org.apache.logging.log4j.util.PropertiesUtil.getStringProperty([Ljava/lang/String;Ljava/lang/String;Lorg/apache/logging/log4j/util/Supplier;)Ljava/lang/String;
  at org.apache.logging.log4j.core.util.BasicAuthorizationProvider.&lt;init&gt;(BasicAuthorizationProvider.java:45)
  at org.apache.logging.log4j.core.config.ConfigurationFactory.authorizationProvider(ConfigurationFactory.java:216)
  at org.apache.logging.log4j.core.config.ConfigurationFactory.getInstance(ConfigurationFactory.java:189)
  at org.apache.logging.log4j.core.LoggerContext.reconfigure(LoggerContext.java:687)
  at org.apache.logging.log4j.core.LoggerContext.reconfigure(LoggerContext.java:708)
  at org.apache.logging.log4j.core.LoggerContext.start(LoggerContext.java:263)
  at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:243)
  at org.apache.logging.log4j.core.impl.Log4jContextFactory.getContext(Log4jContextFactory.java:45)
  at org.apache.logging.log4j.LogManager.getContext(LogManager.java:174)
  at org.apache.logging.log4j.LogManager.getLogger(LogManager.java:648)
  at com.vzw.jitrjis.StartUp.&lt;clinit&gt;(StartUp.java:22)
  </code></pre>
  
  <p>...</p>