diff --git a/build.gradle.kts b/build.gradle.kts index a45b28e..0a9c2c5 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -38,17 +38,17 @@ subprojects { apply(plugin = "signing") apply(plugin = "org.jetbrains.dokka") // TODO: use alias + val srcUrl = "https://github.com/atlassian-labs/prosemirror-kotlin/tree/main/${project.name}/" afterEvaluate { // afterEvaluate so that project.ext values will be available project.tasks.dokkaHtml { dokkaSourceSets { - val urlPrefix = project.ext.get("srcUrl") as String val commonMain by getting { sourceLink { // Unix based directory relative path to the root of the project (where you execute gradle respectively). localDirectory.set(file("src/commonMain/kotlin")) // URL showing where the source code can be accessed through the web browser - remoteUrl.set(URL("${urlPrefix}src/main/src/commonMain/kotlin")) + remoteUrl.set(URL("${srcUrl}src/main/src/commonMain/kotlin")) // Suffix which is used to append the line number to the URL. Use #L for GitHub remoteLineSuffix.set("#lines-") @@ -61,7 +61,7 @@ subprojects { localDirectory.set(file("src/jvmMain/kotlin")) // URL showing where the source code can be accessed through the web browser - remoteUrl.set(URL("${urlPrefix}src/main/src/jvmMain/kotlin")) + remoteUrl.set(URL("${srcUrl}src/main/src/jvmMain/kotlin")) // Suffix which is used to append the line number to the URL. Use #L for GitHub remoteLineSuffix.set("#lines-") @@ -74,7 +74,7 @@ subprojects { localDirectory.set(file("src/nativeMain/kotlin")) // URL showing where the source code can be accessed through the web browser - remoteUrl.set(URL("${urlPrefix}src/main/src/nativeMain/kotlin")) + remoteUrl.set(URL("${srcUrl}src/main/src/nativeMain/kotlin")) // Suffix which is used to append the line number to the URL. Use #L for GitHub remoteLineSuffix.set("#lines-") @@ -89,7 +89,7 @@ subprojects { pom { name.set(project.name) description.set(project.ext.get("pomDescription") as String) - url.set(project.ext.get("srcUrl") as String) + url.set(srcUrl) scm { connection.set("git@github.com:atlassian-labs/prosemirror-kotlin.git") diff --git a/collab/README.md b/collab/README.md index 3f47409..6ae2f06 100644 --- a/collab/README.md +++ b/collab/README.md @@ -1,3 +1,7 @@ This module implements an API into which a communication channel for collaborative editing can be hooked. See [the guide](/docs/guide/#collab) for more details and an example. + +## Versioning +This module is a port of version [1.3.0](https://github.com/ProseMirror/prosemirror-collab/releases/tag/1.3.0) +of prosemirror-collab diff --git a/collab/build.gradle.kts b/collab/build.gradle.kts index e50cbc6..d3aa9b5 100644 --- a/collab/build.gradle.kts +++ b/collab/build.gradle.kts @@ -15,7 +15,7 @@ kotlin { } // iOS - val xcframeworkName = "collab" + val xcframeworkName = project.name val xcf = XCFramework(xcframeworkName) listOf( iosX64(), @@ -45,6 +45,5 @@ kotlin { } } -description = "prosemirror-state" +description = "prosemirror-collab" ext.set("pomDescription", "Collaborative editing for ProseMirror") -ext.set("srcUrl", "https://github.com/atlassian-labs/prosemirror-kotlin/tree/main/collab/") diff --git a/history/build.gradle.kts b/history/build.gradle.kts index 4683391..170217d 100644 --- a/history/build.gradle.kts +++ b/history/build.gradle.kts @@ -15,7 +15,7 @@ kotlin { } // iOS - val xcframeworkName = "history" + val xcframeworkName = project.name val xcf = XCFramework(xcframeworkName) listOf( iosX64(), @@ -48,4 +48,3 @@ kotlin { description = "prosemirror-history" ext.set("pomDescription", "Undo history for ProseMirror") -ext.set("srcUrl", "https://github.com/atlassian-labs/prosemirror-kotlin/tree/main/history/") diff --git a/model/build.gradle.kts b/model/build.gradle.kts index c5a9c38..984143f 100644 --- a/model/build.gradle.kts +++ b/model/build.gradle.kts @@ -17,7 +17,7 @@ kotlin { } // iOS - val xcframeworkName = "model" + val xcframeworkName = project.name val xcf = XCFramework(xcframeworkName) listOf( iosX64(), @@ -49,4 +49,3 @@ kotlin { description = "prosemirror-model" ext.set("pomDescription", "ProseMirror document model") -ext.set("srcUrl", "https://github.com/atlassian-labs/prosemirror-kotlin/tree/main/model/") diff --git a/state/README.md b/state/README.md index 8ed97fd..cb37cd4 100644 --- a/state/README.md +++ b/state/README.md @@ -40,3 +40,7 @@ ProseMirror has a plugin system. @PluginView @Plugin @PluginKey + +## Versioning +This module is a port of version [1.4.0](https://github.com/ProseMirror/prosemirror-state/releases/tag/1.4.0) +of prosemirror-state diff --git a/state/build.gradle.kts b/state/build.gradle.kts index 400da92..38785dd 100644 --- a/state/build.gradle.kts +++ b/state/build.gradle.kts @@ -15,7 +15,7 @@ kotlin { } // iOS - val xcframeworkName = "state" + val xcframeworkName = project.name val xcf = XCFramework(xcframeworkName) listOf( iosX64(), @@ -48,4 +48,3 @@ kotlin { description = "prosemirror-state" ext.set("pomDescription", "ProseMirror editor state") -ext.set("srcUrl", "https://github.com/atlassian-labs/prosemirror-kotlin/tree/main/state/") diff --git a/test-builder/build.gradle.kts b/test-builder/build.gradle.kts index 4f80879..81dd837 100644 --- a/test-builder/build.gradle.kts +++ b/test-builder/build.gradle.kts @@ -15,7 +15,7 @@ kotlin { } // iOS - val xcframeworkName = "test-builder" + val xcframeworkName = project.name val xcf = XCFramework(xcframeworkName) listOf( iosX64(), @@ -44,4 +44,3 @@ kotlin { description = "prosemirror-test-builder" ext.set("pomDescription", "Document building utilities for writing tests") -ext.set("srcUrl", "https://github.com/atlassian-labs/prosemirror-kotlin/tree/main/test-builder/") diff --git a/transform/README.md b/transform/README.md index 757498c..628f26d 100644 --- a/transform/README.md +++ b/transform/README.md @@ -53,3 +53,7 @@ transformations or determining whether they are even possible. @joinPoint @insertPoint @dropPoint + +## Versioning +This module is a port of version [1.6.0](https://github.com/ProseMirror/prosemirror-transform/releases/tag/1.6.0) +of prosemirror-transform diff --git a/transform/build.gradle.kts b/transform/build.gradle.kts index 1d1d78f..4586767 100644 --- a/transform/build.gradle.kts +++ b/transform/build.gradle.kts @@ -15,7 +15,7 @@ kotlin { } // iOS - val xcframeworkName = "transform" + val xcframeworkName = project.name val xcf = XCFramework(xcframeworkName) listOf( iosX64(), @@ -46,4 +46,3 @@ kotlin { description = "prosemirror-transform" ext.set("pomDescription", "ProseMirror document transformations") -ext.set("srcUrl", "https://github.com/atlassian-labs/prosemirror-kotlin/tree/main/transform/") diff --git a/util/build.gradle.kts b/util/build.gradle.kts index 3d57d16..68c3816 100644 --- a/util/build.gradle.kts +++ b/util/build.gradle.kts @@ -15,7 +15,7 @@ kotlin { } // iOS - val xcframeworkName = "util" + val xcframeworkName = project.name val xcf = XCFramework(xcframeworkName) listOf( iosX64(), @@ -43,4 +43,3 @@ kotlin { description = "prosemirror-util" ext.set("pomDescription", "ProseMirror utilities") -ext.set("srcUrl", "https://github.com/atlassian-labs/prosemirror-kotlin/tree/main/util/")