<?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 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <modelVersion>4.0.0</modelVersion>
  <parent>
    <groupId>org.apache.camel</groupId>
    <artifactId>camel-google-parent</artifactId>
    <version>4.8.0</version>
  </parent>
  <groupId>org.apache.camel</groupId>
  <artifactId>camel-google-drive</artifactId>
  <version>4.8.0</version>
  <name>Camel :: Google :: Drive</name>
  <description>Camel Component for GoogleDrive</description>
  <licenses>
    <license>
      <name>Apache-2.0</name>
      <url>https://www.apache.org/licenses/LICENSE-2.0.txt</url>
      <distribution>repo</distribution>
    </license>
  </licenses>
  <properties>
    <schemeName>google-drive</schemeName>
    <componentPackage>org.apache.camel.component.google.drive</componentPackage>
    <componentName>GoogleDrive</componentName>
    <outPackage>org.apache.camel.component.google.drive.internal</outPackage>
  </properties>
  <dependencies>
    <dependency>
      <groupId>org.apache.camel</groupId>
      <artifactId>camel-support</artifactId>
      <version>4.8.0</version>
      <scope>compile</scope>
    </dependency>
    <dependency>
      <groupId>org.apache.camel</groupId>
      <artifactId>camel-file</artifactId>
      <version>4.8.0</version>
      <scope>compile</scope>
    </dependency>
    <dependency>
      <groupId>com.google.http-client</groupId>
      <artifactId>google-http-client</artifactId>
      <version>1.45.0</version>
      <scope>compile</scope>
      <exclusions>
        <exclusion>
          <groupId>com.google.code.findbugs</groupId>
          <artifactId>jsr305</artifactId>
        </exclusion>
      </exclusions>
    </dependency>
    <dependency>
      <groupId>com.google.http-client</groupId>
      <artifactId>google-http-client-jackson2</artifactId>
      <version>1.45.0</version>
      <scope>compile</scope>
      <exclusions>
        <exclusion>
          <groupId>com.google.code.findbugs</groupId>
          <artifactId>jsr305</artifactId>
        </exclusion>
      </exclusions>
    </dependency>
    <dependency>
      <groupId>com.google.http-client</groupId>
      <artifactId>google-http-client-gson</artifactId>
      <version>1.45.0</version>
      <scope>compile</scope>
      <exclusions>
        <exclusion>
          <groupId>com.google.code.findbugs</groupId>
          <artifactId>jsr305</artifactId>
        </exclusion>
      </exclusions>
    </dependency>
    <dependency>
      <groupId>com.google.http-client</groupId>
      <artifactId>google-http-client-apache-v2</artifactId>
      <version>1.45.0</version>
      <scope>compile</scope>
      <exclusions>
        <exclusion>
          <groupId>com.google.code.findbugs</groupId>
          <artifactId>jsr305</artifactId>
        </exclusion>
      </exclusions>
    </dependency>
    <dependency>
      <groupId>com.google.apis</groupId>
      <artifactId>google-api-services-drive</artifactId>
      <version>v3-rev20240809-2.0.0</version>
      <scope>compile</scope>
      <exclusions>
        <exclusion>
          <groupId>com.google.api-client</groupId>
          <artifactId>google-api-client</artifactId>
        </exclusion>
      </exclusions>
    </dependency>
    <dependency>
      <groupId>com.google.api-client</groupId>
      <artifactId>google-api-client</artifactId>
      <version>2.7.0</version>
      <scope>compile</scope>
      <exclusions>
        <exclusion>
          <groupId>com.google.code.findbugs</groupId>
          <artifactId>jsr305</artifactId>
        </exclusion>
        <exclusion>
          <groupId>com.google.oauth-client</groupId>
          <artifactId>google-oauth-client</artifactId>
        </exclusion>
      </exclusions>
    </dependency>
    <dependency>
      <groupId>com.google.oauth-client</groupId>
      <artifactId>google-oauth-client</artifactId>
      <version>1.36.0</version>
      <scope>compile</scope>
    </dependency>
    <dependency>
      <groupId>com.google.oauth-client</groupId>
      <artifactId>google-oauth-client-jetty</artifactId>
      <version>1.36.0</version>
      <scope>compile</scope>
    </dependency>
  </dependencies>
  <build>
    <defaultGoal>install</defaultGoal>
    <pluginManagement>
      <plugins>
        <plugin>
          <groupId>org.apache.camel</groupId>
          <artifactId>camel-api-component-maven-plugin</artifactId>
          <version>${project.version}</version>
          <configuration>
            <scheme>${schemeName}</scheme>
            <componentName>${componentName}</componentName>
            <componentPackage>${componentPackage}</componentPackage>
            <outPackage>${outPackage}</outPackage>
          </configuration>
        </plugin>
      </plugins>
    </pluginManagement>
    <plugins>
      <plugin>
        <groupId>org.apache.camel</groupId>
        <artifactId>camel-api-component-maven-plugin</artifactId>
        <executions>
          <execution>
            <id>generate-test-component-classes</id>
            <goals>
              <goal>fromApis</goal>
            </goals>
            <configuration>
              <apis>
                <api>
                  <apiName>drive-about</apiName>
                  <proxyClass>com.google.api.services.drive.Drive$About</proxyClass>
                  <fromJavasource />
                </api>
                <api>
                  <apiName>drive-changes</apiName>
                  <proxyClass>com.google.api.services.drive.Drive$Changes</proxyClass>
                  <fromJavasource />
                </api>
                <api>
                  <apiName>drive-channels</apiName>
                  <proxyClass>com.google.api.services.drive.Drive$Channels</proxyClass>
                  <fromJavasource />
                </api>
                <api>
                  <apiName>drive-comments</apiName>
                  <proxyClass>com.google.api.services.drive.Drive$Comments</proxyClass>
                  <fromJavasource />
                </api>
                <api>
                  <apiName>drive-drives</apiName>
                  <proxyClass>com.google.api.services.drive.Drive$Drives</proxyClass>
                  <fromJavasource />
                </api>
                <api>
                  <apiName>drive-files</apiName>
                  <proxyClass>com.google.api.services.drive.Drive$Files</proxyClass>
                  <fromJavasource />
                  <substitutions>
                    <substitution>
                      <method>watch|stop</method>
                      <argType>com.google.api.services.drive.model.Channel</argType>
                      <argName>content</argName>
                      <replacement>channel</replacement>
                    </substitution>
                    <substitution>
                      <method>insert</method>
                      <argType>com.google.api.services.drive.model.ChildReference</argType>
                      <argName>content</argName>
                      <replacement>childRef</replacement>
                    </substitution>
                    <substitution>
                      <method>insert|update</method>
                      <argType>com.google.api.services.drive.model.Drive</argType>
                      <argName>content</argName>
                      <replacement>drive</replacement>
                    </substitution>
                    <substitution>
                      <method>insert|patch|update</method>
                      <argType>com.google.api.services.drive.model.Comment</argType>
                      <argName>content</argName>
                      <replacement>comment</replacement>
                    </substitution>
                    <substitution>
                      <method>copy|insert|patch|update</method>
                      <argType>com.google.api.services.drive.model.File</argType>
                      <argName>content</argName>
                      <replacement>file</replacement>
                    </substitution>
                    <substitution>
                      <method>modifyLabels</method>
                      <argType>com.google.api.services.drive.model.ModifyLabelsRequest</argType>
                      <argName>content</argName>
                      <replacement>modifyLabelsRequest</replacement>
                    </substitution>
                  </substitutions>
                </api>
                <api>
                  <apiName>drive-permissions</apiName>
                  <proxyClass>com.google.api.services.drive.Drive$Permissions</proxyClass>
                  <fromJavasource />
                </api>
                <api>
                  <apiName>drive-replies</apiName>
                  <proxyClass>com.google.api.services.drive.Drive$Replies</proxyClass>
                  <fromJavasource />
                </api>
                <api>
                  <apiName>drive-revisions</apiName>
                  <proxyClass>com.google.api.services.drive.Drive$Revisions</proxyClass>
                  <fromJavasource />
                </api>
                <api>
                  <apiName>drive-teamdrives</apiName>
                  <proxyClass>com.google.api.services.drive.Drive$Teamdrives</proxyClass>
                  <fromJavasource />
                </api>
              </apis>
              <substitutions>
                <substitution>
                  <method>^.+$</method>
                  <argName>content</argName>
                  <argType>com.google.api.services.drive.model.Channel</argType>
                  <replacement>contentChannel</replacement>
                </substitution>
              </substitutions>
              <generatedSrcDir>${project.basedir}/src/generated/java</generatedSrcDir>
            </configuration>
          </execution>
        </executions>
        <dependencies>
          <dependency>
            <groupId>com.google.apis</groupId>
            <artifactId>google-api-services-drive</artifactId>
            <version>${google-api-services-drive-version}</version>
            <classifier>sources</classifier>
          </dependency>
        </dependencies>
      </plugin>
    </plugins>
  </build>
</project>
