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

Commit 9d44947

Browse files
authored
Merge pull request #6 from k163377/feature
Move project and splitting modules.
2 parents f7308b9 + 48722ec commit 9d44947

25 files changed

+83
-166
lines changed

.idea/KMapper.iml

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/jarRepositories.xml

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/kotlinc.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
2-
[![CircleCI](https://circleci.com/gh/k163377/MapK.svg?style=svg)](https://circleci.com/gh/k163377/MapK)
3-
[![](https://jitci.com/gh/k163377/MapK/svg)](https://jitci.com/gh/k163377/MapK)
2+
[![CircleCI](https://circleci.com/gh/ProjectMapK/KMapper.svg?style=svg)](https://circleci.com/gh/ProjectMapK/KMapper)
3+
[![](https://jitci.com/gh/ProjectMapK/KMapper/svg)](https://jitci.com/gh/ProjectMapK/KMapper)
44

5-
MapK
5+
KMapper
66
====
77
This is a Mapper Libraly like a `ModelMapper` for `Kotlin`.
88
You can call `KFunction`(e.g. `constructor`) from `Object`.
@@ -19,11 +19,11 @@ val dst = Dst(
1919
)
2020

2121
// after
22-
val newInstance = KMapper(Dst::class.primaryConstructor!!).map(src)
22+
val newInstance = KMapper(::Dst).map(src)
2323
```
2424
## How to use
2525
Published on JitPack.
26-
Please see [here](https://jitpack.io/#k163377/MapK) for the introduction method.
26+
Please see [here](https://jitpack.io/#ProjectMapK/KMapper/) for the introduction method.
2727

2828
## Usages
2929
### From multiple resources

build.gradle.kts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ plugins {
55
id("org.jlleitschuh.gradle.ktlint") version "9.2.1"
66
}
77

8-
group = "com.wrongwrong"
9-
version = "0.1"
8+
group = "com.mapk"
9+
version = "0.10"
1010

1111
java {
1212
sourceCompatibility = JavaVersion.VERSION_1_8
@@ -24,11 +24,13 @@ buildscript {
2424

2525
repositories {
2626
mavenCentral()
27+
maven { setUrl("https://jitpack.io") }
2728
}
2829

2930
dependencies {
3031
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
3132
implementation(kotlin("reflect"))
33+
implementation("com.github.ProjectMapK:Shared:0.1")
3234

3335
// https://mvnrepository.com/artifact/org.junit.jupiter/junit-jupiter
3436
testImplementation(group = "org.junit.jupiter", name = "junit-jupiter", version = "5.6.0") {

settings.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
rootProject.name = "MapK"
1+
rootProject.name = "KMapper"

src/main/java/com/wrongwrong/mapk/core/EnumMapper.java

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

src/main/kotlin/com/wrongwrong/mapk/annotations/KConstructor.kt renamed to src/main/kotlin/com/mapk/annotations/KConstructor.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.wrongwrong.mapk.annotations
1+
package com.mapk.annotations
22

33
@Target(AnnotationTarget.CONSTRUCTOR, AnnotationTarget.FUNCTION)
44
@Retention(AnnotationRetention.RUNTIME)

src/main/kotlin/com/wrongwrong/mapk/annotations/KGetterAlias.kt renamed to src/main/kotlin/com/mapk/annotations/KGetterAlias.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.wrongwrong.mapk.annotations
1+
package com.mapk.annotations
22

33
@Target(AnnotationTarget.PROPERTY)
44
@Retention(AnnotationRetention.RUNTIME)

src/main/kotlin/com/wrongwrong/mapk/annotations/KPropertyIgnore.kt renamed to src/main/kotlin/com/mapk/annotations/KPropertyIgnore.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.wrongwrong.mapk.annotations
1+
package com.mapk.annotations
22

33
@Target(AnnotationTarget.PROPERTY)
44
@Retention(AnnotationRetention.RUNTIME)

0 commit comments

Comments
 (0)