]> source.dussan.org Git - aspectj.git/commitdiff
Replace JDiff by regular Maven dependency from GitHub Packages
authorAlexander Kriegisch <Alexander@Kriegisch.name>
Sat, 10 Apr 2021 04:27:33 +0000 (11:27 +0700)
committerAlexander Kriegisch <Alexander@Kriegisch.name>
Sat, 10 Apr 2021 04:27:33 +0000 (11:27 +0700)
One less SCM-committed binary, one less system-scoped dependency.

Signed-off-by: Alexander Kriegisch <Alexander@Kriegisch.name>
lib/jdiff/jdiff.jar [deleted file]
lib/jdiff/jdiffReadme.txt [deleted file]
libx/pom.xml
run-all-junit-tests/pom.xml
testing-util/pom.xml
testing/pom.xml

diff --git a/lib/jdiff/jdiff.jar b/lib/jdiff/jdiff.jar
deleted file mode 100644 (file)
index 792e2c5..0000000
Binary files a/lib/jdiff/jdiff.jar and /dev/null differ
diff --git a/lib/jdiff/jdiffReadme.txt b/lib/jdiff/jdiffReadme.txt
deleted file mode 100644 (file)
index bca6942..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-The jdiff library is a component from the JDiffPlugin by Andre Kaplan
-available from http://plugins.jedit.org/plugins/JDiffPlugin under the GPL.
index 463f01716e35055a97112fc6cf39cd57828bb8af..8670f1a08482a5e73c0528d219a716df4b30d07b 100644 (file)
               <sha1>c61a373f6d50ff8fcfba900934f7254d44f9735b</sha1>
             </configuration>
           </execution>
+          <!--
+            Obsolete because we uploaded both binary and source JARs to GitHub Packages, so we can use JDiff as a
+            normal dependency. Keep this for reference, so we can remember where we found it.
+          -->
+          <!--
           <execution>
-            <!--
-              Binary jdiff:jdiff:1.0.9 is available on Maven Central, but different from committed version.
-              There are API changes, some classes referenced in org.aspectj.testing.util.TestUtil are unavailable.
-              Therefore, we would have to try and port the existing functionality, making sure the tests still
-              run.
-
-              Downloading snapshot from
-              https://sourceforge.net/p/jedit/svn/24818/tree/plugins/JDiffPlugin/tags/jdiffplugin-1_2_2/jdiff/
-              produces exactly identical source files as in the committed JAR. But there is no corresponding Maven
-              artifact or even binary download package. We would have to compile the code within AspectJ and
-              deploy it locally or Sonatype (Maven Central) or maven.springframework.org.
-
-              Downloading source or binary packages from
-              https://sourceforge.net/projects/jedit-plugins/files/JDiffPlugin/1.3/
-              also has identical source files (except for tiny copyright changes), but contains more classes
-              (a superset of the committed ones). Again, there is no Maven artifact for it.
-
-              Another option would be to include the only 4 Java classes into the 'testing-util' source tree. They
-              are only used from there and could easily be compiled together with the module, package names
-              relocated or not.
-            -->
             <id>download-jdiff</id>
             <phase>generate-resources</phase>
             <goals>
               <sha1>eba63fd845203c6b245fbcb81c0de8e2c83d16c7</sha1>
             </configuration>
           </execution>
+          -->
         </executions>
       </plugin>
 
               </fileset>
             </configuration>
           </execution>
+          <!--
+            Obsolete because we uploaded both binary and source JARs to GitHub Packages, so we can use JDiff as a normal
+            dependency. Keep this for reference, so we can remember how we built it. After download + zip the deployment
+            was made right from the libx/jdiff directory, using the following commands (without the line breaks):
+
+            mvn -Dfile=jdiff.jar -DrepositoryId=github -Durl=https://maven.pkg.github.com/kriegaex/aspectj-packages
+              -DgroupId=jdiff -DartifactId=jdiff -Dpackaging=jar -Dversion=1.3
+              deploy:deploy-file
+
+            mvn -Dfile=jdiff-src.zip -DrepositoryId=github -Durl=https://maven.pkg.github.com/kriegaex/aspectj-packages
+              -DgroupId=jdiff -DartifactId=jdiff -Dpackaging=jar -Dversion=1.3
+              -Dtypes=java-source -Dclassifier=sources
+              deploy:deploy-file
+
+            The second command yields an error, trying to re-upload a POM, but that is no problem because the POM would
+            be identical to the one already uploaded with the first command.
+          -->
+          <!--
           <execution>
             <id>zip-jdiff-binaries</id>
             <phase>process-resources</phase>
             <configuration>
               <verbose>true</verbose>
               <fileset>
-                <!--
-                  This is why we use the TrueZIP plugin: It can seamlessly copy out of or into ZIP files as if they
-                  were normal file system paths. No additional moves and deletes with Antrun are necessary.
-                -->
                 <directory>jdiff/JDiffPlugin-1.3.zip/JDiffPlugin.jar</directory>
                 <outputDirectory>jdiff/jdiff.jar</outputDirectory>
                 <includes>
             <configuration>
               <verbose>true</verbose>
               <fileset>
-                <!--
-                  This is why we use the TrueZIP plugin: It can seamlessly copy out of or into ZIP files as if they
-                  were normal file system paths. No additional moves and deletes with Antrun are necessary.
-                -->
                 <directory>jdiff/JDiffPlugin-1.3.zip/JDiffPlugin</directory>
                 <outputDirectory>jdiff/jdiff-src.zip</outputDirectory>
                 <includes>
               </fileset>
             </configuration>
           </execution>
+          -->
         </executions>
       </plugin>
 
                     <include>asm/**</include>
                     <include>commons/**</include>
                     <include>jarjar/**</include>
-                    <include>jdiff/**</include>
+                    <!-- Obsolete because JDiff is on GitHub Packages now. Keep for reference. -->
+                    <!--<include>jdiff/**</include>-->
                     <include>jdtcore-aj/**</include>
                     <include>junit/**</include>
                     <include>regexp/**</include>
index f2613d996763b8a56ac359ed0461890a75603bbb..a2d8aa6046ad5252a03e6fac1776469cb7665d68 100644 (file)
                        <scope>system</scope>
                        <systemPath>${project.basedir}/../lib/ext/jrockit/jrockit.jar</systemPath>
                </dependency>
-               <dependency>
-                       <groupId>jdiff</groupId>
-                       <artifactId>jdiff</artifactId>
-                       <version>1.0</version>
-                       <scope>system</scope>
-                       <systemPath>${project.basedir}/../lib/jdiff/jdiff.jar</systemPath>
-               </dependency>
                <dependency>
                        <!-- Identical to lib/ant/lib/ant-launcher.jar, a former system-scoped dependency -->
                        <groupId>ant</groupId>
index 8e5262fd6024c9e16c6e0b5ccdce7a51834e129f..1b8da66664c499308a5165b2f62f60c857ba191b 100644 (file)
       <version>4.13</version>
     </dependency>
     <dependency>
+      <!-- Identical to lib/jdiff/jdiff.jar, a former system-scoped dependency. Now to be found on GitHub Packages. -->
       <groupId>jdiff</groupId>
       <artifactId>jdiff</artifactId>
-      <version>1.0</version>
-      <scope>system</scope>
-      <systemPath>${project.basedir}/../lib/jdiff/jdiff.jar</systemPath>
+      <version>1.3</version>
     </dependency>
   </dependencies>
 
index 660dec41f63c14f5905c4b212391ca7d4d8f3fb2..0f1089e1f8585c4422da03caf3081cde8a08f7a2 100644 (file)
       <artifactId>loadtime</artifactId>
       <version>${project.version}</version>
     </dependency>
-    <dependency>
-      <groupId>jdiff</groupId>
-      <artifactId>jdiff</artifactId>
-      <version>1.0</version>
-      <scope>system</scope>
-      <systemPath>${project.basedir}/../lib/jdiff/jdiff.jar</systemPath>
-    </dependency>
     <dependency>
       <!-- Identical to lib/ant/lib/ant.jar, a former system-scoped dependency -->
       <groupId>ant</groupId>