onedrive-java-sdk
Used in:
components
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
<dependency>
<groupId>com.amilesend</groupId>
<artifactId>onedrive-java-sdk</artifactId>
<version>2.1.4</version>
</dependency><?xml version="1.0" encoding="UTF-8"?>
<!--
onedrive-java-sdk - A Java SDK to access OneDrive drives and files.
Copyright © 2023-2025 Andy Miles (andy.miles@amilesend.com)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program 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 General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
-->
<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>
<groupId>com.amilesend</groupId>
<artifactId>onedrive-java-sdk</artifactId>
<version>2.1.4</version>
<name>onedrive-java-sdk</name>
<description>A Java SDK to access OneDrive drives and files.</description>
<inceptionYear>2023-2025</inceptionYear>
<url>https://www.amilesend.com/onedrive-java-sdk/</url>
<organization>
<name>Andy Miles</name>
<url>https://www.amilesend.com</url>
</organization>
<licenses>
<license>
<name>GNU General Public License, version 3</name>
<url>https://raw.githubusercontent.com/andy-miles/onedrive-java-sdk/refs/heads/main/LICENSE</url>
<distribution>repo</distribution>
</license>
</licenses>
<developers>
<developer>
<id>amiles</id>
<name>Andy Miles</name>
<email>andy.miles@amilesend.com</email>
<url>https://www.amilesend.com</url>
</developer>
</developers>
<scm>
<connection>scm:git:https://github.com/andy-miles/onedrive-java-sdk.git</connection>
<developerConnection>scm:git:https://github.com/andy-miles/onedrive-java-sdk.git</developerConnection>
<url>https://github.com/andy-miles/onedrive-java-sdk</url>
</scm>
<profiles>
<profile>
<id>github</id>
<distributionManagement>
<repository>
<id>github</id>
<name>GitHub andy-miles Apache Maven Packages</name>
<url>https://maven.pkg.github.com/andy-miles/onedrive-java-sdk</url>
</repository>
</distributionManagement>
</profile>
<profile>
<id>central</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>3.2.8</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
<configuration>
<keyname>${gpg.keyname}</keyname>
<passphraseServerId>${gpg.keyname}</passphraseServerId>
<gpgArguments>
<arg>--pinentry-mode</arg>
<arg>loopback</arg>
</gpgArguments>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.sonatype.central</groupId>
<artifactId>central-publishing-maven-plugin</artifactId>
<version>0.9.0</version>
<extensions>true</extensions>
<configuration>
<autoPublish>false</autoPublish>
<checksums>all</checksums>
<publishingServerId>central</publishingServerId>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
<properties>
<maven.compiler.release>11</maven.compiler.release>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<github.global.server>github</github.global.server>
<maven.resolver.transport>wagon</maven.resolver.transport>
<lombok.version>1.18.42</lombok.version>
<maven.javadoc.plugin.version>3.12.0</maven.javadoc.plugin.version>
<mockito.version>5.20.0</mockito.version>
<slf4j.version>2.0.17</slf4j.version>
<spotbugs.version>4.9.8</spotbugs.version>
<spotbugs.maven.plugin.version>4.9.8.1</spotbugs.maven.plugin.version>
<jacoco.plugin.version>0.8.14</jacoco.plugin.version>
<okhttp.version>5.2.1</okhttp.version>
</properties>
<dependencies>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>${lombok.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
<version>6.0.0</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId>
<version>${mockito.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-junit-jupiter</artifactId>
<version>${mockito.version}</version>
<scope>test</scope>
</dependency>
<!-- Logging -->
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>${slf4j.version}</version>
</dependency>
<!-- HttpClient -->
<dependency>
<groupId>com.amilesend</groupId>
<artifactId>okhttp-client-extensions</artifactId>
<version>1.1.4</version>
</dependency>
<dependency>
<groupId>com.squareup.okhttp3</groupId>
<artifactId>mockwebserver3-junit5</artifactId>
<version>${okhttp.version}</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<!-- Don't bundle any sensitive credential config -->
<resources>
<resource>
<directory>src/main/resources</directory>
<excludes>
<exclude>ms-onedrive-credentials.json</exclude>
</excludes>
<filtering>false</filtering>
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<version>3.6.2</version>
<executions>
<execution>
<id>enforce-maven</id>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<rules>
<requireMavenVersion>
<version>3.6.3</version>
</requireMavenVersion>
</rules>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.14.1</version>
<configuration>
<compilerArgs>
<!-- Required for Lombok annotation processing on JDK 21+ -->
<arg>-proc:full</arg>
</compilerArgs>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>3.9.0</version>
<executions>
<execution>
<goals>
<goal>properties</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.5.4</version>
<configuration>
<!-- Suppress warnings for mockito -->
<argLine>@{argLine} -XX:+EnableDynamicAgentLoading -javaagent:${org.mockito:mockito-core:jar}</argLine>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>versions-maven-plugin</artifactId>
<version>2.19.1</version>
</plugin>
<plugin>
<groupId>org.projectlombok</groupId>
<artifactId>lombok-maven-plugin</artifactId>
<version>1.18.20.0</version>
<dependencies>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>${lombok.version}</version>
</dependency>
</dependencies>
<executions>
<execution>
<phase>generate-sources</phase>
<goals>
<goal>delombok</goal>
</goals>
</execution>
</executions>
<configuration>
<addOutputDirectory>false</addOutputDirectory>
<sourceDirectory>src/main/java</sourceDirectory>
</configuration>
</plugin>
<plugin>
<groupId>com.github.spotbugs</groupId>
<artifactId>spotbugs-maven-plugin</artifactId>
<version>${spotbugs.maven.plugin.version}</version>
<configuration>
<includeFilterFile>src/main/spotbugs-include.xml</includeFilterFile>
<excludeFilterFile>src/main/spotbugs-exclude.xml</excludeFilterFile>
<plugins>
<plugin>
<groupId>com.h3xstream.findsecbugs</groupId>
<artifactId>findsecbugs-plugin</artifactId>
<version>1.12.0</version>
</plugin>
</plugins>
</configuration>
<dependencies>
<dependency>
<groupId>com.github.spotbugs</groupId>
<artifactId>spotbugs</artifactId>
<version>${spotbugs.version}</version>
</dependency>
</dependencies>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>${maven.javadoc.plugin.version}</version>
<configuration>
<additionalJOption>-Xdoclint:-missing,-reference</additionalJOption>
<show>public</show>
<sourcepath>target/generated-sources/delombok</sourcepath>
<bottom>
<![CDATA[Copyright © 2023-2025 <a href="https://www.amilesend.com">Andy Miles</a>. All rights reserved.]]>
</bottom>
</configuration>
<executions>
<execution>
<goals>
<goal>javadoc</goal>
</goals>
<phase>site</phase>
</execution>
<execution>
<id>generate-javadoc</id>
<goals>
<goal>javadoc</goal>
</goals>
<!-- Required to run the hacky annotation formatting fix before bundling as a jar -->
<phase>prepare-package</phase>
</execution>
</executions>
</plugin>
<plugin>
<groupId>com.google.code.maven-replacer-plugin</groupId>
<artifactId>replacer</artifactId>
<version>1.5.3</version>
<executions>
<execution>
<id>fix-javadoc-nonnull-site</id>
<goals>
<goal>replace</goal>
</goals>
<phase>site</phase>
</execution>
<execution>
<id>fix-javadoc-nonnull</id>
<goals>
<goal>replace</goal>
</goals>
<!-- Required to run the hacky annotation formatting fix before bundling as a jar -->
<phase>prepare-package</phase>
</execution>
</executions>
<!-- Hack to fix the duplicate lombok @NonNull annotations in the method parameters for the javadoc -->
<configuration>
<basedir>.</basedir>
<includes>
<include>target/**/com/amilesend/**/*.html</include>
</includes>
<tokenValueMap>src/main/javadoc-format-fix.conf</tokenValueMap>
<regexFlags>
<regexFlag>MULTILINE</regexFlag>
</regexFlags>
</configuration>
</plugin>
<plugin>
<groupId>com.mycila</groupId>
<artifactId>license-maven-plugin</artifactId>
<version>5.0.0</version>
<configuration>
<properties>
<owner>Andy Miles</owner>
<email>andy.miles@amilesend.com</email>
</properties>
<licenseSets>
<licenseSet>
<header>com/mycila/maven/plugin/license/templates/GPL-3.txt</header>
<excludes>
<exclude>**/README</exclude>
<exclude>**/README.md</exclude>
<exclude>src/test/resources/**</exclude>
<exclude>src/main/resources/**</exclude>
<exclude>**/lombok.config</exclude>
<exclude>src/main/java/javadoc-format-fix.conf</exclude>
</excludes>
</licenseSet>
</licenseSets>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>3.3.1</version>
<executions>
<execution>
<id>attach-source</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>${jacoco.plugin.version}</version>
<executions>
<execution>
<id>pre-unit-test</id>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
<execution>
<id>post-unit-test</id>
<goals>
<goal>report</goal>
</goals>
<phase>test</phase>
</execution>
<execution>
<id>check-coverage</id>
<goals>
<goal>check</goal>
</goals>
<configuration>
<rules>
<rule>
<element>BUNDLE</element>
<limits>
<limit>
<counter>COMPLEXITY</counter>
<value>COVEREDRATIO</value>
<minimum>0.60</minimum>
</limit>
</limits>
</rule>
</rules>
</configuration>
</execution>
</executions>
</plugin>
<!-- Manually build the javadoc jar to include the format fixes -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<version>3.7.1</version>
<executions>
<execution>
<id>javadoc-jar</id>
<phase>package</phase>
<configuration>
<appendAssemblyId>true</appendAssemblyId>
<descriptors>
<descriptor>src/main/docs-assemble.xml</descriptor>
</descriptors>
</configuration>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>
<!-- Required for maven-project-info-reports-plugin-3.9.0 for Doxia 2.0 stack -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-site-plugin</artifactId>
<version>3.21.0</version>
</plugin>
</plugins>
</build>
<reporting>
<plugins>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>${jacoco.plugin.version}</version>
</plugin>
<plugin>
<groupId>com.github.spotbugs</groupId>
<artifactId>spotbugs-maven-plugin</artifactId>
<version>${spotbugs.maven.plugin.version}</version>
<configuration>
<includeFilterFile>src/main/spotbugs-include.xml</includeFilterFile>
<excludeFilterFile>src/main/spotbugs-exclude.xml</excludeFilterFile>
<plugins>
<plugin>
<groupId>com.h3xstream.findsecbugs</groupId>
<artifactId>findsecbugs-plugin</artifactId>
<version>1.12.0</version>
</plugin>
</plugins>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-project-info-reports-plugin</artifactId>
<version>3.9.0</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>${maven.javadoc.plugin.version}</version>
<configuration>
<additionalJOption>-Xdoclint:-missing,-reference</additionalJOption>
<show>public</show>
<sourcepath>target/generated-sources/delombok</sourcepath>
<bottom>
<![CDATA[Copyright © 2023-2025 <a href="https://www.amilesend.com">Andy Miles</a>. All rights reserved.]]>
</bottom>
</configuration>
<reportSets>
<reportSet>
<id>default</id>
<reports>
<report>javadoc</report>
</reports>
</reportSet>
</reportSets>
</plugin>
</plugins>
</reporting>
</project>