blob: 0f2d2bfec1396f42de15d3da758ebb031f1985e9 [file] [log] [blame]
########################
# General properties
########################
# Enable CORS for runQuickstartsFromSource.sh
quarkus.http.cors=true
# Allow all origins in dev-mode
%dev.quarkus.http.cors.origins=/.*/
########################
# Demo properties
########################
# The demo dataset size: NONE, SMALL, LARGE
# timeTable.demoData=LARGE
########################
# OptaPlanner properties
########################
# The solver runs for 30 seconds. To run for 5 minutes use "5m" and for 2 hours use "2h".
quarkus.optaplanner.solver.termination.spent-limit=30s
# To change how many solvers to run in parallel
# optaplanner.solver-manager.parallel-solver-count=4
# To run increase CPU cores usage per solver
# quarkus.optaplanner.solver.move-thread-count=2
# Temporary comment this out to detect bugs in your code (lowers performance)
# quarkus.optaplanner.solver.environment-mode=FULL_ASSERT
# To see what OptaPlanner is doing, turn on DEBUG or TRACE logging.
quarkus.log.category."org.optaplanner".level=DEBUG
%test.quarkus.log.category."org.optaplanner".level=INFO
%prod.quarkus.log.category."org.optaplanner".level=INFO
# XML file for power tweaking, defaults to solverConfig.xml (directly under src/main/resources)
# quarkus.optaplanner.solver-config-xml=org/.../timeTableSolverConfig.xml
########################
# Database properties
########################
# "jdbc:h2:mem" doesn't work in native mode, but native mode uses %prod properties
quarkus.datasource.db-kind=h2
quarkus.datasource.jdbc.url=jdbc:h2:mem:school-timetabling;DB_CLOSE_DELAY=-1
quarkus.hibernate-orm.database.generation=drop-and-create
########################
# Test overrides
########################
%test.quarkus.optaplanner.benchmark.solver.termination.spent-limit=15s
%test.quarkus.datasource.jdbc.url=jdbc:h2:tcp://localhost/mem:school-timetabling
# Effectively disable spent-time termination in favor of the best-score-limit
%test.quarkus.optaplanner.solver.termination.spent-limit=1h
%test.quarkus.optaplanner.solver.termination.best-score-limit=0hard/*soft
########################
# Native overrides
########################
# In pom.xml, the "native" maven profile triggers the "native" quarkus profile.
%native.quarkus.datasource.jdbc.url=jdbc:h2:tcp://localhost/mem:school-timetabling
########################
# Optional overrides for use in OpenShift
########################
%openshift-native.quarkus.openshift.name=school-timetabling
%openshift-native.quarkus.openshift.part-of=school-timetabling
%openshift-native.quarkus.openshift.route.expose=true
%openshift-native.quarkus.datasource.db-kind=postgresql
%openshift-native.quarkus.datasource.jdbc.url=jdbc:postgresql://postgresql-school-timetabling/app
# Note: Do not store username and password in application.properties for a production application;
# Use .env or environment variables instead
%openshift-native.quarkus.datasource.username=app
%openshift-native.quarkus.datasource.password=app