Skip to content

Commit 0f734bf

Browse files
committed
Merge branch 'hotfix-4.10.16'
2 parents 1990489 + f8dfe8f commit 0f734bf

File tree

18 files changed

+34
-203
lines changed

18 files changed

+34
-203
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ name: "CodeQL"
1313

1414
on:
1515
push:
16-
branches: [ master ]
16+
branches: [ master, develop ]
1717
pull_request:
1818
# The branches below must be a subset of the branches above
19-
branches: [ master ]
19+
branches: [ master, develop ]
2020
schedule:
2121
- cron: '0 0 * * 0'
2222

.github/workflows/draft-pdf.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
name: Draft JOSS Paper
22

3-
on: [push]
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
47

58
jobs:
69
paper:

.github/workflows/maven-publish.yml

Lines changed: 0 additions & 171 deletions
This file was deleted.

.github/workflows/maven-test.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,7 @@
33

44
name: Java CI with Maven
55

6-
on:
7-
push:
8-
branches: [ master ]
9-
pull_request:
10-
branches: [ master ]
6+
on: [push, pull_request]
117

128
jobs:
139
test-solver:

.github/workflows/publish-snapshot.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ on:
66
workflows: [ "Java CI with Maven" ]
77
types: [completed]
88
push:
9-
branches:
10-
- master
9+
branches: [ develop ]
10+
tags: [ 'v*' ]
1111

1212
jobs:
1313
publish:
@@ -26,8 +26,9 @@ jobs:
2626
server-password: MAVEN_PASSWORD
2727
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
2828
gpg-passphrase: MAVEN_GPG_PASSPHRASE
29+
2930
- name: publish packages
30-
run: mvn -P ossrhDeploy --batch-mode -DskipTests javadoc:aggregate-jar source:jar deploy
31+
run: mvn -s scripts/settings.xml -P ossrhDeploy --batch-mode -DskipTests javadoc:aggregate-jar source:jar deploy
3132
env:
3233
MAVEN_USERNAME: ${{ secrets.OSS_SONATYPE_USERNAME }}
3334
MAVEN_PASSWORD: ${{ secrets.OSS_SONATYPE_PASSWORD }}

CHANGES.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,14 @@ Choco Solver ChangeLog
44
This file is dedicated to sum up the new features added and bugs fixed in Choco-solver since the version, 4.0.0.
55
**Note**: double-space is replaced by "\t" character on release process. Make sure the format is ok.
66

7+
4.10.16 - 12 Sep 2024
8+
-------------------
9+
10+
### Hotfix
11+
- Fix bug in `IntAffineView` (#1101)
12+
13+
**Full Changelog**: https://github.com/chocoteam/choco-solver/compare/v4.10.15...v4.10.16
14+
715
4.10.15 - 09 Sep 2024
816
-------------------
917

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
Choco-solver is an open-source Java library for Constraint Programming.
2020

21-
Current stable version is 4.10.15 (09 Sep 2024).
21+
Current stable version is 4.10.16 (12 Sep 2024).
2222

2323
Choco-solver comes with:
2424
- various type of variables (integer, boolean, set, graph and real),
@@ -125,7 +125,7 @@ So you only have to edit your `pom.xml` to declare the following library depende
125125
<dependency>
126126
<groupId>org.choco-solver</groupId>
127127
<artifactId>choco-solver</artifactId>
128-
<version>4.10.15</version>
128+
<version>4.10.16</version>
129129
</dependency>
130130
```
131131

examples/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<parent>
1818
<groupId>org.choco-solver</groupId>
1919
<artifactId>choco</artifactId>
20-
<version>4.10.15</version>
20+
<version>4.10.16</version>
2121
</parent>
2222
<artifactId>examples</artifactId>
2323
<packaging>jar</packaging>

parsers/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<parent>
1818
<groupId>org.choco-solver</groupId>
1919
<artifactId>choco</artifactId>
20-
<version>4.10.15</version>
20+
<version>4.10.16</version>
2121
</parent>
2222
<artifactId>choco-parsers</artifactId>
2323
<packaging>jar</packaging>

parsers/src/main/java/org/chocosolver/parser/flatzinc/Flatzinc.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ public Thread actionOnKill() {
126126
@Override
127127
public void createSolver() {
128128
if (level.isLoggable(Level.COMPET)) {
129-
System.out.println("%% Choco 240909_14:08");
129+
System.out.println("%% Choco 240912_11:16");
130130
}
131131
super.createSolver();
132132
datas = new Datas[nb_cores];

parsers/src/main/java/org/chocosolver/parser/xcsp/XCSP.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public Thread actionOnKill() {
7070
public void createSolver() {
7171
super.createSolver();
7272
if (level.isLoggable(Level.COMPET)) {
73-
System.out.println("c Choco 240909_14:08");
73+
System.out.println("c Choco 240912_11:16");
7474
}
7575
String iname = Paths.get(instance).getFileName().toString();
7676
parsers = new XCSPParser[nb_cores];

parsers/src/main/minizinc/fzn-choco.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import sys
88

99
# THIS IS WHERE YOU NEED TO CHANGE THE PATH TO THE JAR FILE
10-
JAR_FILE='~/.m2/repository/org/choco-solver/choco-parsers/4.10.15/choco-parsers-4.10.15-light.jar'
10+
JAR_FILE='~/.m2/repository/org/choco-solver/choco-parsers/4.10.16/choco-parsers-4.10.16-light.jar'
1111

1212
JVM_ARGS = '-server -Xss64M -Xms2G -Xmx8G -XX:NewSize=512M'
1313
LOG_LEVEL = 'COMPET'

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<modelVersion>4.0.0</modelVersion>
1616
<groupId>org.choco-solver</groupId>
1717
<artifactId>choco</artifactId>
18-
<version>4.10.15</version>
18+
<version>4.10.16</version>
1919
<packaging>pom</packaging>
2020
<name>choco</name>
2121
<url>http://choco-solver.org/</url>

scripts/set_version.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ then
2929
DAT=$(LANG=en_US.utf8 date +"%Y-%m")
3030
YEAR=$(LANG=en_US.utf8 date +"%Y")
3131
d=$(LANG=en_US.utf8 date +"%d %b %Y")
32+
DATE=$(LANG=en_US.utf8 date +'%y%m%d_%H:%M')
3233

3334
## The README.md
3435
# Update of the version number for maven usage
@@ -42,6 +43,8 @@ then
4243

4344
## The configuration file
4445
sedInPlace "s%.*Constraint Programming Solver, Copyright.*% \"** Choco $VERSION \($DAT\) : Constraint Programming Solver, Copyright \(c\) 2010-$YEAR\";%" ./solver/src/main/java/org/chocosolver/solver/trace/IOutputFactory.java
46+
sedInPlace "s| System.out.println(\"c Choco .*| System.out.println(\"c Choco $DATE\");|" parsers/src/main/java/org/chocosolver/parser/xcsp/XCSP.java
47+
sedInPlace "s| System.out.println(\"%% Choco .*| System.out.println(\"%% Choco $DATE\");|" parsers/src/main/java/org/chocosolver/parser/flatzinc/Flatzinc.java
4548

4649
## For MiniZinc
4750
sedInPlace "s% \"version\": .*% \"version\": \"$VERSION\",%" ./parsers/src/main/minizinc/choco.msc

solver/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<parent>
1818
<groupId>org.choco-solver</groupId>
1919
<artifactId>choco</artifactId>
20-
<version>4.10.15</version>
20+
<version>4.10.16</version>
2121
</parent>
2222
<artifactId>choco-solver</artifactId>
2323
<packaging>jar</packaging>

solver/src/main/java/org/chocosolver/solver/trace/IOutputFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public interface IOutputFactory extends ISelf<Solver> {
4040
* Default welcome message
4141
*/
4242
String WELCOME_MESSAGE =
43-
"** Choco 4.10.15 (2024-09) : Constraint Programming Solver, Copyright (c) 2010-2024";
43+
"** Choco 4.10.16 (2024-09) : Constraint Programming Solver, Copyright (c) 2010-2024";
4444

4545
/**
4646
* Print the version message.

solver/src/main/java/org/chocosolver/solver/variables/impl/AbstractVariable.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -501,15 +501,15 @@ public ICause getCause() {
501501
}
502502

503503
@Override
504-
public boolean equals(Object o) {
504+
public final boolean equals(Object o) {
505505
if (this == o) return true;
506506
if (!(o instanceof AbstractVariable)) return false;
507507
AbstractVariable that = (AbstractVariable) o;
508508
return ID == that.ID;
509509
}
510510

511511
@Override
512-
public int hashCode() {
512+
public final int hashCode() {
513513
return ID;
514514
}
515515
}

solver/src/main/java/org/chocosolver/solver/variables/view/integer/IntAffineView.java

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -536,15 +536,6 @@ public boolean hasEnumeratedDomain() {
536536
return var.hasEnumeratedDomain() || a > 1;
537537
}
538538

539-
@Override
540-
public boolean equals(Object o) {
541-
if (this == o) return true;
542-
if (!(o instanceof IntAffineView)) return false;
543-
544-
IntAffineView<?> intView = (IntAffineView<?>) o;
545-
if (!var.equals(intView.var)) return false;
546-
return a == intView.a && b == intView.b && p == intView.p;
547-
}
548539

549540
public boolean equals(IntVar v, int a, int b) {
550541
if (!this.var.equals(v)) return false;

0 commit comments

Comments
 (0)