You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by ma...@apache.org on 2017/01/29 19:39:02 UTC
logging-log4j2 git commit: Add maven/gradle/sbt instructions for
using snapshots repository
Repository: logging-log4j2
Updated Branches:
refs/heads/master 4975f2f2d -> eb3dcf8fc
Add maven/gradle/sbt instructions for using snapshots repository
Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo
Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/eb3dcf8f
Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/eb3dcf8f
Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/eb3dcf8f
Branch: refs/heads/master
Commit: eb3dcf8fcf47b8d8844fd1faf0a54a76ddce4c1f
Parents: 4975f2f
Author: Matt Sicker <bo...@gmail.com>
Authored: Sun Jan 29 13:40:17 2017 -0600
Committer: Matt Sicker <bo...@gmail.com>
Committed: Sun Jan 29 13:40:17 2017 -0600
----------------------------------------------------------------------
src/site/markdown/maven-artifacts.md.vm | 44 ++++++++++++++++++++++++++--
1 file changed, 42 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/eb3dcf8f/src/site/markdown/maven-artifacts.md.vm
----------------------------------------------------------------------
diff --git a/src/site/markdown/maven-artifacts.md.vm b/src/site/markdown/maven-artifacts.md.vm
index 4f3473a..acfa377 100644
--- a/src/site/markdown/maven-artifacts.md.vm
+++ b/src/site/markdown/maven-artifacts.md.vm
@@ -261,5 +261,45 @@ Scala 2.10 users can use the following:
$h2 Snapshot builds
You can access the latest development snapshot by using the Maven repository
-`https://repository.apache.org/content/repositories/snapshots/` and the current SNAPSHOT version.
-<!-- TODO: add example configs for maven/gradle to use this repo -->
+`https://repository.apache.org/snapshots` and the current SNAPSHOT version.
+Generally, the master branch will use the next patch version as its snapshot
+version regardless of what the next actual version of Log4j will be. For example,
+if the latest release were `2.0`, then master would be using the version
+`2.0.1-SNAPSHOT`. Always verify with `pom.xml` in the master branch as described
+in the [source repository page](source-repository.html).
+
+$h3 Maven
+
+Maven users can add the following to their `pom.xml` to enable snapshots:
+
+```
+<repositories>
+ <repository>
+ <id>apache.snapshots</id>
+ <name>Apache Snapshot Repository</name>
+ <url>https://repository.apache.org/snapshots</url>
+ <releases>
+ <enabled>false</enabled>
+ </releases>
+ </repository>
+</repositories>
+```
+
+$h3 Gradle
+
+Gradle users can add the following to their `build.gradle` to enable snapshots:
+
+```
+repositories {
+ mavenCentral()
+ maven { url 'https://repository.apache.org/snapshots' }
+}
+```
+
+$h3 SBT
+
+SBT users can add the following to their `build.sbt` to enable snapshots:
+
+```
+resolvers += "Apache Snapshot Repository" at "https://repository.apache.org/snapshots"
+```