Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
xiaofang li
Logging Log4j2
Commits
a03a3322
Commit
a03a3322
authored
7 years ago
by
Mikael Ståldal
Browse files
Options
Download
Email Patches
Plain Diff
Fix Scala API version
parent
fc098dd6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/site/markdown/maven-artifacts.md.vm
+26
-14
src/site/markdown/maven-artifacts.md.vm
with
26 additions
and
14 deletions
+26
-14
src/site/markdown/maven-artifacts.md.vm
+
26
-
14
View file @
a03a3322
...
...
@@ -19,6 +19,9 @@
#
set
($
h2
=
'##'
)
#
set
($
h3
=
'###'
)
#
macro
(
maven
$
artifactIds
)
#
mavenVersion
($
artifactIds
$
Log4jReleaseVersion
)
#
end
#
macro
(
mavenVersion
$
artifactIds
$
version
)
`pom.xml`
```
...
...
@@ -27,40 +30,49 @@
<dependency>
<groupId>
org.apache.logging.log4j
</groupId>
<artifactId>
${
artifactId
}
</artifactId>
<version>
${
Log4jReleaseV
ersion
}
</version>
<version>
${
v
ersion
}
</version>
</dependency>
#
end
</dependencies>
```
#
end
#
macro
(
ivy
$
artifactIds
)
#
ivyVersion
($
artifactIds
$
Log4jReleaseVersion
)
#
end
#
macro
(
ivyVersion
$
artifactIds
$
version
)
`ivy.xml`
```
<dependencies>
#
foreach
($
artifactId
in
$
artifactIds
)
<dependency
org=
"org.apache.logging.log4j"
name=
"
${
artifactId
}
"
rev=
"
${
Log4jReleaseV
ersion
}
"
/>
<dependency
org=
"org.apache.logging.log4j"
name=
"
${
artifactId
}
"
rev=
"
${
v
ersion
}
"
/>
#
end
</dependencies>
```
#
end
#
macro
(
gradle
$
artifactIds
)
#
gradleVersion
($
artifactIds
$
Log4jReleaseVersion
)
#
end
#
macro
(
gradleVersion
$
artifactIds
$
version
)
`build.gradle`
```
dependencies
{
#
foreach
($
artifactId
in
$
artifactIds
)
compile group: 'org.apache.logging.log4j', name: '
${
artifactId
}
', version: '
${
Log4jReleaseV
ersion
}
'
compile group: 'org.apache.logging.log4j', name: '
${
artifactId
}
', version: '
${
v
ersion
}
'
#
end
}
```
#
end
#
macro
(
sbt
$
artifactIds
)
#
sbtVersion
($
artifactIds
$
Log4jReleaseVersion
)
#
end
#
macro
(
sbtVersion
$
artifactIds
$
version
)
`build.sbt`
```
#
foreach
($
artifactId
in
$
artifactIds
)
libraryDependencies += "org.apache.logging.log4j" %
#
if
($
artifactId
.
endsWith
(
'scala'
))
%
#
end
"
${
artifactId
}
" % "
${
Log4jReleaseV
ersion
}
"
libraryDependencies += "org.apache.logging.log4j" %
#
if
($
artifactId
.
endsWith
(
'scala'
))
%
#
end
"
${
artifactId
}
" % "
${
v
ersion
}
"
#
end
```
#
end
...
...
@@ -255,27 +267,27 @@ $h3 Scala API
A convenient Scala wrapper for the Logger API. SBT users can add the following to their
`build.sbt`:
#
sbt
(
[
'log4j-api-scala'
])
#
sbt
Version
(
[
'log4j-api-scala'
]
,
'11.0'
)
Maven, Ivy, and Gradle users need to add the Scala version to the artifact name.
Scala 2.12 users can use the following:
#
maven
(
[
'log4j-api-scala_2.12'
])
#
ivy
(
[
'log4j-api-scala_2.12'
])
#
gradle
(
[
'log4j-api-scala_2.12'
])
#
maven
Version
(
[
'log4j-api-scala_2.12'
]
,
'11.0'
)
#
ivy
Version
(
[
'log4j-api-scala_2.12'
]
,
'11.0'
)
#
gradle
Version
(
[
'log4j-api-scala_2.12'
]
,
'11.0'
)
Scala 2.11 users can use the following:
#
maven
(
[
'log4j-api-scala_2.11'
])
#
ivy
(
[
'log4j-api-scala_2.11'
])
#
gradle
(
[
'log4j-api-scala_2.11'
])
#
maven
Version
(
[
'log4j-api-scala_2.11'
]
,
'11.0'
)
#
ivy
Version
(
[
'log4j-api-scala_2.11'
]
,
'11.0'
)
#
gradle
Version
(
[
'log4j-api-scala_2.11'
]
,
'11.0'
)
Scala 2.10 users can use the following:
#
maven
(
[
'log4j-api-scala_2.10'
])
#
ivy
(
[
'log4j-api-scala_2.10'
])
#
gradle
(
[
'log4j-api-scala_2.10'
])
#
maven
Version
(
[
'log4j-api-scala_2.10'
]
,
'11.0'
)
#
ivy
Version
(
[
'log4j-api-scala_2.10'
]
,
'11.0'
)
#
gradle
Version
(
[
'log4j-api-scala_2.10'
]
,
'11.0'
)
$
h2
Snapshot builds
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment