You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@freemarker.apache.org by dd...@apache.org on 2016/01/13 23:35:40 UTC
incubator-freemarker git commit: Build: Snapshot VS staging Maven
repo selected automatically
Repository: incubator-freemarker
Updated Branches:
refs/heads/2.3.24-gae-stabilization e17dd7cca -> 550ac15a1
Build: Snapshot VS staging Maven repo selected automatically
Project: http://git-wip-us.apache.org/repos/asf/incubator-freemarker/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-freemarker/commit/550ac15a
Tree: http://git-wip-us.apache.org/repos/asf/incubator-freemarker/tree/550ac15a
Diff: http://git-wip-us.apache.org/repos/asf/incubator-freemarker/diff/550ac15a
Branch: refs/heads/2.3.24-gae-stabilization
Commit: 550ac15a18b6eedbbef6f9d27992baa7857acd0d
Parents: e17dd7c
Author: ddekany <dd...@apache.org>
Authored: Wed Jan 13 23:35:27 2016 +0100
Committer: ddekany <dd...@apache.org>
Committed: Wed Jan 13 23:35:27 2016 +0100
----------------------------------------------------------------------
build.xml | 26 ++++++++++++++++----------
1 file changed, 16 insertions(+), 10 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/550ac15a/build.xml
----------------------------------------------------------------------
diff --git a/build.xml b/build.xml
index dccbb23..d5e78f0 100644
--- a/build.xml
+++ b/build.xml
@@ -31,6 +31,9 @@
<!-- Properties -->
<!-- ================================================================== -->
+ <!-- Maven project coordinates: -->
+ <property name="mavenGroupId" value="org.freemarker" />
+ <property name="mavenArtifactId" value="freemarker-gae" />
<!-- Ivy project coordinates: -->
<property name="moduleOrg" value="org.freemarker" />
<property name="moduleName" value="freemarker" />
@@ -91,7 +94,7 @@
<filter token="version" value="${version}" />
<property name="dist.dir" value="build/dist" />
- <property name="dist.archiveBaseName" value="apache-freemarker-gae-${version}" />
+ <property name="dist.archiveBaseName" value="apache-${mavenArtifactId}-${version}" />
<property name="dist.bin.dir" value="${dist.dir}/bin/${dist.archiveBaseName}" />
<property name="dist.src.dir" value="${dist.dir}/src/${dist.archiveBaseName}-src" />
@@ -781,8 +784,8 @@
<version>17</version>
</parent>
- <groupId>org.freemarker</groupId>
- <artifactId>freemarker-gae</artifactId>
+ <groupId>${mavenGroupId}</groupId>
+ <artifactId>${mavenArtifactId}</artifactId>
<version>${mavenVersion}</version>
<packaging>jar</packaging>
@@ -872,20 +875,23 @@
<!-- These were copy-pasted from the org.apacha:apache parent POM: -->
<property name="maven-server-id" value="apache.releases.https" />
- <property name="maven-repository-url" value="https://repository.apache.org/service/local/staging/deploy/maven2" />
- <!--
- Don't deploy to public snapshot repositories here!
- It isn't backward compatible as version ranges will pick them up.
- -->
+ <condition property="maven-repository-url"
+ value="https://repository.apache.org/content/repositories/snapshots/"
+ else="https://repository.apache.org/service/local/staging/deploy/maven2">
+ <matches pattern="-SNAPSHOT$" string="${mavenVersion}" />
+ </condition>
+ <!-- Snapshot repo: https://repository.apache.org/content/repositories/snapshots/ -->
<input
validargs="y,n"
addproperty="mavenUpload.answer"
>
You are about uploading
${dist.bin.dir}/freemarker.jar
-and its attachments to this Maven repository:
+and its attachments with Maven coordinates
+${mavenGroupId}:${mavenArtifactId}:${mavenVersion}
+to this Maven repository:
${maven-repository-url}
-with Maven artifact version number ${mavenVersion}.
+
Note that it's assumed that you have run `ant dist` just before this.
Proceed? </input>
<condition property="mavenUpload.yes">