From b6779de5d76af4cf89de19943324b592bb067c2d Mon Sep 17 00:00:00 2001 From: Alexander Kriegisch Date: Fri, 9 Apr 2021 14:00:57 +0700 Subject: [PATCH] Module 'asm-renamed' now deploys to GitHub Packages This means that instead of a system-scoped dependency we now have a regular one. The 'libx' module also downloads binary and source JARs redundantly into the libraries directory in order to be found there by other scripts and tests. Signed-off-by: Alexander Kriegisch --- ajdoc/pom.xml | 7 -- asm-renamed/pom.xml | 201 ++++++++++++++++++++++++++++++++++++++++++++ libx/pom.xml | 27 ++++++ pom.xml | 7 ++ tests/pom.xml | 7 +- weaver/pom.xml | 7 +- 6 files changed, 239 insertions(+), 17 deletions(-) create mode 100644 asm-renamed/pom.xml diff --git a/ajdoc/pom.xml b/ajdoc/pom.xml index 3b1b64f5d..f7ae7ab00 100644 --- a/ajdoc/pom.xml +++ b/ajdoc/pom.xml @@ -40,13 +40,6 @@ maven-jdk-tools-wrapper 0.1 - - asm - asm - 1.0 - system - ${project.basedir}/../lib/asm/asm-9.1.renamed.jar - diff --git a/asm-renamed/pom.xml b/asm-renamed/pom.xml new file mode 100644 index 000000000..bb29f7838 --- /dev/null +++ b/asm-renamed/pom.xml @@ -0,0 +1,201 @@ + + + 4.0.0 + + + + org.aspectj + aspectj-parent + 1.9.7.BUILD-SNAPSHOT + + + asm-renamed + ${asm.version} + + ASM for AspectJ + + This module relocates the original ASM artifact from package name 'org.objectweb.asm' to 'aj.org.objectweb.asm', + using Maven Shade Plugin. + + In order to avoid committing the binary to the AspectJ SCM repository and using it as a system-scoped dependency, we + deploy it to GitHub Packages. + + Whenever it is necessary to upgrade to a new ASM version in order to make AspectJ compatible with a new Java + version, please build and deploy this module after upgrading property 'asm.version'. Make sure you have a GitHub + token with the necessary access rights and section like this in your settings.xml: + + + github + MY_GITHUB_USER + MY_GITHUB_TOKEN + + ]]> + + Then you should be able to run 'mvn clean deploy' for this module and be fine. + + Caveat for IntelliJ IDEA: The project cannot be built in IDEA (Ctrl-F9) if this module is visible in the Maven view. + If so, right-click it and select "Unlink Maven Projects". Unfortunately, "Ignore Projects" is not enough. If Maven + knows of this Maven module, it cannot compile other modules depending on shaded class names, because it cannot find + the binaries. IDEA will just stop looking at the local Maven repository in this case. + + + + + github + GitHub Packages Release + https://maven.pkg.github.com/kriegaex/aspectj-packages + false + + + github + GitHub Packages Snapshot + https://maven.pkg.github.com/kriegaex/aspectj-packages + true + + + + + + + + org.apache.maven.plugins + maven-compiler-plugin + + + + default-compile + none + + + default-testCompile + none + + + + + + org.apache.maven.plugins + maven-source-plugin + + + true + + false + + false + + + + + attach-sources + package + + jar-no-fork + + + + + + + org.apache.maven.plugins + maven-jar-plugin + + + false + + + true + + + + + test-jar + none + + + + + + org.apache.maven.plugins + maven-shade-plugin + + true + false + false + + + + asm-relocate + package + + shade + + + false + true + + + ${project.groupId} + + + + + * + + META-INF/* + + + + + + org.objectweb.asm + aj.org.objectweb.asm + + + + + + + + + org.codehaus.mojo + flatten-maven-plugin + 1.2.2 + + + + flatten + process-resources + + flatten + + + oss + + remove + + ${project.build.directory} + flattened-pom.xml + + + + + + + + + + + org.ow2.asm + asm + + + + diff --git a/libx/pom.xml b/libx/pom.xml index c30de98e0..4c4817e79 100644 --- a/libx/pom.xml +++ b/libx/pom.xml @@ -175,6 +175,28 @@ jdtcore-for-aspectj-src.zip + + + org.aspectj + asm-renamed + ${asm.version} + jar + false + asm + asm-${asm.version}.renamed.jar + + + + org.aspectj + asm-renamed + ${asm.version} + java-source + sources + false + asm + asm-${asm.version}.renamed-src.zip + + @@ -233,6 +234,7 @@ ${lib.directory}/ant/bin/ant ${lib.directory}/ant/lib/junit.jar + ${lib.directory}/asm/asm-${asm.version}.renamed.jar ${lib.directory}/commons/commons.jar ${lib.directory}/jarjar/jarjar-1.3.jar ${lib.directory}/jdtcore-aj/jdtcore-for-aspectj.jar @@ -272,6 +274,11 @@ commons-beanutils ${lib.commons.beanutils.version} + + org.aspectj + asm-renamed + ${asm.version} + diff --git a/tests/pom.xml b/tests/pom.xml index 11f91a216..0f766d006 100644 --- a/tests/pom.xml +++ b/tests/pom.xml @@ -50,11 +50,8 @@ ${project.version} - asm - asm - 1.0 - system - ${project.basedir}/../lib/asm/asm-9.1.renamed.jar + org.aspectj + asm-renamed org.aspectj diff --git a/weaver/pom.xml b/weaver/pom.xml index 2973f7504..6bf419ab8 100644 --- a/weaver/pom.xml +++ b/weaver/pom.xml @@ -66,11 +66,8 @@ --> - asm - asm - 1.0 - system - ${project.basedir}/../lib/asm/asm-9.1.renamed.jar + org.aspectj + asm-renamed -- 2.39.5