Initial commit: LMS microservices scaffold
- Gradle multi-module: libs/{common-http,security-jwt,markdown,test-support},
services/{identity,academic,progress,gateway}, web (Thymeleaf+htmx)
- identity-service: JWT auth (RSA), accounts, students, groups, enrollment,
import from XLSX/CSV, credentials export, password reset
- academic-service: lab import from JSON/zip (markdown + YAML + variants),
levels, API
- progress-service: schema for student levels and variant assignments
- gateway: Spring Cloud Gateway, JWT validation, route propagation
- web: Server-side UI with flex/footer layout, light/dark theme toggle,
admin dashboard, groups CRUD, student portal placeholder
- docker-compose: PostgreSQL 18
- Tests: identity smoke test with Testcontainers
This commit is contained in:
16
buildSrc/build.gradle.kts
Normal file
16
buildSrc/build.gradle.kts
Normal file
@@ -0,0 +1,16 @@
|
||||
plugins {
|
||||
// The Kotlin DSL plugin provides a convenient way to develop convention plugins.
|
||||
`kotlin-dsl`
|
||||
}
|
||||
|
||||
kotlin {
|
||||
jvmToolchain(21)
|
||||
}
|
||||
|
||||
dependencies {
|
||||
// Plugins applied by the convention plugins in `src/main/kotlin`.
|
||||
implementation(libs.kotlinGradlePlugin)
|
||||
implementation(libs.kotlinAllopenPlugin)
|
||||
implementation(libs.kotlinNoargPlugin)
|
||||
implementation(libs.springBootGradlePlugin)
|
||||
}
|
||||
17
buildSrc/settings.gradle.kts
Normal file
17
buildSrc/settings.gradle.kts
Normal file
@@ -0,0 +1,17 @@
|
||||
dependencyResolutionManagement {
|
||||
|
||||
// Use Maven Central and the Gradle Plugin Portal for resolving dependencies in the shared build logic (`buildSrc`) project.
|
||||
@Suppress("UnstableApiUsage")
|
||||
repositories {
|
||||
mavenCentral()
|
||||
}
|
||||
|
||||
// Reuse the version catalog from the main build.
|
||||
versionCatalogs {
|
||||
create("libs") {
|
||||
from(files("../gradle/libs.versions.toml"))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
rootProject.name = "buildSrc"
|
||||
31
buildSrc/src/main/kotlin/lms.spring-boot.gradle.kts
Normal file
31
buildSrc/src/main/kotlin/lms.spring-boot.gradle.kts
Normal file
@@ -0,0 +1,31 @@
|
||||
// Spring Boot application module: Kotlin/JVM + Spring/JPA plugins + Boot plugin.
|
||||
import org.gradle.api.tasks.testing.logging.TestLogEvent
|
||||
|
||||
plugins {
|
||||
kotlin("jvm")
|
||||
id("org.jetbrains.kotlin.plugin.spring")
|
||||
id("org.jetbrains.kotlin.plugin.jpa")
|
||||
id("org.springframework.boot")
|
||||
}
|
||||
|
||||
group = "ru.ysu.lms"
|
||||
version = "0.1.0-SNAPSHOT"
|
||||
|
||||
kotlin {
|
||||
jvmToolchain(21)
|
||||
compilerOptions {
|
||||
freeCompilerArgs.add("-Xjsr305=strict")
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
// Required by Spring for Kotlin reflection (Spring Data, @ConfigurationProperties binding).
|
||||
"implementation"(kotlin("reflect"))
|
||||
}
|
||||
|
||||
tasks.withType<Test>().configureEach {
|
||||
useJUnitPlatform()
|
||||
testLogging {
|
||||
events(TestLogEvent.FAILED, TestLogEvent.PASSED, TestLogEvent.SKIPPED)
|
||||
}
|
||||
}
|
||||
24
buildSrc/src/main/kotlin/lms.spring-library.gradle.kts
Normal file
24
buildSrc/src/main/kotlin/lms.spring-library.gradle.kts
Normal file
@@ -0,0 +1,24 @@
|
||||
// Shared Kotlin library module: Kotlin/JVM + Spring (all-open) compiler plugin.
|
||||
import org.gradle.api.tasks.testing.logging.TestLogEvent
|
||||
|
||||
plugins {
|
||||
kotlin("jvm")
|
||||
id("org.jetbrains.kotlin.plugin.spring")
|
||||
}
|
||||
|
||||
group = "ru.ysu.lms"
|
||||
version = "0.1.0-SNAPSHOT"
|
||||
|
||||
kotlin {
|
||||
jvmToolchain(21)
|
||||
compilerOptions {
|
||||
freeCompilerArgs.add("-Xjsr305=strict")
|
||||
}
|
||||
}
|
||||
|
||||
tasks.withType<Test>().configureEach {
|
||||
useJUnitPlatform()
|
||||
testLogging {
|
||||
events(TestLogEvent.FAILED, TestLogEvent.PASSED, TestLogEvent.SKIPPED)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user