Skip to content

Commit

Permalink
1.2: add tests, update dependencies, isKorean, generate, detach
Browse files Browse the repository at this point in the history
  • Loading branch information
kimcore committed Aug 3, 2022
1 parent 40093fc commit 538de5d
Show file tree
Hide file tree
Showing 7 changed files with 328 additions and 100 deletions.
30 changes: 5 additions & 25 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,35 +17,15 @@
<br />

## ์„ค์น˜
Gradle
```gradle
allprojects {
repositories {
maven { url 'https://jitpack.io' }
}
repositories {
maven("https://jitpack.io")
}
dependencies {
implementation 'im.kimcore:inko.kt:1.1'
implementation("com.github.kimcore", "inko.kt", "1.2")
}
```
Maven
```xml
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>

<dependencies>
<dependency>
<groupId>im.kimcore</groupId>
<artifactId>inko.kt</artifactId>
<version>1.1</version>
</dependency>
</dependencies>
```
## ์‚ฌ์šฉ๋ฒ•
inko.kt๋Š” ์ธ์Šคํ„ด์Šค๋ฅผ ์ƒ์„ฑํ•˜๊ฑฐ๋‚˜, ์ฝ”ํ‹€๋ฆฐ์˜ extension property๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ๋ณ€ํ™˜ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
```kotlin
Expand Down Expand Up @@ -76,8 +56,8 @@ import com.github.kimcore.Inko.Companion.asKoreanWithDoubleConsonant
// Inko ์ธ์Šคํ„ด์Šค๋ฅผ ์ƒ์„ฑํ• ๋•Œ ์„ค์ • ๋ถ€์—ฌํ•˜๊ธฐ
val inko = Inko(allowDoubleConsonant = true)

// config ํ•จ์ˆ˜๋ฅผ ์‚ฌ์šฉํ•ด ์„ค์ • ๋ถ€์—ฌํ•˜๊ธฐ
inko.config(allowDoubleConsonant = true)
// allowDoubleConsonant ๋ณ€์ˆ˜๋ฅผ ๋ณ€๊ฒฝํ•˜์—ฌ ์„ค์ • ๋ถ€์—ฌํ•˜๊ธฐ
inko.allowDoubleConsonant = true

// en2ko ํ•จ์ˆ˜์˜ ์ธ์ž๋กœ ์„ค์ • ๋ถ€์—ฌํ•˜๊ธฐ
inko.en2ko("dhk toswm!", allowDoubleConsonant = true)
Expand Down
23 changes: 0 additions & 23 deletions build.gradle

This file was deleted.

35 changes: 35 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
plugins {
`maven-publish`
kotlin("jvm") version "1.7.10"
}

group = "com.github.kimcore"
version = "1.2"

repositories {
mavenCentral()
}

dependencies {
implementation(kotlin("stdlib"))

testImplementation("org.junit.jupiter", "junit-jupiter-api", "5.9.0")
}

val sourcesJar by tasks.registering(Jar::class) {
archiveClassifier.set("sources")
from(sourceSets.main.get().allSource)
}

publishing {
publications {
create<MavenPublication>("inko.kt") {
from(components["java"])

group = project.group
version = project.version as String
artifactId = project.name
artifact(sourcesJar)
}
}
}
3 changes: 1 addition & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#Sun Jul 19 17:39:04 KST 2020
distributionUrl=https\://services.gradle.org/distributions/gradle-6.1.1-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-all.zip
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStorePath=wrapper/dists
Expand Down
File renamed without changes.
Loading

0 comments on commit 538de5d

Please sign in to comment.