<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/maven-v4_0_0.xsd">

  <modelVersion>4.0.0</modelVersion>
  <artifactId>onebusaway-gtfs-transformer-cli</artifactId>

  <name>onebusaway-gtfs-transformer-cli</name>
  <description>A Java application for transforming Google Transit Feed Spec feeds</description>

  <parent>
    <groupId>io.leonard</groupId>
    <artifactId>onebusaway-gtfs-modules</artifactId>
    <version>1.3.103</version>
  </parent>

  <properties>
    <!-- We don't always want to deploy the packaged jar to main maven repo, since it includes all the project dependencies and 
      is quite large -->
    <skip-deploy-onebusaway-gtfs-transformer-cli-jar>false</skip-deploy-onebusaway-gtfs-transformer-cli-jar>
  </properties>

  <dependencies>
    <dependency>
      <groupId>io.leonard</groupId>
      <artifactId>onebusaway-gtfs-transformer</artifactId>
      <version>${project.version}</version>
    </dependency>
    <dependency>
      <groupId>commons-cli</groupId>
      <artifactId>commons-cli</artifactId>
      <version>1.2</version>
    </dependency>
    <dependency>
      <groupId>org.slf4j</groupId>
      <artifactId>slf4j-log4j12</artifactId>
    </dependency>

    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
    </dependency>
  </dependencies>

  <build>
    <finalName>onebusaway-gtfs-transformer-cli</finalName>
    <plugins>
      <plugin>
        <artifactId>maven-shade-plugin</artifactId>
        <executions>
          <execution>
            <phase>package</phase>
            <goals>
              <goal>shade</goal>
            </goals>
            <configuration>
              <shadedClassifierName>withAllDependencies</shadedClassifierName>
              <createDependencyReducedPom>false</createDependencyReducedPom>
              <transformers>
                <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
                  <mainClass>org.onebusaway.gtfs_transformer.GtfsTransformerMain</mainClass>
                </transformer>
              </transformers>
            </configuration>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-deploy-plugin</artifactId>
        <configuration>
          <skip>${skip-deploy-onebusaway-gtfs-transformer-cli-jar}</skip>
        </configuration>
      </plugin>
    </plugins>
  </build>

  <profiles>
    <profile>
      <id>oss-distribution</id>
      <properties>
        <skip-deploy-onebusaway-gtfs-transformer-cli-jar>true</skip-deploy-onebusaway-gtfs-transformer-cli-jar>
      </properties>
    </profile>
  </profiles>

</project>
