blob: 9365b9af8d8d74dd8b08656eff9795c2316532de [file] [log] [blame]
plugins {
id "java"
id "application"
}
def optaplannerVersion = "9.39.0-SNAPSHOT"
def logbackVersion = "1.2.11"
def junitJupiterVersion = "5.9.0"
def assertjVersion = "3.24.2"
group = "org.acme"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
mavenLocal()
maven {
url "https://repository.jboss.org/nexus/content/groups/public/"
mavenContent {
snapshotsOnly()
}
}
}
dependencies {
implementation platform("org.optaplanner:optaplanner-bom:${optaplannerVersion}")
implementation "org.optaplanner:optaplanner-core"
testImplementation "org.optaplanner:optaplanner-test"
testImplementation "org.junit.jupiter:junit-jupiter:${junitJupiterVersion}"
testImplementation "org.assertj:assertj-core:${assertjVersion}"
runtimeOnly "ch.qos.logback:logback-classic:${logbackVersion}"
}
java {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
compileJava {
options.encoding = "UTF-8"
options.compilerArgs << "-parameters"
}
compileTestJava {
options.encoding = "UTF-8"
}
application {
mainClass = "org.acme.schooltimetabling.TimeTableApp"
}
test {
// Log the test execution results.
testLogging {
events "passed", "skipped", "failed"
}
useJUnitPlatform()
}