Google OR-Tools for Maven

Publishing Google OR-Tools as a Maven dependency

License

License

Categories

Categories

Java Languages
GroupId

GroupId

com.panavis.open-source
ArtifactId

ArtifactId

google-ortools-java
Last Version

Last Version

7.8.7961
Release Date

Release Date

Type

Type

jar
Description

Description

Google OR-Tools for Maven
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-ortools-java

How to add to project

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

Dependencies

compile (3)

Group / Artifact Type Version
net.java.dev.jna : jna-platform jar 5.5.0
net.java.dev.jna : jna jar 5.5.0
com.google.protobuf : protobuf-java jar 3.12.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.7961
7.8.7960
7.8.7959