Skip to content
This repository was archived by the owner on Jan 12, 2024. It is now read-only.

Commit 83d5598

Browse files
committed
fix: return signature of inject in koin extensions, update URI in bom
1 parent f336076 commit 83d5598

4 files changed

Lines changed: 3 additions & 28 deletions

File tree

README.md

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -3,31 +3,6 @@
33
>
44
> [📜 **Documentation**](https://commons.floof.gay)
55
6-
## Utilities
7-
### `gay.floof.utils.slf4j`
8-
> :warning: Only available for Kotlin - JVM.
9-
10-
- Comes with a read-only delegate property for constructing SLF4J loggers:
11-
12-
```kt
13-
import gay.floof.utils.slf4j.*
14-
15-
object Something {
16-
val logger by logging<Something>() // => org.slf4j.Logger
17-
}
18-
```
19-
20-
### `gay.floof.utils.gradle`
21-
- Provides an extension for **noel()** and **noelware()** in a `repositories` block.
22-
- Provides a Version class that I repeat in all of my Kotlin projects
23-
- Provides the following groups below as a function in `dependencies` to import from the Noel and Noelware Maven repository.
24-
- The following groups are available: **floof**, **floofy**, **nino**, and **arisu**.
25-
- **floof** will return: `gay.floof.{group}:{package}:{version}`
26-
- **floofy** will return: `dev.floofy.{group}:{package}:{version}`
27-
- **nino** will return: `sh.nino.{group}:{package}:{version}`
28-
- **arisu** will return: `land.arisu.{group}:{package}:{version}`
29-
- **noelware** will return: `org.noelware.{group}:{package}:{version}`
30-
316
## Installation
327
### Gradle
338
#### Kotlin DSL

bom/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ publishing {
9494
pom {
9595
description by "Bill of Materials for `common-utils`"
9696
name by "commons-bom"
97-
url by "https://docs.noelware.org/libs/remi"
97+
url by "https://commons.floofy.dev"
9898

9999
organization {
100100
name by "Noel"

buildSrc/src/main/kotlin/dev/floofy/utils/gradle/Metadata.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import org.gradle.api.JavaVersion
2828
/**
2929
* Returns the current version of `commons-utils` package.
3030
*/
31-
val VERSION = "2.1.0"
31+
val VERSION = "2.1.0.1"
3232

3333
/**
3434
* The Java version it's being compiled to.

extensions-koin/src/main/kotlin/dev/floofy/utils/koin/KoinExtensions.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ import kotlin.properties.ReadOnlyProperty
2929
/**
3030
* Readonly property to quickly get a reference of [T].
3131
*/
32-
inline fun <reified T> inject(): ReadOnlyProperty<T, Any?> = ReadOnlyProperty { _, _ ->
32+
inline fun <reified T> inject(): ReadOnlyProperty<Any?, T> = ReadOnlyProperty { _, _ ->
3333
GlobalContext.retrieve()
3434
}
3535

0 commit comments

Comments
 (0)