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

Commit

Permalink
Merge pull request #48 from k163377/some_fixes
Browse files Browse the repository at this point in the history
Fix readme and buildscript.
  • Loading branch information
k163377 committed Jan 31, 2021
2 parents 453da37 + 99755d0 commit 7f8cf5a
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 12 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/auto-author-assign.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: 'Auto Author Assign'

on:
pull_request_target:
types: [opened, reopened]

jobs:
assign-author:
runs-on: ubuntu-latest
steps:
- uses: toshimaru/auto-author-assign@v1.2.0
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
4 changes: 4 additions & 0 deletions README.ja.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ KMapper
- `Kotlin`のリフレクションを用いた関数呼び出しベースの安全なマッピング
- 豊富な機能による、より柔軟かつ労力の少ないマッピング

以下のリポジトリに簡単なベンチマーク結果を掲載しています。

- [ProjectMapK/MapKInspections: Testing and benchmarking for ProjectMapK deliverables\.](https://github.com/ProjectMapK/MapKInspections#results)

## デモコード
手動でマッピングコードを書いた場合と`KMapper`を用いた場合を比較します。
手動で書く場合引数が多ければ多いほど記述がかさみますが、`KMapper`を用いることで殆どコードを書かずにマッピングを行えます。
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ KMapper
- Flexible and safe mapping based on function calls with reflection.
- Richer features and thus more flexible and labor-saving mapping.

A brief benchmark result is posted in the following repository.

- [ProjectMapK/MapKInspections: Testing and benchmarking for ProjectMapK deliverables\.](https://github.com/ProjectMapK/MapKInspections#results)

## Demo code
Here is a comparison between writing the mapping code by manually and using `KMapper`.

Expand Down
13 changes: 1 addition & 12 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
plugins {
id("maven")
id("java")
id("org.jetbrains.kotlin.jvm") version "1.4.21"
kotlin("jvm") version "1.4.21"
// その他補助系
id("org.jlleitschuh.gradle.ktlint") version "9.4.1"
id("jacoco")
Expand All @@ -15,23 +15,12 @@ java {
sourceCompatibility = JavaVersion.VERSION_1_8
}

buildscript {
repositories {
mavenCentral()
}

dependencies {
classpath(kotlin("gradle-plugin"))
}
}

repositories {
mavenCentral()
maven { setUrl("https://jitpack.io") }
}

dependencies {
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
implementation(kotlin("reflect"))
api("com.github.ProjectMapK:Shared:0.19")

Expand Down

0 comments on commit 7f8cf5a

Please sign in to comment.