From 9102980c7a569707b5d0f85a6695276c02810380 Mon Sep 17 00:00:00 2001 From: Tamas Cservenak Date: Mon, 12 Aug 2024 11:00:09 +0200 Subject: [PATCH 1/5] Mild updates, align to latest Maven --- polyglot-kotlin/pom.xml | 6 ++++++ .../org/sonatype/maven/polyglot/kotlin/dsl/DSLSupport.kt | 2 +- polyglot-ruby/pom.xml | 2 +- polyglot-scala/pom.xml | 2 +- polyglot-xml/pom.xml | 1 + pom.xml | 8 ++++---- 6 files changed, 14 insertions(+), 7 deletions(-) diff --git a/polyglot-kotlin/pom.xml b/polyglot-kotlin/pom.xml index a5473455..42952746 100644 --- a/polyglot-kotlin/pom.xml +++ b/polyglot-kotlin/pom.xml @@ -58,6 +58,12 @@ kotlin-script-runtime ${kotlin.version} + + + org.apache.commons + commons-text + 1.12.0 + diff --git a/polyglot-kotlin/src/main/kotlin/org/sonatype/maven/polyglot/kotlin/dsl/DSLSupport.kt b/polyglot-kotlin/src/main/kotlin/org/sonatype/maven/polyglot/kotlin/dsl/DSLSupport.kt index d2181277..d83b8018 100644 --- a/polyglot-kotlin/src/main/kotlin/org/sonatype/maven/polyglot/kotlin/dsl/DSLSupport.kt +++ b/polyglot-kotlin/src/main/kotlin/org/sonatype/maven/polyglot/kotlin/dsl/DSLSupport.kt @@ -1,6 +1,6 @@ package org.sonatype.maven.polyglot.kotlin.dsl -import org.apache.commons.lang3.StringEscapeUtils.escapeJava +import org.apache.commons.text.StringEscapeUtils.escapeJava internal var propertiesFactory: () -> java.util.Properties = { java.util.Properties() } diff --git a/polyglot-ruby/pom.xml b/polyglot-ruby/pom.xml index 2248c17d..c1d9c5bf 100644 --- a/polyglot-ruby/pom.xml +++ b/polyglot-ruby/pom.xml @@ -158,7 +158,7 @@ - 3.0.2 + 3.0.3 diff --git a/polyglot-scala/pom.xml b/polyglot-scala/pom.xml index e5e00e5e..67c8f9ae 100644 --- a/polyglot-scala/pom.xml +++ b/polyglot-scala/pom.xml @@ -103,7 +103,7 @@ net.alchim31.maven scala-maven-plugin - 4.9.1 + 4.9.2 diff --git a/polyglot-xml/pom.xml b/polyglot-xml/pom.xml index c1908ec4..9dd2f6cb 100644 --- a/polyglot-xml/pom.xml +++ b/polyglot-xml/pom.xml @@ -38,6 +38,7 @@ org.codehaus.modello modello-maven-plugin + 2.4.0 src/main/mdo/maven.mdo diff --git a/pom.xml b/pom.xml index b0ba91c5..b6c47d60 100644 --- a/pom.xml +++ b/pom.xml @@ -28,8 +28,8 @@ - 3.9.5 - 0.9.0.M2 + 3.9.8 + 0.9.0.M3 3.5.1 @@ -223,7 +223,7 @@ maven-invoker-plugin - 3.6.1 + 3.7.0 test verify @@ -276,7 +276,7 @@ org.apache.maven.plugins maven-gpg-plugin - 3.2.4 + 3.2.5 sign-artifacts From 194f0ab8e9e5cb05144faf062ab23a2014d0127e Mon Sep 17 00:00:00 2001 From: Tamas Cservenak Date: Mon, 12 Aug 2024 12:20:06 +0200 Subject: [PATCH 2/5] Experiment: create custom Ruby distro Just for testing some stuff --- polyglot-ruby/pom.xml | 64 ++++++++++++++++++++++ polyglot-ruby/src/main/assembly/distro.xml | 54 ++++++++++++++++++ 2 files changed, 118 insertions(+) create mode 100644 polyglot-ruby/src/main/assembly/distro.xml diff --git a/polyglot-ruby/pom.xml b/polyglot-ruby/pom.xml index c1d9c5bf..ec38602a 100644 --- a/polyglot-ruby/pom.xml +++ b/polyglot-ruby/pom.xml @@ -180,6 +180,70 @@ + + org.apache.maven.plugins + maven-dependency-plugin + 3.7.1 + + + unpack-maven + + unpack + + package + + org.apache.maven:apache-maven:${mavenVersion}:zip:bin + + + + add-polyglot-ruby + + copy + + package + + + + ${project.groupId} + ${project.artifactId} + ${project.version} + ${project.packaging} + + + ${project.build.directory}/dependency/apache-maven-${mavenVersion}/lib/ext + + + + add-polyglot-ruby-dependencies + + copy-dependencies + + package + + runtime + ${project.build.directory}/dependency/apache-maven-${mavenVersion}/lib/ext + + + + + + org.apache.maven.plugins + maven-assembly-plugin + + + create-distro-packages + + single + + package + + + src/main/assembly/distro.xml + + + + + diff --git a/polyglot-ruby/src/main/assembly/distro.xml b/polyglot-ruby/src/main/assembly/distro.xml new file mode 100644 index 00000000..17a18f31 --- /dev/null +++ b/polyglot-ruby/src/main/assembly/distro.xml @@ -0,0 +1,54 @@ + + + + distro + + zip + tar.gz + + + + target/dependency/apache-maven-${mavenVersion} + ./ + + + target/dependency/apache-maven-${mavenVersion}/bin + bin + + *.cmd + *.conf + + dos + + + target/dependency/apache-maven-${mavenVersion}/bin + bin + + mvn + mvnDebug + + mvnyjp + + unix + 0755 + + + From 01033007092766dece5602f0f8a2ea961fa1126d Mon Sep 17 00:00:00 2001 From: Tamas Cservenak Date: Fri, 6 Sep 2024 17:26:47 +0200 Subject: [PATCH 3/5] Fix model processor --- polyglot-common/pom.xml | 6 ++++++ .../org/sonatype/maven/polyglot/TeslaModelProcessor.java | 8 +++----- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/polyglot-common/pom.xml b/polyglot-common/pom.xml index 8b1a4c61..55515c75 100644 --- a/polyglot-common/pom.xml +++ b/polyglot-common/pom.xml @@ -24,6 +24,12 @@ ${plexusUtilsVersion} provided + + org.scala-lang + scala-library + 2.13.14 + compile + diff --git a/polyglot-common/src/main/java/org/sonatype/maven/polyglot/TeslaModelProcessor.java b/polyglot-common/src/main/java/org/sonatype/maven/polyglot/TeslaModelProcessor.java index a7a96bda..b58c1c3f 100644 --- a/polyglot-common/src/main/java/org/sonatype/maven/polyglot/TeslaModelProcessor.java +++ b/polyglot-common/src/main/java/org/sonatype/maven/polyglot/TeslaModelProcessor.java @@ -31,8 +31,7 @@ import org.apache.maven.model.io.ModelReader; import org.apache.maven.model.io.xpp3.MavenXpp3Writer; import org.codehaus.plexus.util.FileUtils; -import org.codehaus.plexus.util.IOUtil; -import org.eclipse.sisu.Priority; +import org.eclipse.sisu.Typed; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.codehaus.plexus.util.ReaderFactory; @@ -44,10 +43,9 @@ * * @since 0.7 */ -//@Component(role = ModelProcessor.class, hint = "tesla-polyglot") @Singleton -@Named -@Priority(10) +@Named("tesla-polyglot") +@Typed(ModelProcessor.class) public class TeslaModelProcessor implements ModelProcessor { private static final String DEFAULT_POM_FILE = "pom.xml"; From 8e51f09ec8da0c6f7c8213d041fe3b9683db6a17 Mon Sep 17 00:00:00 2001 From: Tamas Cservenak Date: Fri, 6 Sep 2024 17:29:04 +0200 Subject: [PATCH 4/5] Remove added by mistake --- polyglot-common/pom.xml | 6 ------ 1 file changed, 6 deletions(-) diff --git a/polyglot-common/pom.xml b/polyglot-common/pom.xml index 55515c75..8b1a4c61 100644 --- a/polyglot-common/pom.xml +++ b/polyglot-common/pom.xml @@ -24,12 +24,6 @@ ${plexusUtilsVersion} provided - - org.scala-lang - scala-library - 2.13.14 - compile - From 8df3e81ce9abb71f4a4fb12f03cbe97731700ef4 Mon Sep 17 00:00:00 2001 From: Tamas Cservenak Date: Sat, 7 Sep 2024 20:21:12 +0200 Subject: [PATCH 5/5] Latest plugin --- polyglot-ruby/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/polyglot-ruby/pom.xml b/polyglot-ruby/pom.xml index ec38602a..1d65e165 100644 --- a/polyglot-ruby/pom.xml +++ b/polyglot-ruby/pom.xml @@ -183,7 +183,7 @@ org.apache.maven.plugins maven-dependency-plugin - 3.7.1 + 3.8.0 unpack-maven