MathParser.org-mXparser
MathParser.org-mXparser copied to clipboard
Getting weird error when using with gradle
in plain Java-OpenJDK (not android) I'm getting:
12:18:06 Errors occurred while build effective model from /mnt/ebs/jenkins/.gradle/caches/modules-2/files-2.1/org.mariuszgromada.math/MathParser.org-mXparser/5.2.1/4a5ae2e93b23415b779e05547d28f2e066759547/MathParser.org-mXparser-5.2.1.pom:
12:18:06 'build.resources.resource.directory' is missing. in org.mariuszgromada.math:MathParser.org-mXparser:5.2.1
dependency is defined as
api group: 'org.mariuszgromada.math', name: 'MathParser.org-mXparser', version: '5.2.1'
❯ ./gradlew --version
------------------------------------------------------------
Gradle 7.4.2
------------------------------------------------------------
Build time: 2022-03-31 15:25:29 UTC
Revision: 540473b8118064efcc264694cbcaa4b677f61041
Kotlin: 1.5.31
Groovy: 3.0.9
Ant: Apache Ant(TM) version 1.10.11 compiled on July 10 2021
JVM: 17.0.6 (Azul Systems, Inc. 17.0.6+10-LTS)
OS: Mac OS X 13.2.1 aarch64
Unfortunately, with this very short description, I might not be able to help you :-(
it's basically what I get in gradle when I add the dependency to the 5.2.1 version of the artifact. the POM contains an empty tag that causes this error
I get he same error message with org.mariuszgromada.math:MathParser.org-mXparser:5.2.1 and Gradle 8.5
@flozano what is the tag name that is causing this problem?
@mariuszgromada it's in my original description : build.resources.resource.directory
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.mariuszgromada.math</groupId>
<artifactId>MathParser.org-mXparser</artifactId>
<version>5.2.1</version>
<packaging>jar</packaging>
<name>MathParser.org-mXparser - Math Expressions Parser / Formula Evaluator library for JAVA Android C#
<!-- ... -->
<build>
<!-- ... -->
<resources>
<resource>
<directory></directory>
<includes>
<include>LICENSE</include>
</includes>
<targetPath>META-INF</targetPath>
</resource>
</resources>
</build>
<!-- ... -->
</project>
I think it might be the "<directory></directory>" empty tag, I will fix it soon.