Skip to content

Commit

Permalink
Trying to fix it again
Browse files Browse the repository at this point in the history
  • Loading branch information
asm0dey committed Jul 11, 2023
1 parent 0333614 commit 66b22dc
Show file tree
Hide file tree
Showing 15 changed files with 15 additions and 18 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ It has only one function: generate the [Fibonacci sequence](https://en.wikipedia
1. [x] Clone this repository ot just [use it as template](https://github.com/asm0dey/dummylib-multiplatform/generate)
2. [ ] Edit project name in [`settings.gradle.kts`](settings.gradle.kts#L17)
3. [ ] Edit [`groupId` and `version`](convention-plugins/src/main/kotlin/module.publication.gradle.kts#L10-L11)
1. If you need the Android support update namespace [there](dummylib/build.gradle.kts#L38) too
2. If you don't need an Android support delete the [`android` section](dummylib/build.gradle.kts#L37-L43)
4. [ ] Edit [build targets you need](dummylib/build.gradle.kts#L9-L21)
1. If you need the Android support update namespace [there](library/build.gradle.kts#L38) too
2. If you don't need an Android support delete the [`android` section](library/build.gradle.kts#L37-L43)
4. [ ] Edit [build targets you need](library/build.gradle.kts#L9-L21)

At this stage you given you have everything setup to work with Kotlin Multiplatform the project shoud be buildable (but you might need to provide actual starting values for platforms you need).

Expand Down
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
plugins {
id("root.publication")
id("publication")
//trick: for the same plugin versions in all sub-modules
alias(libs.plugins.androidLibrary).apply(false)
alias(libs.plugins.kotlinMultiplatform).apply(false)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,24 @@ import org.gradle.kotlin.dsl.`maven-publish`
plugins {
`maven-publish`
signing
id("io.github.gradle-nexus.publish-plugin")
}

group = "com.github.asm0dey"
group = "com.github.asm0dey.dummylib"
version = "0.0.1"

val javadocJar by tasks.registering(Jar::class) {
archiveClassifier.set("javadoc")
}

nexusPublishing {
// Configure maven central repository
// https://github.com/gradle-nexus/publish-plugin#publishing-to-maven-central-via-sonatype-ossrh
repositories {
sonatype()
}
}

publishing {
// Configure all publications
publications.withType<MavenPublication> {
Expand Down
11 changes: 0 additions & 11 deletions convention-plugins/src/main/kotlin/root.publication.gradle.kts

This file was deleted.

1 change: 0 additions & 1 deletion dummylib/build.gradle.kts → library/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
plugins {
alias(libs.plugins.kotlinMultiplatform)
alias(libs.plugins.androidLibrary)
id("module.publication")
}

kotlin {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ dependencyResolutionManagement {
}

rootProject.name = "dummylib-multiplatform"
include(":dummylib")
include(":library")

0 comments on commit 66b22dc

Please sign in to comment.