<!--
 *
 * See the NOTICE file distributed with this work for additional
 * information regarding copyright ownership.
 *
 * This is free software; you can redistribute it and/or modify it
 * under the terms of the GNU Lesser General Public License as
 * published by the Free Software Foundation; either version 2.1 of
 * the License, or (at your option) any later version.
 *
 * This software is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this software; if not, write to the Free
 * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
 * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
 *
-->

<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>
  <parent>
    <groupId>org.xwiki.platform</groupId>
    <artifactId>xwiki-platform-gwt</artifactId>
    <version>4.4.1</version>
  </parent>
  <artifactId>xwiki-platform-gwt-api</artifactId>
  <name>XWiki Platform - GWT - XWiki API</name>
  <packaging>jar</packaging>
  <description>The Common GWT API XWiki JAR</description>
  <dependencies>
    <dependency>
      <groupId>com.google.gwt</groupId>
      <artifactId>gwt-servlet</artifactId>
    </dependency>
    <dependency>
      <groupId>org.xwiki.platform</groupId>
      <artifactId>xwiki-platform-oldcore</artifactId>
      <version>${project.version}</version>
      <!-- We don't want all the Core libs to be put in WEB-INF/lib as this GWT WAR will be
           overlayed with the Standard WAR which already contains all the required libs -->
      <scope>provided</scope>
    </dependency>
  </dependencies>
  <build>
    <plugins>
      <!-- We need to generate the source JAR as it'll be needed by the GWT module that depends
           on this as the GWT compiler needs the sources to generate the JS files -->
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-source-plugin</artifactId>
        <executions>
          <execution>
            <id>attach-gwt-sources</id>
            <goals>
              <goal>jar</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <!-- Apply the Checkstyle configurations defined in the top level pom.xml file -->
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-checkstyle-plugin</artifactId>
        <configuration>
          <excludes>
            com/xpn/xwiki/gwt/api/client/Api.java,
            com/xpn/xwiki/gwt/api/client/app/Translator.java,
            com/xpn/xwiki/gwt/api/client/app/XWikiAsyncCallback.java,
            com/xpn/xwiki/gwt/api/client/app/XWikiGWTApp.java,
            com/xpn/xwiki/gwt/api/client/app/XWikiGWTAppConstants.java,
            com/xpn/xwiki/gwt/api/client/app/XWikiGWTDefaultApp.java,
            com/xpn/xwiki/gwt/api/client/Attachment.java,
            com/xpn/xwiki/gwt/api/client/dialog/ChoiceDialog.java,
            com/xpn/xwiki/gwt/api/client/dialog/ChoiceInfo.java,
            com/xpn/xwiki/gwt/api/client/dialog/CustomDialog.java,
            com/xpn/xwiki/gwt/api/client/dialog/DefaultDialog.java,
            com/xpn/xwiki/gwt/api/client/dialog/Dialog.java,
            com/xpn/xwiki/gwt/api/client/dialog/EditPropDialog.java,
            com/xpn/xwiki/gwt/api/client/dialog/LoadingDialog.java,
            com/xpn/xwiki/gwt/api/client/dialog/MessageDialog.java,
            com/xpn/xwiki/gwt/api/client/dialog/ModalMessageDialog.java,
            com/xpn/xwiki/gwt/api/client/Dictionary.java,
            com/xpn/xwiki/gwt/api/client/Document.java,
            com/xpn/xwiki/gwt/api/client/DOMUtils.java,
            com/xpn/xwiki/gwt/api/client/Navigator.java,
            com/xpn/xwiki/gwt/api/client/User.java,
            com/xpn/xwiki/gwt/api/client/VersionInfo.java,
            com/xpn/xwiki/gwt/api/client/widgets/WordListSuggestOracle.java,
            com/xpn/xwiki/gwt/api/client/wizard/Wizard.java,
            com/xpn/xwiki/gwt/api/client/XObject.java,
            com/xpn/xwiki/gwt/api/client/XWikiGWTException.java,
            com/xpn/xwiki/gwt/api/client/XWikiService.java,
            com/xpn/xwiki/gwt/api/client/XWikiServiceAsync.java,
            com/xpn/xwiki/gwt/api/server/XWikiRequestWrapper.java,
            com/xpn/xwiki/gwt/api/server/XWikiServiceImpl.java
          </excludes>
        </configuration>
      </plugin>
    </plugins>
  </build>
</project>
