diff --git a/PACKAGES.md b/PACKAGES.md deleted file mode 100644 index 17b2a9df..00000000 --- a/PACKAGES.md +++ /dev/null @@ -1,52 +0,0 @@ - -# Package org.ktorm.database - -Entry of Ktorm framework, providing basic features of connection and transaction management. - -# Package org.ktorm.dsl - -Constructs strong-typed SQL DSL. - -# Package org.ktorm.entity - -Provides entity sequence APIs. - -# Package org.ktorm.expression - -Expression tree and SQL generation supports, providing expression node types, tree visitor, and SQL formatter. - -# Package org.ktorm.logging - -Simple logging facade of Ktorm, provides adapters for variable logging frameworks. - -# Package org.ktorm.schema - -Database schema supports, including table and column definition, column binding, and SQL types. - -# Package org.ktorm.global - -Provide a more concise DSL syntax based on a global database instance. - -# Package org.ktorm.jackson - -Jackson extension module for Ktorm, providing JSON serialization for entity objects and JSON SQL type. - -# Package org.ktorm.support.mysql - -MySQL dialect module for Ktorm. - -# Package org.ktorm.support.oracle - -Oracle dialect module for Ktorm. - -# Package org.ktorm.support.postgresql - -PostgreSQL dialect module for Ktorm. - -# Package org.ktorm.support.sqlite - -SQLite dialect module for Ktorm. - -# Package org.ktorm.support.sqlserver - -Microsoft SqlServer dialect module for Ktorm. diff --git a/build.gradle.kts b/build.gradle.kts index 3aad8cb6..74449124 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -2,17 +2,33 @@ group = "org.ktorm" version = file("ktorm.version").readLines()[0] -task("printClasspath") { - doLast { - val jars = subprojects - .map { it.configurations["compileClasspath"] } - .flatMap { it.files } - .filterNotTo(HashSet()) { it.name.contains("ktorm") } - .onEach { println(it.name) } +plugins { + id("org.jetbrains.dokka") version "1.9.20" +} + +repositories { + mavenCentral() + gradlePluginPortal() +} + +tasks.dokkaHtmlMultiModule { + val templatesDir = System.getenv("DOKKA_TEMPLATES_DIR") + if (!templatesDir.isNullOrEmpty()) { + pluginsMapConfiguration.set(mapOf("org.jetbrains.dokka.base.DokkaBase" to """{"templatesDir": "$templatesDir"}""")) + } +} + +subprojects { + apply(plugin = "org.jetbrains.dokka") - val file = file("build/ktorm.classpath") - file.parentFile.mkdirs() - file.writeText(jars.joinToString(File.pathSeparator) { it.absolutePath }) - println("Classpath written to build/ktorm.classpath") + tasks.named("dokkaHtmlPartial") { + dokkaSourceSets.named("main") { + suppressGeneratedFiles.set(false) + sourceLink { + localDirectory.set(file("src/main/kotlin")) + remoteUrl.set(java.net.URL("https://github.com/kotlin-orm/ktorm/blob/master/${project.name}/src/main/kotlin")) + remoteLineSuffix.set("#L") + } + } } } diff --git a/settings.gradle.kts b/settings.gradle.kts index 20dab739..30cf9df7 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -1,6 +1,6 @@ plugins { - id("com.gradle.enterprise") version("3.14.1") + id("com.gradle.enterprise") version "3.14.1" } include("ktorm-core")