Skip to content

Commit

Permalink
build: release version 1.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
timefold-release authored and triceo committed Dec 7, 2023
1 parent 59f368c commit db8a049
Show file tree
Hide file tree
Showing 46 changed files with 269 additions and 203 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:

# Build and test
- name: "Setup Java and Maven"
uses: actions/setup-java@v4
uses: actions/setup-java@v3
with:
java-version: ${{matrix.java-version}}
distribution: 'temurin'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pull_request_gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ jobs:

# Build the solver
- name: "Setup Java and Maven"
uses: actions/setup-java@v4
uses: actions/setup-java@v3
with:
java-version: 17
distribution: 'temurin'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
with:
fetch-depth: 0

- uses: actions/setup-java@v4
- uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
Expand Down
15 changes: 12 additions & 3 deletions README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ a|* <<school-timetabling, School timetabling>>
* <<employee-scheduling, Employee Scheduling>>
* <<food-packaging, Food packaging>>
* <<vehicle-routing-with-capacity, Vehicle Routing with capacity>>
* <<vehicle-routing-with-time-windows, Vehicle Routing with time windows>>

a|* link:use-cases/school-timetabling/README.adoc[Quarkus] (Java, Maven or Gradle, Quarkus, H2)
* link:technology/java-spring-boot/README.adoc[Spring Boot] (Java, Maven or Gradle, Spring Boot, H2)
Expand Down Expand Up @@ -122,11 +123,19 @@ image::build/quickstarts-showcase/src/main/resources/META-INF/resources/screensh

=== Vehicle Routing with capacity

Find the most efficient routes for a fleet of vehicles.
Find the most efficient routes for a fleet of vehicles with capacity.

image::build/quickstarts-showcase/src/main/resources/META-INF/resources/screenshot/quarkus-vehicle-routing-screenshot.png[]
image::build/quickstarts-showcase/src/main/resources/META-INF/resources/screenshot/quarkus-vehicle-routing-capacity-screenshot.png[]

* link:use-cases/vehicle-routing-capacity/README.adoc[Run quarkus-vehicle-routing] (Java, Maven, Quarkus)
* link:use-cases/vehicle-routing-capacity/README.adoc[Run quarkus-vehicle-routing-capacity] (Java, Maven, Quarkus)

=== Vehicle Routing with time windows

Find the most efficient routes for field service technicians to visits with time windows.

image::build/quickstarts-showcase/src/main/resources/META-INF/resources/screenshot/quarkus-vehicle-routing-time-windows-screenshot.png[]

* link:use-cases/vehicle-routing-time-windows/README.adoc[Run quarkus-vehicle-routing-time-windows] (Java, Maven, Quarkus)

=== Timefold examples (desktop)

Expand Down
2 changes: 1 addition & 1 deletion build/quickstarts-showcase/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>ai.timefold.solver</groupId>
<artifactId>timefold-solver-quickstarts-parent</artifactId>
<version>1.4.0</version>
<version>1.5.0</version>
<relativePath>../../pom.xml</relativePath>
</parent>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,13 @@
<include>quarkus-app/**</include>
</includes>
</fileSet>
<fileSet>
<directory>../../use-cases/vehicle-routing-time-windows/target</directory>
<outputDirectory>quickstarts/binaries/use-cases/vehicle-routing-time-windows</outputDirectory>
<includes>
<include>quarkus-app/**</include>
</includes>
</fileSet>
<fileSet>
<directory>../../use-cases/call-center/target</directory>
<outputDirectory>quickstarts/binaries/use-cases/call-center</outputDirectory>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ public void setup(@Observes StartupEvent startupEvent) {
new QuickstartMeta("vaccination-scheduling"),
new QuickstartMeta("call-center"),
new QuickstartMeta("vehicle-routing-capacity"),
new QuickstartMeta("vehicle-routing-time-windows"),
new QuickstartMeta("order-picking"),
new QuickstartMeta("employee-scheduling"),
new QuickstartMeta("food-packaging"));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,9 @@ $(document).ready(function () {
$("#vehicle-routing-capacity-launch").click(function () {
launchQuickstart("vehicle-routing-capacity");
});
$("#vehicle-routing-time-windows-launch").click(function () {
launchQuickstart("vehicle-routing-time-windows");
});
$("#order-picking-launch").click(function () {
launchQuickstart("order-picking");
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,10 @@ <h5>
Vehicle routing with capacity
</h5>
</div>
<img src="screenshot/quarkus-vehicle-routing-screenshot.png" class="card-img-top mt-3" alt="Screenshot"/>
<img src="screenshot/quarkus-vehicle-routing-capacity-screenshot.png" class="card-img-top mt-3" alt="Screenshot"/>
<div class="card-body">
<p class="card-text">
Find the most efficient routes for a fleet of vehicles.
Find the most efficient routes for a fleet of vehicles with capacity.
</p>
<button id="vehicle-routing-capacity-launch" type="button" class="btn btn-primary w-100">
<span class="fas fa-play"></span> Launch
Expand All @@ -123,6 +123,26 @@ <h5>
</div>
</div>
</div>
<div class="col mb-4">
<div class="card">
<div class="card-header">
<h5>
<i class="fas fa-truck"></i>
Vehicle routing with time windows
</h5>
</div>
<img src="screenshot/quarkus-vehicle-routing-time-windows-screenshot.png" class="card-img-top mt-3" alt="Screenshot"/>
<div class="card-body">
<p class="card-text">
Find the most efficient routes for field service technicians to visits with time windows.
</p>
<button id="vehicle-routing-time-windows-launch" type="button" class="btn btn-primary w-100">
<span class="fas fa-play"></span> Launch
</button>
<div id="vehicle-routing-time-windows-ports" class="row row-cols-1 row-cols-md-3 mt-3"></div>
</div>
</div>
</div>
<div class="col mb-4">
<div class="card">
<div class="card-header">
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion hello-world/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ plugins {
id "application"
}

def timefoldVersion = "1.4.0"
def timefoldVersion = "1.5.0"
def logbackVersion = "1.4.11"
def junitJupiterVersion = "5.10.0"
def assertjVersion = "3.24.2"
Expand Down
4 changes: 2 additions & 2 deletions hello-world/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<jar.with.dependencies.name>hello-world-run</jar.with.dependencies.name>

<version.ai.timefold.solver>1.4.0</version.ai.timefold.solver>
<version.ai.timefold.solver>1.5.0</version.ai.timefold.solver>
<version.org.assertj>3.24.2</version.org.assertj>
<version.org.junit.jupiter>5.10.1</version.org.junit.jupiter>
<version.org.logback>1.4.12</version.org.logback>
<version.org.logback>1.4.14</version.org.logback>

<version.compiler.plugin>3.11.0</version.compiler.plugin>
<version.surefire.plugin>3.2.2</version.surefire.plugin>
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>ai.timefold.solver</groupId>
<artifactId>timefold-solver-build-parent</artifactId>
<version>1.4.0</version>
<version>1.5.0</version>
<relativePath/>
</parent>
<!-- IMPORTANT: the individual quickstarts have no parent pom. -->
Expand Down
3 changes: 1 addition & 2 deletions runQuickstartsFromSource.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,5 @@
cd "$(dirname $0)" || exit

cd build
./mvnw -f .. verify -DskipTests &&
./mvnw -f quickstarts-showcase quarkus:dev -Dstartup-open-browser=true
./mvnw -f quickstarts-showcase quarkus:dev -Dstartup-open-browser=true
cd ..
2 changes: 1 addition & 1 deletion technology/java-spring-boot/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ plugins {
id "java"
}

def timefoldVersion = "1.4.0"
def timefoldVersion = "1.5.0"
def assertjVersion = "3.24.2"

group = "org.acme"
Expand Down
6 changes: 3 additions & 3 deletions technology/java-spring-boot/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
<maven.compiler.release>17</maven.compiler.release>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

<version.ai.timefold.solver>1.4.0</version.ai.timefold.solver>
<version.org.springframework.boot>3.1.5</version.org.springframework.boot>
<version.ai.timefold.solver>1.5.0</version.ai.timefold.solver>
<version.org.springframework.boot>3.2.0</version.org.springframework.boot>

<version.compiler.plugin>3.11.0</version.compiler.plugin>
<version.surefire.plugin>3.2.2</version.surefire.plugin>
Expand Down Expand Up @@ -91,7 +91,7 @@
<dependency>
<groupId>org.webjars</groupId>
<artifactId>webjars-locator</artifactId>
<version>0.48</version>
<version>0.50</version>
<scope>runtime</scope>
</dependency>
<dependency>
Expand Down
6 changes: 3 additions & 3 deletions technology/kotlin-quarkus/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
<maven.compiler.release>17</maven.compiler.release>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

<version.io.quarkus>3.5.0</version.io.quarkus>
<version.kotlin>1.9.20</version.kotlin>
<version.ai.timefold.solver>1.4.0</version.ai.timefold.solver>
<version.io.quarkus>3.6.1</version.io.quarkus>
<version.kotlin>1.9.21</version.kotlin>
<version.ai.timefold.solver>1.5.0</version.ai.timefold.solver>

<version.compiler.plugin>3.11.0</version.compiler.plugin>
<version.surefire.plugin>3.2.2</version.surefire.plugin>
Expand Down
4 changes: 2 additions & 2 deletions use-cases/call-center/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
<maven.compiler.release>17</maven.compiler.release>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

<version.io.quarkus>3.5.0</version.io.quarkus>
<version.ai.timefold.solver>1.4.0</version.ai.timefold.solver>
<version.io.quarkus>3.6.1</version.io.quarkus>
<version.ai.timefold.solver>1.5.0</version.ai.timefold.solver>

<version.compiler.plugin>3.11.0</version.compiler.plugin>
<version.surefire.plugin>3.2.2</version.surefire.plugin>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public class CallCenter {
@ProblemFactCollectionProperty
private Set<Skill> skills;

@ProblemFactCollectionProperty
@PlanningEntityCollectionProperty
@ValueRangeProvider
private List<Agent> agents;

Expand Down
4 changes: 2 additions & 2 deletions use-cases/employee-scheduling/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
<maven.compiler.release>17</maven.compiler.release>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

<version.io.quarkus>3.5.0</version.io.quarkus>
<version.ai.timefold.solver>1.4.0</version.ai.timefold.solver>
<version.io.quarkus>3.6.1</version.io.quarkus>
<version.ai.timefold.solver>1.5.0</version.ai.timefold.solver>

<version.compiler.plugin>3.11.0</version.compiler.plugin>
<version.surefire.plugin>3.2.2</version.surefire.plugin>
Expand Down
4 changes: 2 additions & 2 deletions use-cases/facility-location/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
<maven.compiler.release>17</maven.compiler.release>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

<version.io.quarkus>3.5.0</version.io.quarkus>
<version.ai.timefold.solver>1.4.0</version.ai.timefold.solver>
<version.io.quarkus>3.6.1</version.io.quarkus>
<version.ai.timefold.solver>1.5.0</version.ai.timefold.solver>

<version.compiler.plugin>3.11.0</version.compiler.plugin>
<version.surefire.plugin>3.2.2</version.surefire.plugin>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,13 @@
import ai.timefold.solver.core.api.domain.solution.PlanningEntityCollectionProperty;
import ai.timefold.solver.core.api.domain.solution.PlanningScore;
import ai.timefold.solver.core.api.domain.solution.PlanningSolution;
import ai.timefold.solver.core.api.domain.solution.ProblemFactCollectionProperty;
import ai.timefold.solver.core.api.domain.valuerange.ValueRangeProvider;
import ai.timefold.solver.core.api.score.buildin.hardsoftlong.HardSoftLongScore;

@PlanningSolution
public class FacilityLocationProblem {

@ProblemFactCollectionProperty
@PlanningEntityCollectionProperty
@ValueRangeProvider
private List<Facility> facilities;
@PlanningEntityCollectionProperty
Expand Down
4 changes: 2 additions & 2 deletions use-cases/food-packaging/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
<maven.compiler.release>17</maven.compiler.release>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

<version.io.quarkus>3.5.0</version.io.quarkus>
<version.ai.timefold.solver>1.4.0</version.ai.timefold.solver>
<version.io.quarkus>3.6.1</version.io.quarkus>
<version.ai.timefold.solver>1.5.0</version.ai.timefold.solver>

<version.compiler.plugin>3.11.0</version.compiler.plugin>
<version.surefire.plugin>3.2.2</version.surefire.plugin>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,16 @@ public class Job {
@JsonIgnore
@NextElementShadowVariable(sourceVariableName = "jobList")
private Job nextJob;

/** Start is after cleanup. */
@ShadowVariable(variableListenerClass = StartDateTimeUpdatingVariableListener.class, sourceVariableName = "line")
@ShadowVariable(variableListenerClass = StartDateTimeUpdatingVariableListener.class, sourceVariableName = "previousJob")
private LocalDateTime startCleaningDateTime;

@PiggybackShadowVariable(shadowVariableName = "startCleaningDateTime")
private LocalDateTime startProductionDateTime;

@PiggybackShadowVariable(shadowVariableName = "startCleaningDateTime")
private LocalDateTime endDateTime;

// No-arg constructor required for OptaPlanner and Jackson
Expand Down Expand Up @@ -138,9 +145,6 @@ public void setNextJob(Job nextJob) {
this.nextJob = nextJob;
}

// TODO Move this to field after fixing https://github.com/TimefoldAI/timefold-solver/issues/7
@ShadowVariable(variableListenerClass = StartDateTimeUpdatingVariableListener.class, sourceVariableName = "line")
@ShadowVariable(variableListenerClass = StartDateTimeUpdatingVariableListener.class, sourceVariableName = "previousJob")
public LocalDateTime getStartCleaningDateTime() {
return startCleaningDateTime;
}
Expand All @@ -149,8 +153,6 @@ public void setStartCleaningDateTime(LocalDateTime startCleaningDateTime) {
this.startCleaningDateTime = startCleaningDateTime;
}

// TODO Move this to field after fixing https://github.com/TimefoldAI/timefold-solver/issues/7
@PiggybackShadowVariable(shadowVariableName = "startCleaningDateTime")
public LocalDateTime getStartProductionDateTime() {
return startProductionDateTime;
}
Expand All @@ -159,8 +161,6 @@ public void setStartProductionDateTime(LocalDateTime startProductionDateTime) {
this.startProductionDateTime = startProductionDateTime;
}

// TODO Move this to field after fixing https://github.com/TimefoldAI/timefold-solver/issues/7
@PiggybackShadowVariable(shadowVariableName = "startCleaningDateTime")
public LocalDateTime getEndDateTime() {
return endDateTime;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public class PackagingSchedule {
@PlanningEntityCollectionProperty
private List<Line> lineList;

@ProblemFactCollectionProperty
@PlanningEntityCollectionProperty
@ValueRangeProvider
private List<Job> jobList;

Expand Down
4 changes: 2 additions & 2 deletions use-cases/maintenance-scheduling/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
<maven.compiler.release>17</maven.compiler.release>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

<version.io.quarkus>3.5.0</version.io.quarkus>
<version.ai.timefold.solver>1.4.0</version.ai.timefold.solver>
<version.io.quarkus>3.6.1</version.io.quarkus>
<version.ai.timefold.solver>1.5.0</version.ai.timefold.solver>

<version.compiler.plugin>3.11.0</version.compiler.plugin>
<version.surefire.plugin>3.2.2</version.surefire.plugin>
Expand Down
4 changes: 2 additions & 2 deletions use-cases/order-picking/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
<maven.compiler.release>17</maven.compiler.release>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

<version.io.quarkus>3.5.0</version.io.quarkus>
<version.ai.timefold.solver>1.4.0</version.ai.timefold.solver>
<version.io.quarkus>3.6.1</version.io.quarkus>
<version.ai.timefold.solver>1.5.0</version.ai.timefold.solver>

<version.compiler.plugin>3.11.0</version.compiler.plugin>
<version.surefire.plugin>3.2.2</version.surefire.plugin>
Expand Down
2 changes: 1 addition & 1 deletion use-cases/school-timetabling/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ plugins {
}

def quarkusVersion = "3.3.3"
def timefoldVersion = "1.4.0"
def timefoldVersion = "1.5.0"
def assertjVersion = "3.24.2"

group = "org.acme"
Expand Down
4 changes: 2 additions & 2 deletions use-cases/school-timetabling/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
<maven.compiler.release>17</maven.compiler.release>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

<version.io.quarkus>3.5.0</version.io.quarkus>
<version.ai.timefold.solver>1.4.0</version.ai.timefold.solver>
<version.io.quarkus>3.6.1</version.io.quarkus>
<version.ai.timefold.solver>1.5.0</version.ai.timefold.solver>

<version.compiler.plugin>3.11.0</version.compiler.plugin>
<version.resources.plugin>3.3.1</version.resources.plugin>
Expand Down
Loading

0 comments on commit db8a049

Please sign in to comment.