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 55a3ab2
Show file tree
Hide file tree
Showing 15 changed files with 16 additions and 17 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
@@ -1,19 +1,29 @@
import gradle.kotlin.dsl.accessors._1157938bdbf343539a21d9fc479421ba.nexusPublishing
import org.gradle.api.publish.maven.MavenPublication
import org.gradle.api.tasks.bundling.Jar
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.

File renamed without changes.
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 55a3ab2

Please sign in to comment.