Google OR-Tools for Java

Publishing Google OR-Tools as a Maven dependency

License

License

GroupId

GroupId

com.panavis.open-source
ArtifactId

ArtifactId

google-or-tools
Last Version

Last Version

7.8
Release Date

Release Date

Type

Type

jar
Description

Description

Google OR-Tools for Java
Publishing Google OR-Tools as a Maven dependency
Project URL

Project URL

https://github.com/panavis/google-or-tools-maven
Source Code Management

Source Code Management

http://github.com/panavis/google-or-tools-maven

Download google-or-tools

How to add to project

<!-- https://jarcasting.com/artifacts/com.panavis.open-source/google-or-tools/ -->
<dependency>
    <groupId>com.panavis.open-source</groupId>
    <artifactId>google-or-tools</artifactId>
    <version>7.8</version>
</dependency>
// https://jarcasting.com/artifacts/com.panavis.open-source/google-or-tools/
implementation 'com.panavis.open-source:google-or-tools:7.8'
// https://jarcasting.com/artifacts/com.panavis.open-source/google-or-tools/
implementation ("com.panavis.open-source:google-or-tools:7.8")
'com.panavis.open-source:google-or-tools:jar:7.8'
<dependency org="com.panavis.open-source" name="google-or-tools" rev="7.8">
  <artifact name="google-or-tools" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.panavis.open-source', module='google-or-tools', version='7.8')
)
libraryDependencies += "com.panavis.open-source" % "google-or-tools" % "7.8"
[com.panavis.open-source/google-or-tools "7.8"]

Dependencies

compile (1)

Group / Artifact Type Version
com.google.protobuf : protobuf-java jar 3.12.4

test (3)

Group / Artifact Type Version
org.slf4j : slf4j-api jar 1.7.30
ch.qos.logback : logback-classic Optional jar 1.2.3
org.junit.jupiter : junit-jupiter-engine jar 5.6.2

Project Modules

There are no modules declared in this project.

Google OR-Tools for Java

Creating a Maven dependency for Google OR-Tools

Official Google Project: https://github.com/google/or-tools

Usage

Add both dependencies to your project:

<dependency>
   <groupId>com.panavis.open-source</groupId>
   <artifactId>google-ortools-java</artifactId>
   <version>7.8.7961</version>
</dependency>

<dependency>
   <groupId>com.panavis.open-source</groupId>
   <artifactId>ortools-linux-x86-64</artifactId>
   <version>7.8.7959</version>
</dependency>

How To Reproduce this Project

Inspired by: https://github.com/oliviercailloux/google-or-tools-java

Generated the project using cmake

https://github.com/google/or-tools/blob/stable/cmake/doc/java.md

cmake -S. -Bbuild -DBUILD_JAVA=ON
cmake --build build
cmake --build build --target java_package

Note: Execute those commands in the root directory of the repository.
Otherwise, replace '.' with the actual source directory.

Java classes and JNI libraries will be generated in or-tools/java

From the ortools-linux-x86-64, grab the jar file.
Add to the ortools-java project as a local dependency.

Publishing To Maven Repository

Mostly followed: https://dzone.com/articles/publish-your-artifacts-to-maven-central
But also used ideas from: https://github.com/oliviercailloux/google-or-tools-java/blob/master/pom.xml

com.panavis.open-source

Panavis

Versions

Version
7.8