Open miurahr opened 1 month ago
It may be caused by GitHub actions script
- name: Update dictionary version in LT pom.xml
working-directory: ${{ env.FR_DICT_HOME }}
run: |
poetry run python "dict_tools/scripts/update_pom.py" \
--new-version "${{ env.FR_DICT_VERSION }}" \
--package-name "french-pos-dict"
@jaumeortola Any idea what the issue might be?
When prepare gradle project with configuration like
plugins {
id 'java'
}
repositories {
mavenCentral()
}
dependencies {
implementation 'org.languagetool:language-fr:6.4'
}
and run gradle command like
./gradlew dependencies --scan
then I got command output
runtimeClasspath - Runtime classpath of source set 'main'.
\--- org.languagetool:language-fr:6.4
+--- org.languagetool:french-pos-dict:0.6 FAILED
and gradle scan report
inconsistent module metadata found. Descriptor: org.languagetool:french-pos-dict:${env.FR_DICT_VERSION} Errors: bad version: expected='0.6' found='${env.FR_DICT_VERSION}'
It cause any downstream project which use gradle as build system got error from french module.
It was "0.5" in v0.5 release. It become ${env.FR_DICT_VERSION}
in v0.6.
https://github.com/languagetool-org/french-pos-dict/blob/master/results/java-lt/pom.xml#L8
@miurahr obviously something's wrong when resolving the environment variables. I'll have a look and report back soon. I'll follow up on this in the Portuguese repo and propagate the solution to this one once I've got it.
The issue is fixed in the GHA workflow (as it is for Portuguese).
As discussed in https://github.com/languagetool-org/portuguese-pos-dict/issues/44, this will affect future releases, but changing the version in the POM of already released artefacts will require extra juggling of Nexus permissions. I'll talk about it with @jaumeortola once he's back.
Published jar bundles pom.xml with a wrong version string
${env.FR_DICT_VERSION}
Affected version : 0.6 The jar file checked: https://repo1.maven.org/maven2/org/languagetool/french-pos-dict/0.6/ A path in archive:
/META-INF/maven/org.languagetool/french-pos-dict/pom.xml