You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2023/06/12 14:38:29 UTC

[commons-fileupload] branch master updated: Better migration documentation

This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-fileupload.git


The following commit(s) were added to refs/heads/master by this push:
     new 6b5a49e  Better migration documentation
6b5a49e is described below

commit 6b5a49e5dc542fc367177b07f73f478b65767cf0
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Mon Jun 12 10:38:26 2023 -0400

    Better migration documentation
---
 src/site/apt/migration.apt.vm | 16 +++++++++-------
 1 file changed, 9 insertions(+), 7 deletions(-)

diff --git a/src/site/apt/migration.apt.vm b/src/site/apt/migration.apt.vm
index 779124b..2f2d627 100644
--- a/src/site/apt/migration.apt.vm
+++ b/src/site/apt/migration.apt.vm
@@ -31,17 +31,19 @@ Migrating
 
    [[1]] Use Java 8 or above.
    
-   [[2]] Add one or more these dependencies with the <<<groupId>>> <<org.apache.commons>>, and set the artifactId to:
+   [[2]] Add one or more these dependencies with the <<<groupId>>> <<org.apache.commons>>, and set the <<<artifactId>>> to:
    
-        [[A]] <<commons-fileupload2-jakarta>> to use Jakarta servlets
+        [[A]] <<commons-fileupload2-jakarta>> to use Jakarta servlets.
         
-        [[B]] <<commons-fileupload2-javax>> to use Javax servlets
+        [[B]] <<commons-fileupload2-javax>> to use Javax servlets.
 
-        [[C]] <<commons-fileupload2-portlet>> to use Javax portlets
+        [[C]] <<commons-fileupload2-portlet>> to use Javax portlets.
+        
+        [[D]] All of the above automatically depends on <<commons-fileupload2-core>>.
 
    [[3]] The dependency version is <<${project.version}>>
 
-   [[4]] Change your imports from <<org.apache.commons.fileupload>> to <<org.apache.commons.fileupload2>>.
+   [[4]] Change your imports from the root <<org.apache.commons.fileupload>> to <<org.apache.commons.fileupload2>>.
    
    For example, change:
 
@@ -49,13 +51,13 @@ Migrating
    import org.apache.commons.fileupload.servlet.ServletFileUpload;
 +-------------------------------------------
 
-      to
+      to:
 
 +-------------------------------------------
    import org.apache.commons.fileupload2.jakarta.JakartaServletFileUpload;
 +-------------------------------------------
 
-      or
+      or:
 
 +-------------------------------------------
    import org.apache.commons.fileupload2.javax.JavaxServletFileUpload;