Skip to content

Commit c88b6c2

Browse files
sergejshaSergej Shafarenka
andauthored
Update maven publishing (#59)
* Add w(TAG, throwable) method for logging exceptions as warnings w/o a message * Simplify everything and make it the same as in csv project --------- Co-authored-by: Sergej Shafarenka <sergej.shafarenka@halfbit.de>
1 parent 4a2ee9b commit c88b6c2

File tree

42 files changed

+363
-427
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+363
-427
lines changed

README.md

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,9 @@ init() {
5656
}
5757

5858
private let TAG = "SampleApp"
59-
LogKt.d(tag: TAG) { "debug message" }
59+
LogKt.d(tag: TAG) {
60+
"debug message"
61+
}
6062
```
6163

6264
![iOS log](https://raw.githubusercontent.com/sergejsha/logger/master/documentation/examples/iOS.png)
@@ -132,8 +134,8 @@ In `gradle/libs.versions.toml`
132134

133135
```toml
134136
[versions]
135-
kotlin = "2.1.0"
136-
logger = "0.8"
137+
kotlin = "2.2.0"
138+
logger = "0.9"
137139

138140
[libraries]
139141
logger = { module = "de.halfbit:logger", version.ref = "logger" }
@@ -160,18 +162,13 @@ kotlin {
160162

161163
# Publish to maven Central
162164

163-
1. Bump version in `root.publication.gradle.kts`
164-
2. `./gradlew clean build publishAllPublicationsToCentralRepository`
165-
166-
# Publish to local maven
167-
168-
1. Set `X.X-SNAPSHOT` version in `root.publication.gradle.kts`
169-
2. `./gradlew clean build publishToMavenLocal`
165+
1. Bump version in `build.gradle.kts` of the root project
166+
2. `./gradlew clean build releaseToMavenCentral`
170167

171168
# License
172169

173170
```
174-
Copyright 2024 Sergej Shafarenka, www.halfbit.de
171+
Copyright 2024-2025 Sergej Shafarenka, www.halfbit.de
175172
176173
Licensed under the Apache License, Version 2.0 (the "License");
177174
you may not use this file except in compliance with the License.

build-plugins/build.gradle.kts

Lines changed: 0 additions & 3 deletions
This file was deleted.

build-plugins/settings.gradle.kts

Lines changed: 0 additions & 22 deletions
This file was deleted.

build-plugins/src/main/kotlin/module.publication.gradle.kts

Lines changed: 0 additions & 122 deletions
This file was deleted.

build-plugins/src/main/kotlin/root.publication.gradle.kts

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)