Skip to content

Commit 5a790dd

Browse files
committed
Merge branch 'hotfix/1.5.2'
2 parents 4b0b211 + 9f455a6 commit 5a790dd

File tree

3 files changed

+35
-10
lines changed

3 files changed

+35
-10
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ If you want to play with this library and do not have a license of CPLEX, you ca
2626
[Community Edition of IBM ILOG CPLEX Optimization Studio](https://www-01.ibm.com/software/websphere/products/optimization/cplex-studio-community-edition/)
2727

2828
To build this library use the Gradle wrapper provided or install [Gradle 2.10](https://gradle.org) and set the environment variable `CPLEX_STUDIO_HOME` (e.g.
29-
on windows `C:\IBM\ILOG\CPLEX_Studio128`).
29+
on windows `C:\IBM\ILOG\CPLEX_Studio129`).
3030

3131
Then do:
3232

RELEASENOTES.md

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,30 @@
11
# Release Notes of cplex-scala: A Scala library for IBM ILOG CPLEX
22

3+
## cplex-scala v1.5.2
4+
5+
This is a hotfix:
6+
7+
* Update build.gradle: use default values for environment variables for Nexus
8+
9+
The library cplex-scala.jar is the same as the same as in release 1.5.0.
10+
11+
## cplex-scala v1.5.1
12+
13+
This is a hotfix:
14+
15+
* Update release notes for release 1.5.0
16+
* Fix issues in Jenkinsfile
17+
18+
The library cplex-scala.jar is the same as the same as in release 1.5.0.
19+
20+
321
## cplex-scala v1.5.0
422

523
* Update Gradle wrapper to release 5.4
624
* Add API for multi-objective in MpModel: see example DietMultiObj.scala
7-
* Define method apply in classes `NumArray`, `IntArray`, `NumVarArray` and `IntVarArray` for element constraint.
25+
* Define method apply in classes `NumArray`, `IntArray` and `IntExprArray` for element constraint: this allows to
26+
write constructs like `cost = costs(supplier)` where costs is an array of integer, supplier is an integer variable
27+
and `cost` is an integer expression that represents the cost of the chosen supplier. See Facility.scala for a complete example..
828
* Add operator * on classes `NumArray`, `IntArray`, `NumVarArray` and `IntVarArray`for scalar product.
929
* Refactoring:
1030
* Add class Modeler to build optimization model: CpModel and MpModel now inherits from Modeler

build.gradle

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*/
66

77
group 'com.decisionbrain'
8-
version '1.5.0'
8+
version '1.5.2'
99

1010
apply plugin: 'java'
1111
apply plugin: 'scala'
@@ -19,6 +19,18 @@ apply from: 'gradle/cplex_plugin.gradle'
1919
// DecisionBrain Nexus Repository for Jar files and Docker images
2020
//
2121

22+
ext {
23+
if (!project.hasProperty('NEXUS_URL'))
24+
NEXUS_URL = "None"
25+
if (!project.hasProperty('MAVEN_USER'))
26+
MAVEN_USER= "None"
27+
if (!project.hasProperty('MAVEN_PASSWORD'))
28+
MAVEN_PASSWORD = "None"
29+
}
30+
31+
println("Nexus URL: $NEXUS_URL")
32+
println("Maven user: $MAVEN_USER")
33+
2234
task sourcesJar(type: Jar) {
2335
archiveClassifier = 'sources'
2436
from sourceSets.main.allJava
@@ -73,13 +85,6 @@ repositories {
7385
if (!gradle.startParameter.refreshDependencies) {
7486
mavenLocal()
7587
}
76-
maven {
77-
credentials {
78-
username "$MAVEN_USER"
79-
password "$MAVEN_PASSWORD"
80-
}
81-
url "$NEXUS_URL/repository/public"
82-
}
8388
mavenCentral()
8489
}
8590

0 commit comments

Comments
 (0)