Skip to content

Commit

Permalink
Publish docs (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
ericeil authored Dec 2, 2023
1 parent e846dc6 commit 946ba94
Show file tree
Hide file tree
Showing 8 changed files with 124 additions and 10 deletions.
19 changes: 18 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Certora Collections

Memory-efficient immutable collections for Kotlin.
[![](https://jitpack.io/v/certora/collections.svg)](https://jitpack.io/#certora/collections)

Fast, memory-efficient immutable collections for Kotlin.

## Motivation

Expand All @@ -19,3 +21,18 @@ structure, such computing set unions or intersection of two sets, or merging two
The Certora Collections library provides `Set` and `Map` implementations which are optimized primarily for such
operations. Further, we optimize heavily for memory usage over speed of operations on single elements. We also provide
some additional features that we have found useful in the Certora Prover, such as efficient parallel operations.

## Usage

[![](https://jitpack.io/v/certora/collections.svg)](https://jitpack.io/#certora/collections)<br/>
The Certora Collections library is available on [JitPack](https://jitpack.io/#certora/collections).

### API

The API builds on the interfaces provided by [kotlinx.collections.immutable]. See The Kotlin Immutable Collections
[proposal](https://github.com/Kotlin/kotlinx.collections.immutable/blob/master/proposal.md). We provide some additional
interfaces above the `PersistentMap` and `PersistentSet` interfaces provided by `kotlinx.collections.immutable`:

-


23 changes: 23 additions & 0 deletions assets/logo-icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
24 changes: 24 additions & 0 deletions assets/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 0 additions & 8 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,4 @@ subprojects {
freeCompilerArgs += "-Xcontext-receivers"
}
}

publishing {
publications {
create<MavenPublication>("maven") {
from(components["java"])
}
}
}
}
48 changes: 48 additions & 0 deletions collect/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,10 +1,21 @@
import org.gradle.api.tasks.*
import org.gradle.kotlin.dsl.*
import org.jetbrains.dokka.base.DokkaBase
import org.jetbrains.dokka.gradle.DokkaTask
import org.jetbrains.dokka.base.DokkaBaseConfiguration
import java.net.URL

plugins {
kotlin("jvm")
id("io.github.detekt.gradle.compiler-plugin")
id("java-library")
id("org.jetbrains.dokka")
}

buildscript {
dependencies {
classpath("org.jetbrains.dokka:dokka-base:1.9.10")
}
}

kotlin {
Expand All @@ -22,3 +33,40 @@ dependencies {
testImplementation("org.jetbrains.kotlin:kotlin-test-junit")
testImplementation("org.jetbrains.kotlinx:kotlinx-serialization-json:${property("serializationVersion")}")
}

tasks.withType<DokkaTask>().configureEach {
moduleName.set("Certora Collections")
//failOnWarning.set(true)
suppressObviousFunctions.set(true)
suppressInheritedMembers.set(false)

pluginConfiguration<DokkaBase, DokkaBaseConfiguration> {
customAssets = listOf(file("../assets/logo-icon.svg"))
footerMessage = "(c) Certora"
}

dokkaSourceSets.configureEach {
reportUndocumented.set(true)

sourceLink {
localDirectory.set(projectDir.resolve("src"))
remoteUrl.set(URL("https://github.com/Certora/collections/tree/main/collect/src"))
remoteLineSuffix.set("#L")
}
}
}

tasks.register<Jar>("dokkaJar") {
dependsOn(tasks.dokkaHtml)
from(tasks.dokkaHtml.flatMap { it.outputDirectory })
archiveClassifier.set("javadoc")
}

publishing {
publications {
create<MavenPublication>("maven") {
from(components["java"])
artifact(tasks["dokkaJar"])
}
}
}
8 changes: 8 additions & 0 deletions detekt-treapability/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,11 @@ dependencies {
testImplementation("org.junit.jupiter:junit-jupiter-params:$junitVersion")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:$junitVersion")
}

publishing {
publications {
create<MavenPublication>("maven") {
from(components["java"])
}
}
}
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ detektVersion=1.23.1
junitVersion=5.9.1
axionVersion=1.15.5
benchmarkVersion=0.4.4
dokkaVersion=1.9.10
immutableCollectionsVersion=0.3.5
serializationVersion=1.5.0

2 changes: 2 additions & 0 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,15 @@ pluginManagement {
val detektVersion: String by settings
val axionVersion: String by settings
val benchmarkVersion: String by settings
val dokkaVersion: String by settings
plugins {
id("org.jetbrains.kotlin.jvm") version kotlinVersion
id("org.jetbrains.kotlin.plugin.serialization") version kotlinVersion
id("org.jetbrains.kotlin.plugin.allopen") version kotlinVersion
id("io.github.detekt.gradle.compiler-plugin") version detektVersion
id("pl.allegro.tech.build.axion-release") version axionVersion
id("org.jetbrains.kotlinx.benchmark") version benchmarkVersion
id("org.jetbrains.dokka") version dokkaVersion
}
repositories {
mavenCentral()
Expand Down

0 comments on commit 946ba94

Please sign in to comment.