From 21684cc4c0e68d2dec43ab23043e6764b6316bb1 Mon Sep 17 00:00:00 2001 From: Dmitrii Tikhomirov Date: Tue, 13 Jun 2023 23:30:49 -0700 Subject: [PATCH] fix test poms --- README.md | 4 +- common/pom.xml | 2 +- .../generator/TranslationGenerator.java | 2 +- tests/commons/pom.xml | 141 ++++++++++++++++-- tests/entrypoint/jstype/pom.xml | 4 +- tests/entrypoint/pojo/pom.xml | 4 +- tests/es6shim/pom.xml | 6 +- tests/exports/pom.xml | 2 +- tests/pom.xml | 5 +- tests/translation/pom.xml | 4 +- tests/translation/pom_fr.xml | 4 +- tests/translation/pom_fr_nr.xml | 4 +- tests/translation/pom_no_bundle.xml | 4 +- 13 files changed, 153 insertions(+), 33 deletions(-) diff --git a/README.md b/README.md index ad03a30..4bae5e1 100644 --- a/README.md +++ b/README.md @@ -76,8 +76,8 @@ It contains the following features: }); ``` -* *@TranslationBundle* j2cl-maven-plugin 0.20 brings us support of Closure's `.xtb` translation bundles that are a very effective way to translate your application. - * Note: at the moment, `.xtb` support is only available for j2cl-maven-plugin 0.20 and above and works only in ADVANCED mode, otherwise default values will be used. +* *@TranslationBundle* j2cl-maven-plugin 0.21-SNAPSHOT brings us support of Closure's `.xtb` translation bundles that are a very effective way to translate your application. + * Note: at the moment, `.xtb` support is only available for j2cl-maven-plugin 0.21-SNAPSHOT and above and works only in ADVANCED mode, otherwise default values will be used. To use `@TranslationBundle`, you need to do the following steps: diff --git a/common/pom.xml b/common/pom.xml index f462cd1..63b9a6b 100644 --- a/common/pom.xml +++ b/common/pom.xml @@ -6,7 +6,7 @@ org.treblereel.j2cl.processors parent - 0.5.1 + 0.6-SNAPSHOT common diff --git a/processor/src/main/java/org/treblereel/j2cl/processors/generator/TranslationGenerator.java b/processor/src/main/java/org/treblereel/j2cl/processors/generator/TranslationGenerator.java index a8feb6a..62d9c07 100644 --- a/processor/src/main/java/org/treblereel/j2cl/processors/generator/TranslationGenerator.java +++ b/processor/src/main/java/org/treblereel/j2cl/processors/generator/TranslationGenerator.java @@ -169,7 +169,7 @@ private void writeMethod(StringBuilder sb, ExecutableElement method, String impl String key = getKey(method); JsMessage asJsMessage = toJsMessage(key, translationKey.defaultValue()); validatePlaceHolders(method, asJsMessage); - String jsMethodName = utils.createDeclarationMethodDescriptor(method).getMangledName(); + String jsMethodName = utils.createDeclarationMethodDescriptor(method).getMangledName(); sb.append(impl); sb.append(".prototype."); diff --git a/tests/commons/pom.xml b/tests/commons/pom.xml index 2cac6af..033baf2 100644 --- a/tests/commons/pom.xml +++ b/tests/commons/pom.xml @@ -1,21 +1,140 @@ - 4.0.0 - - org.treblereel.j2cl.processors - parent - 0.5.1 - ../../pom.xml - - commons + org.treblereel.j2cl + common-tests + 0.6-SNAPSHOT + + Common test cases + Common test cases + https://github.com/treblereel/gwt3-processors - 11 - 11 UTF-8 + UTF-8 + + 1.8 + 1.8 + 3.8.0 + 2.17 + 2.8.2 + 2.9 + 3.1.0 + 3.0.1 + 3.0 + 0.21-SNAPSHOT + 0.11.0-9336533b6 + 3.0-beta-02 + + 2.0.0 + 1.0.0 + 1.1.0 + + + org.treblereel.j2cl.processors + annotations + ${project.version} + + + com.google.jsinterop + jsinterop-annotations + ${jsinterop.annotations.version} + + + com.google.jsinterop + base + ${jsinterop.base.version} + + + + com.google.elemental2 + elemental2-dom + ${elemental2.version} + + + + + com.vertispan.j2cl + junit-annotations + ${maven.j2cl.version} + test + + + com.vertispan.j2cl + gwttestcase-emul + ${maven.j2cl.version} + sources + test + + + com.vertispan.j2cl + junit-emul + ${maven.j2cl.version} + test + + + junit + junit + 4.13.1 + test + + + + + + + org.apache.maven.plugins + maven-compiler-plugin + ${maven.compiler.version} + + + + org.treblereel.j2cl.processors + processors + ${project.version} + + + + + + com.vertispan.j2cl + j2cl-maven-plugin + ${maven.j2cl.plugin} + + + j2cl-test + test + + test + + + + + ADVANCED + IGNORE_MAVEN + chrome + + + + org.apache.maven.plugins + maven-surefire-plugin + ${maven.surefire.plugin} + + true + + + + org.apache.maven.plugins + maven-deploy-plugin + ${maven.deploy.plugin.version} + + true + + + + \ No newline at end of file diff --git a/tests/entrypoint/jstype/pom.xml b/tests/entrypoint/jstype/pom.xml index 4bb5bcb..15a6441 100644 --- a/tests/entrypoint/jstype/pom.xml +++ b/tests/entrypoint/jstype/pom.xml @@ -24,8 +24,8 @@ 3.1.0 3.0.1 3.0 - 0.20 - 0.10.0-3c97afeac + 0.21-SNAPSHOT + 0.11.0-9336533b6 3.0-beta-02 2.0.0 diff --git a/tests/entrypoint/pojo/pom.xml b/tests/entrypoint/pojo/pom.xml index 088ceb0..384bb70 100644 --- a/tests/entrypoint/pojo/pom.xml +++ b/tests/entrypoint/pojo/pom.xml @@ -24,8 +24,8 @@ 3.1.0 3.0.1 3.0 - 0.20 - 0.10.0-3c97afeac + 0.21-SNAPSHOT + 0.11.0-9336533b6 3.0-beta-02 2.0.0 diff --git a/tests/es6shim/pom.xml b/tests/es6shim/pom.xml index 154d175..2490d93 100644 --- a/tests/es6shim/pom.xml +++ b/tests/es6shim/pom.xml @@ -25,8 +25,8 @@ 3.1.0 3.0.1 3.0 - 0.20 - 0.10.0-3c97afeac + 0.21-SNAPSHOT + 0.11.0-9336533b6 3.0-beta-02 2.0.0 @@ -101,7 +101,7 @@ com.vertispan.j2cl j2cl-maven-plugin - 0.20 + 0.21-SNAPSHOT ADVANCED IGNORE_MAVEN diff --git a/tests/exports/pom.xml b/tests/exports/pom.xml index cabdca2..b14245a 100644 --- a/tests/exports/pom.xml +++ b/tests/exports/pom.xml @@ -25,7 +25,7 @@ 3.1.0 3.0.1 3.0 - 0.20 + 0.21-SNAPSHOT 3.0-beta-02 2.0.0 diff --git a/tests/pom.xml b/tests/pom.xml index 5276f0d..3e7e3bd 100644 --- a/tests/pom.xml +++ b/tests/pom.xml @@ -19,7 +19,7 @@ 1.8 1.8 - 0.20 + 0.21-SNAPSHOT 2.17 2.8.2 3.0-beta-02 @@ -29,7 +29,7 @@ 1.0.0 1.1.0 - 0.10.0-3c97afeac + 0.11.0-9336533b6 4.11 @@ -42,6 +42,7 @@ translation/pom_fr.xml translation/pom_fr_nr.xml resources + commons diff --git a/tests/translation/pom.xml b/tests/translation/pom.xml index 6248ef1..973b7ff 100644 --- a/tests/translation/pom.xml +++ b/tests/translation/pom.xml @@ -25,8 +25,8 @@ 3.1.0 3.0.1 3.0 - 0.20 - 0.10.0-3c97afeac + 0.21-SNAPSHOT + 0.11.0-9336533b6 3.0-beta-02 2.0.0 diff --git a/tests/translation/pom_fr.xml b/tests/translation/pom_fr.xml index 26920b7..25256da 100644 --- a/tests/translation/pom_fr.xml +++ b/tests/translation/pom_fr.xml @@ -25,8 +25,8 @@ 3.1.0 3.0.1 3.0 - 0.20 - 0.10.0-3c97afeac + 0.21-SNAPSHOT + 0.11.0-9336533b6 3.0-beta-02 2.0.0 diff --git a/tests/translation/pom_fr_nr.xml b/tests/translation/pom_fr_nr.xml index df5e639..463525d 100644 --- a/tests/translation/pom_fr_nr.xml +++ b/tests/translation/pom_fr_nr.xml @@ -25,8 +25,8 @@ 3.1.0 3.0.1 3.0 - 0.20 - 0.10.0-3c97afeac + 0.21-SNAPSHOT + 0.11.0-9336533b6 3.0-beta-02 2.0.0 diff --git a/tests/translation/pom_no_bundle.xml b/tests/translation/pom_no_bundle.xml index 353c7b5..97b6f52 100644 --- a/tests/translation/pom_no_bundle.xml +++ b/tests/translation/pom_no_bundle.xml @@ -29,8 +29,8 @@ 3.1.0 3.0.1 3.0 - 0.20 - 0.10.0-3c97afeac + 0.21-SNAPSHOT + 0.11.0-9336533b6 3.0-beta-02 2.0.0