Skip to content

Commit

Permalink
Adds dependency versions plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
Tweener committed Feb 12, 2024
1 parent 23032da commit b73b387
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ To configure the publishing, we need to create 6 [Github Actions secrets](https:
### 4. Rename package name to your own

1. Open `buildSrc/src/main/kotlin/Dependencies.kt` and rename the following things:
1. _Line 21_: Change `MyProject` object name to your own project name,
2. _Line 22_: Change `com.tweener.changehere` package name to your own package name.
3. _Line 29_: Change all the properties within the `object Maven` block to your own Maven Central publishing configuration.
1. _Line 22_: Change `MyProject` object name to your own project name,
2. _Line 23_: Change `com.tweener.changehere` package name to your own package name.
3. _Line 30_: Change all the properties within the `object Maven` block to your own Maven Central publishing configuration.
2. Rename module `changehere` to the name of your library. This is the name that will be shown when published to Maven Central.
3. Open `settings.gradle.kts` and change `MyProjectName` on line 17 by your own project name.
4. Open `changehere/build.gradle.kts` (or `yourlibraryname/build.gradle.kts` if you renamed the module on step 2) and change `changehere` on line 65 with your own iOS framework name.
Expand Down
1 change: 1 addition & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ plugins {
id("com.android.library").version(Dependencies.Versions.gradle).apply(false)
id("org.jetbrains.dokka").version(Dependencies.Versions.dokka).apply(false)
id("io.github.gradle-nexus.publish-plugin").version(Dependencies.Versions.nexusSonatype)
id("com.github.ben-manes.versions").version(Dependencies.Versions.dependencyVersionsPlugin) // ./gradlew dependencyUpdates
}

tasks.register("clean", Delete::class) {
Expand Down
1 change: 1 addition & 0 deletions buildSrc/src/main/kotlin/Dependencies.kt
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ object Dependencies {

const val kotlin = "1.9.21"
const val gradle = "8.1.4"
const val dependencyVersionsPlugin = "0.51.0"
const val nexusSonatype = "2.0.0-rc-1"
const val dokka = "1.9.10"
const val annotations = "1.7.1"
Expand Down

0 comments on commit b73b387

Please sign in to comment.