How to add a dependency to Maven
Add the following com.alibaba.nacos : nacos-log4j2-adapter maven dependency to the pom.xml
file with your favorite IDE (IntelliJ / Eclipse / Netbeans):
<dependency>
<groupId>com.alibaba.nacos</groupId>
<artifactId>nacos-log4j2-adapter</artifactId>
<version>2.4.0-BETA</version>
</dependency>
How to add a dependency to Gradle
Gradle Groovy DSL: Add the following com.alibaba.nacos : nacos-log4j2-adapter gradle dependency to your build.gradle
file:
implementation 'com.alibaba.nacos:nacos-log4j2-adapter:2.4.0-BETA'
Gradle Kotlin DSL: Add the following com.alibaba.nacos : nacos-log4j2-adapter gradle kotlin dependency to your build.gradle.kts
file:
implementation("com.alibaba.nacos:nacos-log4j2-adapter:2.4.0-BETA")
How to add a dependency to SBT Scala
SBT Scala: Add the following com.alibaba.nacos : nacos-log4j2-adapter sbt scala dependency to your build.sbt
file:
libraryDependencies += "com.alibaba.nacos" % "nacos-log4j2-adapter" % "2.4.0-BETA"