Module A+ JVM libraries
Use aplus-client to call the A+ REST API from Kotlin or Java. Use course-config to read and author course manifests without an HTTP client or IDE dependency. The course-config-scala adapter provides named Scala factories for the shared manifest types.
JSON examples
The A+ Courses configuration registry lists published course manifests in courses.yaml.
Download the examples below and replace their placeholder IDs and URLs before use.
The minimal template catalog omits IDE settings. The Scala course maps exercise 1012 to StudentProject, which students create themselves. It needs no entry in modules or autoInstall.
The document's version controls plugin compatibility. A+ Courses blocks setup for an older major version. Other mismatches trigger notifications. Modules have separate archive versions. Grading thresholds appear from lowest to highest. The total style sums points across categories.
The Scala example includes sbt, language-specific downloads, student-created modules, REPL commands and O1 grading. The Python example includes bilingual modules, a download callback and total-points grading. Together they cover every supported field. JVM properties in vmOptions omit -D. Callback identifiers must be supported by the plugin. Prepare the settings archives, properties file and feedback CSS at their resource URLs. Scala archives must contain the packages imported by the REPL commands. The Python example's AddModuleWatermark callback adds student and course details to .py files.
Template catalog
examples/course-config/minimal.json
{
"id": "524",
"name": "Example course",
"modules": [],
"exerciseModules": {}
}
Scala course
examples/course-config/scala.json
{
"id": "1001",
"name": "Example Scala course",
"aPlusUrl": "https://plus.example.org/",
"languages": [
"fi",
"en"
],
"version": "4.4",
"resources": {
"ideSettings": "https://courses.example.org/scala/ide-settings.zip",
"ideSettingsMac": "https://courses.example.org/scala/ide-settings-mac.zip",
"projectSettings": "https://courses.example.org/scala/project-settings.zip",
"customProperties": "https://courses.example.org/scala/course.properties",
"feedbackCss": "https://courses.example.org/scala/feedback.css",
"ideSettingsLinux": "https://courses.example.org/scala/ide-settings-linux.zip",
"ideSettingsWindows": "https://courses.example.org/scala/ide-settings-windows.zip"
},
"requiredPlugins": [
{
"name": "Scala",
"id": "org.intellij.scala"
},
{
"name": "REPLace",
"id": "fi.aalto.cs.replace"
}
],
"vmOptions": {
"file.encoding": "UTF-8"
},
"optionalCategories": [
"practice"
],
"autoInstall": [
"Starter"
],
"scalaRepl": {
"initialCommands": {
"Starter": [
"import example.*"
],
"StudentProject": [
"import project.*"
]
},
"arguments": "-deprecation"
},
"hiddenElements": [
1099
],
"grading": {
"style": "o1",
"points": {
"1": {
"A": 20,
"B": 0,
"C": 0
},
"3": {
"A": 40,
"B": 20,
"C": 0
},
"5": {
"A": 60,
"B": 30,
"C": 10
}
}
},
"alwaysShowGroups": true,
"modules": [
{
"name": "Starter",
"url": "https://courses.example.org/scala/Starter.zip",
"version": "1.2",
"changelog": "Added collection exercises.",
"sbt": true
},
{
"name": "Harjoitukset",
"url": "https://courses.example.org/scala/Harjoitukset.zip",
"version": "1.0",
"language": "fi"
},
{
"name": "Exercises",
"url": "https://courses.example.org/scala/Exercises.zip",
"version": "1.0",
"language": "en"
}
],
"exerciseModules": {
"1010": {
"fi": "Starter",
"en": "Starter"
},
"1011": {
"fi": "Harjoitukset",
"en": "Exercises"
},
"1012": {
"fi": "StudentProject",
"en": "StudentProject"
}
}
}
Python course
examples/course-config/python.json
{
"id": "1002",
"name": "Example Python course",
"aPlusUrl": "https://plus.example.org/",
"languages": [
"fi",
"en"
],
"version": "4.4",
"resources": {
"ideSettings": "https://courses.example.org/python/ide-settings.zip",
"projectSettings": "https://courses.example.org/python/project-settings.zip",
"feedbackCss": "https://courses.example.org/python/feedback.css"
},
"requiredPlugins": [
{
"name": "Python",
"id": "PythonCore"
}
],
"callbacks": {
"postDownloadModule": [
"AddModuleWatermark"
]
},
"optionalCategories": [
"practice"
],
"autoInstall": [
"Basics"
],
"modules": [
{
"name": "Basics",
"url": "https://courses.example.org/python/Basics.zip",
"version": "1.1",
"changelog": "Added input examples."
},
{
"name": "Tiedostot",
"url": "https://courses.example.org/python/Tiedostot.zip",
"version": "1.0",
"language": "fi"
},
{
"name": "Files",
"url": "https://courses.example.org/python/Files.zip",
"version": "1.0",
"language": "en"
}
],
"exerciseModules": {
"2010": {
"fi": "Basics",
"en": "Basics"
},
"2011": {
"fi": "Tiedostot",
"en": "Files"
}
},
"grading": {
"style": "total",
"points": {
"1": {
"total": 50
},
"3": {
"total": 100
},
"5": {
"total": 150
}
}
}
}
All modules:
A Kotlin/JVM client for the A+ REST API. Requires Java 25 or newer. Call its suspend functions from a coroutine. Scala and Java callers can use AplusBlockingClient for synchronous requests with an operation timeout.
Course manifests shared by A+ Courses and template consumers. Kotlin callers use CourseConfig.Document. Scala callers can use the course-config-scala factories.