From: Sunil Mohan Adapa <sunil@medhas.org>
Date: Mon, 3 May 2021 21:15:27 -0700
Subject: libraries/: Alter maven build scripts,
 build only needed sub-projects

- Update the version number so that the generate jar files have the correct
version number. Attempt was made to use ${revision} instead of the hard coded
version number. Then revision was passed on the maven build command line with
-Drevision=1.3.31. However, this yields error with mh_patchpoms tool. So, this
was abandoned.

- Disable all sub-projects except kotlin-osgi-bundle (needed by
jitsi-videobridge) and kotlin-maven-plugin (needed by projects using Kotlin with
Maven). Enable more sub-projects as needed.

- Remove useDefaultManifestFile as this has been removed from 3.0 version of
maven-jar-plugin. According to documentation, another way is provided when
non-default manifest file needs to be provided implying that this option is
default now.

Forwarded: not-needed
---
 libraries/pom.xml                           | 6 +++---
 libraries/tools/kotlin-maven-plugin/pom.xml | 2 +-
 libraries/tools/kotlin-osgi-bundle/pom.xml  | 5 +----
 3 files changed, 5 insertions(+), 8 deletions(-)

diff --git a/libraries/pom.xml b/libraries/pom.xml
index ccd873b..ff0b4b1 100644
--- a/libraries/pom.xml
+++ b/libraries/pom.xml
@@ -7,7 +7,7 @@
 
     <groupId>org.jetbrains.kotlin</groupId>
     <artifactId>kotlin-project</artifactId>
-    <version>1.3-SNAPSHOT</version>
+    <version>1.3.31</version>
     <packaging>pom</packaging>
 
     <name>Kotlin</name>
@@ -77,7 +77,7 @@
 
         <module>tools/kotlin-osgi-bundle</module>
 
-        <module>tools/maven-archetypes</module>
+        <!-- <module>tools/maven-archetypes</module>
 
         <module>tools/kotlin-annotation-processing-maven</module>
         <module>tools/kotlin-maven-allopen</module>
@@ -93,7 +93,7 @@
         <module>examples/js-example</module>
         <module>examples/kotlin-js-library-example</module>
         <module>examples/browser-example</module>
-        <module>examples/browser-example-with-library</module>
+        <module>examples/browser-example-with-library</module> -->
     </modules>
 
     <dependencies>
diff --git a/libraries/tools/kotlin-maven-plugin/pom.xml b/libraries/tools/kotlin-maven-plugin/pom.xml
index bcd58c7..e76caa2 100644
--- a/libraries/tools/kotlin-maven-plugin/pom.xml
+++ b/libraries/tools/kotlin-maven-plugin/pom.xml
@@ -12,7 +12,7 @@
     <parent>
         <groupId>org.jetbrains.kotlin</groupId>
         <artifactId>kotlin-project</artifactId>
-        <version>1.3-SNAPSHOT</version>
+        <version>1.3.31</version>
         <relativePath>../../pom.xml</relativePath>
     </parent>
 
diff --git a/libraries/tools/kotlin-osgi-bundle/pom.xml b/libraries/tools/kotlin-osgi-bundle/pom.xml
index a90d42b..c43ebd4 100644
--- a/libraries/tools/kotlin-osgi-bundle/pom.xml
+++ b/libraries/tools/kotlin-osgi-bundle/pom.xml
@@ -5,7 +5,7 @@
     <parent>
         <artifactId>kotlin-project</artifactId>
         <groupId>org.jetbrains.kotlin</groupId>
-        <version>1.3-SNAPSHOT</version>
+        <version>1.3.31</version>
         <relativePath>../../pom.xml</relativePath>
     </parent>
     <modelVersion>4.0.0</modelVersion>
@@ -81,9 +81,6 @@
                         <goals>
                             <goal>jar</goal>
                         </goals>
-                        <configuration>
-                            <useDefaultManifestFile>true</useDefaultManifestFile>
-                        </configuration>
                     </execution>
                     <execution>
                         <id>empty-javadoc-jar</id>
