google / or-tools

Google's Operations Research tools:
https://developers.google.com/optimization/
Apache License 2.0
10.79k stars 2.09k forks source link

9.1 release's maven dependency for linux-x86-64 has a different version than the rest of the jars #2802

Closed lalithsuresh closed 2 years ago

lalithsuresh commented 2 years ago

What version of OR-Tools and what language are you using? Version: 9.1 Language: Java

Which solver are you using (e.g. CP-SAT, Routing Solver, GLOP, BOP, Gurobi)

CP-SAT

What operating system (Linux, Windows, ...) and version?

Mac 11.6

What did you do? Use the latest ortools-java release [1] via gradle like so:

implementation 'com.google.ortools:ortools-java:9.1.9490'

[1] https://search.maven.org/artifact/com.google.ortools/ortools-java/9.1.9490/jar

What did you expect to see

Build would work just fine.

What did you see instead?

Gradle complains about not being able to find the linux dependency within the wrapper jar. Could not find com.google.ortools:ortools-linux-x86-64:9.1.9490.

The reason is that the version number for the linux-x86 jar (9.1.9491) differs from that of the rest (9.1.9490).

See here: https://search.maven.org/search?q=com.google.ortools

Anything else we should know about your project / environment

ugurakkurt commented 2 years ago

I temporarily resolved this issue by overridind the ortools-linux-x86-64 dependency by putting

`

com.google.ortools
  <artifactId>ortools-linux-x86-64</artifactId>
  <version>9.1.9491</version>
  <type>jar</type>
  <scope>runtime</scope>
</dependency>`
Mizux commented 2 years ago

Shame on me should be fixed now: https://mvnrepository.com/artifact/com.google.ortools/ortools-linux-x86-64