Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Fix Scala release #15155

Merged
merged 2 commits into from
Jun 7, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 7 additions & 43 deletions scala-package/deploy/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
<properties>
<MXNET_DIR>${project.parent.basedir}/..</MXNET_DIR>
<ARTIFACT_ID>mxnet-full_2.11-${platform}-${flavor}</ARTIFACT_ID>
<revision>1.5.0-SNAPSHOT</revision>
<revision>${base.revision}-SNAPSHOT</revision>
<repositoryId>apache.snapshots.https</repositoryId>
<deploy_asc_types/>
<deploy_asc_classifers/>
Expand All @@ -56,13 +56,13 @@
<profile>
<id>staging</id>
<properties>
<revision>1.5.0</revision>
<revision>${base.revision}</revision>
<repositoryId>apache.releases.https</repositoryId>
<repo_url>https://repository.apache.org/content/repositories/staging</repo_url>
<deploy_asc_types>jar.asc,asc,asc</deploy_asc_types>
<deploy_asc_classifers>,sources.jar,javadoc.jar</deploy_asc_classifers>
<repo_url>https://repository.apache.org/service/local/staging/deploy/maven2</repo_url>
<deploy_asc_types>jar.asc,asc,asc,pom.asc</deploy_asc_types>
<deploy_asc_classifers>,sources.jar,javadoc.jar,</deploy_asc_classifers>
<deploy_asc_files>
../assembly/target/mxnet-full_2.11-INTERNAL.jar.asc,../assembly/target/mxnet-full_2.11-INTERNAL-src.jar.asc,../assembly/target/mxnet-full_2.11-INTERNAL-bundle.jar.asc
../assembly/target/mxnet-full_2.11-INTERNAL.jar.asc,../assembly/target/mxnet-full_2.11-INTERNAL-src.jar.asc,../assembly/target/mxnet-full_2.11-INTERNAL-bundle.jar.asc,../externalPom/target/deploy.xml.asc
</deploy_asc_files>
</properties>
</profile>
Expand All @@ -85,42 +85,6 @@
</configuration>
</plugin>

<plugin>
<groupId>com.google.code.maven-replacer-plugin</groupId>
<artifactId>replacer</artifactId>
<version>1.5.3</version>
<executions>
<execution>
<phase>deploy</phase>
<goals>
<goal>replace</goal>
</goals>
</execution>
</executions>
<configuration>
<file>${basedir}/src/main/deploy/deploy.xml</file>
<outputFile>${project.build.directory}/deploy.xml</outputFile>
<replacements>
<replacement>
<token>DESCRIPTION</token>
<value>${project.description}</value>
</replacement>
<replacement>
<token>ARTIFACT_ID</token>
<value>${ARTIFACT_ID}</value>
</replacement>
<replacement>
<token>PROJECT_VERSION</token>
<value>${project.version}</value>
</replacement>
<replacement>
<token>SCALA_VERSION</token>
<value>${scala.version}</value>
</replacement>
</replacements>
</configuration>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
Expand All @@ -140,7 +104,7 @@
<artifactId>${ARTIFACT_ID}</artifactId>
<version>${project.version}</version>
<packaging>jar</packaging>
<pomFile>${project.build.directory}/deploy.xml</pomFile>
<pomFile>${rootdir}/externalPom/target/deploy.xml</pomFile>
<file>${rootdir}/assembly/target/mxnet-full_2.11-INTERNAL.jar</file>
<sources>${rootdir}/assembly/target/mxnet-full_2.11-INTERNAL-src.jar</sources>
<javadoc>${rootdir}/assembly/target/mxnet-full_2.11-INTERNAL-bundle.jar</javadoc>
Expand Down
152 changes: 152 additions & 0 deletions scala-package/externalPom/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,152 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Licensed to the Apache Software Foundation (ASF) under one or more
~ contributor license agreements. See the NOTICE file distributed with
~ this work for additional information regarding copyright ownership.
~ The ASF licenses this file to You under the Apache License, Version 2.0
~ (the "License"); you may not use this file except in compliance with
~ the License. You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.apache.mxnet</groupId>
<artifactId>mxnet-parent</artifactId>
<version>INTERNAL</version>
<relativePath>../pom.xml</relativePath>
</parent>

<artifactId>mxnet-external-pom</artifactId>
<version>${revision}</version>
<name>MXNet Scala Package - Full ${platform}-only</name>
<packaging>pom</packaging>
<description>
Scala Package for Apache MXNet (Incubating) - flexible and efficient library for deep learning.
</description>

<properties>
<MXNET_DIR>${project.parent.basedir}/..</MXNET_DIR>
<ARTIFACT_ID>mxnet-full_2.11-${platform}-${flavor}</ARTIFACT_ID>
<revision>${base.revision}-SNAPSHOT</revision>
<skipGpg>true</skipGpg>
</properties>

<dependencies>
<dependency>
<groupId>org.apache.mxnet</groupId>
<artifactId>mxnet-full_2.11</artifactId>
<version>INTERNAL</version>
</dependency>
</dependencies>

<profiles>
<profile>
<id>staging</id>
<properties>
<revision>${base.revision}</revision>
<skipGpg>false</skipGpg>
</properties>
</profile>
</profiles>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
<attach>false</attach>
</configuration>
</plugin>

<plugin>
<groupId>com.google.code.maven-replacer-plugin</groupId>
<artifactId>replacer</artifactId>
<version>1.5.3</version>
<executions>
<execution>
<phase>deploy</phase>
<goals>
<goal>replace</goal>
</goals>
</execution>
</executions>
<configuration>
<file>${basedir}/src/main/deploy/deploy.xml</file>
<outputFile>${project.build.directory}/deploy.xml</outputFile>
<replacements>
<replacement>
<token>DESCRIPTION</token>
<value>${project.description}</value>
</replacement>
<replacement>
<token>ARTIFACT_ID</token>
<value>${ARTIFACT_ID}</value>
</replacement>
<replacement>
<token>PROJECT_VERSION</token>
<value>${project.version}</value>
</replacement>
<replacement>
<token>SCALA_VERSION</token>
<value>${scala.version}</value>
</replacement>
</replacements>
</configuration>
</plugin>

<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
<version>3.0.0</version>
<executions>
<execution>
<id>attach-artifacts</id>
<phase>deploy</phase>
<goals>
<goal>attach-artifact</goal>
</goals>
<configuration>
<artifacts>
<artifact>
<file>target/deploy.xml</file>
<type>xml</type>
</artifact>
</artifacts>
</configuration>
</execution>
</executions>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>1.6</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>deploy</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
<configuration>
<skip>${skipGpg}</skip>
</configuration>
</plugin>

</plugins>
</build>

</project>
2 changes: 2 additions & 0 deletions scala-package/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
<scala.version>2.11.8</scala.version>
<build.platform/>
<scala.binary.version>2.11</scala.binary.version>
<base.revision>1.5.0</base.revision>
<build.platform />
<cxx>g++</cxx>
<dollar>$</dollar>
Expand All @@ -76,6 +77,7 @@
<module>examples</module>
<module>spark</module>
<module>assembly</module>
<module>externalPom</module>
<module>deploy</module>
</modules>

Expand Down