Java: Configure pom for releases (#1877)

Update Pom with settings needed for releasing

---------

Co-authored-by: GitHub <[email protected]>
This commit is contained in:
John Oliver
2023-07-07 20:06:36 -07:00
committed by GitHub
co-authored by GitHub
parent e7f803678a
commit be4ef26f23
16 changed files with 193 additions and 58 deletions
+2 -4
View File
@@ -1,14 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://maven.apache.org/POM/4.0.0"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<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>com.microsoft.semantickernel.test</groupId>
<artifactId>api-test</artifactId>
<version>0.2.0-SNAPSHOT</version>
<version>0.2.2-beta-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>
+2 -4
View File
@@ -1,14 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://maven.apache.org/POM/4.0.0"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<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>com.microsoft.semantickernel.test</groupId>
<artifactId>api-test</artifactId>
<version>0.2.0-SNAPSHOT</version>
<version>0.2.2-beta-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>
+2 -4
View File
@@ -1,14 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<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">
<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>com.microsoft.semantickernel</groupId>
<artifactId>semantickernel-parent</artifactId>
<version>0.2.0-SNAPSHOT</version>
<version>0.2.2-beta-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>
+127 -5
View File
@@ -1,13 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<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">
<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.microsoft.semantickernel</groupId>
<artifactId>semantickernel-parent</artifactId>
<version>0.2.0-SNAPSHOT</version>
<version>0.2.2-beta-SNAPSHOT</version>
<packaging>pom</packaging>
<url>https://www.github.com/microsoft/semantic-kernel</url>
@@ -325,6 +325,12 @@
<groupId>org.codehaus.mojo</groupId>
<artifactId>license-maven-plugin</artifactId>
<version>${maven.license-plugin.version}</version>
<configuration>
<organizationName>Microsoft</organizationName>
<inceptionYear>2023</inceptionYear>
<licenseName>mit</licenseName>
<licenseFile>${basedir}/target/LICENSE</licenseFile>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
@@ -424,6 +430,17 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>license-maven-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>update-project-license</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
@@ -651,7 +668,7 @@
<licenseHeader>
<content>// Copyright (c) Microsoft. All rights reserved.</content>
</licenseHeader>
<toggleOffOn />
<toggleOffOn/>
</java>
</configuration>
</plugin>
@@ -682,5 +699,110 @@
</plugins>
</build>
</profile>
<profile>
<id>with-samples</id>
<modules>
<module>samples</module>
<module>api-test</module>
</modules>
</profile>
<profile>
<id>release</id>
<properties>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<configuration>
<javadoc>true</javadoc>
<sources>true</sources>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<configuration>
<tagNameFormat>java-@{project.version}</tagNameFormat>
</configuration>
</plugin>
</plugins>
</build>
<reporting>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
</plugin>
</plugins>
</reporting>
<repositories>
<repository>
<id>${releaseRepoId}</id>
<url>${releaseRepoUrl}</url>
<name>${releaseRepoName}</name>
</repository>
</repositories>
<distributionManagement>
<repository>
<id>${releaseRepoId}</id>
<url>${releaseRepoUrl}</url>
<name>${releaseRepoName}</name>
</repository>
</distributionManagement>
</profile>
</profiles>
<developers>
<developer>
<id>microsoft</id>
<name>Microsoft</name>
</developer>
</developers>
<licenses>
<license>
<name>MIT License</name>
<url>https://opensource.org/licenses/MIT</url>
<distribution>repo</distribution>
</license>
</licenses>
<scm>
<url>https://github.com/microsoft/semantic-kernel</url>
<connection>scm:git:https://github.com/microsoft/semantic-kernel.git</connection>
<developerConnection>scm:git:https://github.com/microsoft/semantic-kernel.git</developerConnection>
<tag>HEAD</tag>
</scm>
</project>
+2 -3
View File
@@ -1,11 +1,10 @@
<?xml version="1.0" encoding="UTF-8" ?>
<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">
<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.microsoft.semantickernel</groupId>
<artifactId>samples</artifactId>
<version>0.2.0-SNAPSHOT</version>
<version>0.2.2-beta-SNAPSHOT</version>
<packaging>pom</packaging>
<modules>
+2 -4
View File
@@ -1,12 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<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">
<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>com.microsoft.semantickernel</groupId>
<artifactId>samples</artifactId>
<version>0.2.0-SNAPSHOT</version>
<version>0.2.2-beta-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>
+3 -4
View File
@@ -1,13 +1,12 @@
<?xml version="1.0" encoding="UTF-8" ?>
<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">
<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>com.microsoft.semantickernel</groupId>
<artifactId>samples</artifactId>
<version>0.2.0-SNAPSHOT</version>
<version>0.2.2-beta-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>
@@ -15,7 +14,7 @@
<packaging>jar</packaging>
<properties>
<semantickernel.java.version>0.2.0-SNAPSHOT</semantickernel.java.version>
<semantickernel.java.version>0.2.1-beta-SNAPSHOT</semantickernel.java.version>
</properties>
<dependencies>
+2 -4
View File
@@ -1,14 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<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">
<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>com.microsoft.semantickernel</groupId>
<artifactId>semantickernel-parent</artifactId>
<version>0.2.0-SNAPSHOT</version>
<version>0.2.2-beta-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>
+37 -3
View File
@@ -1,13 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
<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.microsoft.semantickernel</groupId>
<artifactId>semantickernel-bom</artifactId>
<version>0.2.0-SNAPSHOT</version>
<version>0.2.2-beta-SNAPSHOT</version>
<packaging>pom</packaging>
<name>Semantic Kernel Java BOM</name>
@@ -91,4 +90,39 @@
</dependencies>
</dependencyManagement>
<profiles>
<profile>
<id>release</id>
<distributionManagement>
<repository>
<id>${releaseRepoId}</id>
<url>${releaseRepoUrl}</url>
<name>${releaseRepoName}</name>
</repository>
</distributionManagement>
</profile>
</profiles>
<developers>
<developer>
<id>microsoft</id>
<name>Microsoft</name>
</developer>
</developers>
<licenses>
<license>
<name>MIT License</name>
<url>https://opensource.org/licenses/MIT</url>
<distribution>repo</distribution>
</license>
</licenses>
<scm>
<url>https://github.com/microsoft/semantic-kernel</url>
<connection>scm:git:https://github.com/microsoft/semantic-kernel.git</connection>
<developerConnection>scm:git:https://github.com/microsoft/semantic-kernel.git</developerConnection>
<tag>HEAD</tag>
</scm>
</project>
@@ -1,13 +1,12 @@
<?xml version="1.0" encoding="UTF-8" ?>
<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">
<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>com.microsoft.semantickernel</groupId>
<artifactId>semantickernel-parent</artifactId>
<version>0.2.0-SNAPSHOT</version>
<version>0.2.2-beta-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>
@@ -1,14 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<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">
<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>com.microsoft.semantickernel.connectors</groupId>
<artifactId>semantickernel-connectors-parent</artifactId>
<version>0.2.0-SNAPSHOT</version>
<version>0.2.2-beta-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>
+2 -3
View File
@@ -1,13 +1,12 @@
<?xml version="1.0" encoding="UTF-8" ?>
<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">
<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>com.microsoft.semantickernel</groupId>
<artifactId>semantickernel-parent</artifactId>
<version>0.2.0-SNAPSHOT</version>
<version>0.2.2-beta-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>
+2 -4
View File
@@ -1,14 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<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">
<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>com.microsoft.semantickernel</groupId>
<artifactId>semantickernel-parent</artifactId>
<version>0.2.0-SNAPSHOT</version>
<version>0.2.2-beta-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>
@@ -1,13 +1,12 @@
<?xml version="1.0" encoding="UTF-8" ?>
<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">
<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>com.microsoft.semantickernel.extensions</groupId>
<artifactId>semantickernel-extensions-parent</artifactId>
<version>0.2.0-SNAPSHOT</version>
<version>0.2.2-beta-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>
@@ -1,13 +1,12 @@
<?xml version="1.0" encoding="UTF-8" ?>
<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">
<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>com.microsoft.semantickernel</groupId>
<artifactId>semantickernel-parent</artifactId>
<version>0.2.0-SNAPSHOT</version>
<version>0.2.2-beta-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>
@@ -1,13 +1,12 @@
<?xml version="1.0" encoding="UTF-8" ?>
<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">
<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>com.microsoft.semantickernel.extensions</groupId>
<artifactId>semantickernel-extensions-parent</artifactId>
<version>0.2.0-SNAPSHOT</version>
<version>0.2.2-beta-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>