Skip to content

Commit 6e9dfe5

Browse files
Change the project structure and provide support for Maven publish (#25)
* Delete lib directory * Update readme * Remove signing
1 parent d63d08b commit 6e9dfe5

Some content is hidden

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

105 files changed

+75
-42
lines changed

README.md

Lines changed: 2 additions & 2 deletions

build.gradle.kts

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
plugins {
2+
id("org.jetbrains.kotlin.jvm") version "1.6.21"
3+
`java-library`
4+
`maven-publish`
5+
signing
6+
id("io.github.gradle-nexus.publish-plugin") version "1.3.0"
7+
id("org.jlleitschuh.gradle.ktlint") version "11.4.0"
8+
}
9+
10+
repositories {
11+
mavenCentral()
12+
maven { setUrl("https://jitpack.io") }
13+
}
14+
15+
dependencies {
16+
implementation(platform("org.jetbrains.kotlin:kotlin-bom"))
17+
implementation("org.jetbrains.kotlin:kotlin-stdlib")
18+
implementation("org.jetbrains.kotlin:kotlin-reflect")
19+
implementation("com.github.bmoliveira:snake-yaml:v1.18-android")
20+
21+
testImplementation("org.jetbrains.kotlin:kotlin-test")
22+
testImplementation("org.jetbrains.kotlin:kotlin-test-junit")
23+
testImplementation("io.mockk:mockk:1.13.3")
24+
}
25+
26+
group = "io.bloco"
27+
version = "2.0.1"
28+
29+
java {
30+
withSourcesJar()
31+
withJavadocJar()
32+
}
33+
34+
nexusPublishing {
35+
repositories {
36+
sonatype {
37+
nexusUrl.set(uri("https://s01.oss.sonatype.org/service/local/"))
38+
snapshotRepositoryUrl.set(uri("https://s01.oss.sonatype.org/content/repositories/snapshots/"))
39+
}
40+
}
41+
}
42+
43+
publishing {
44+
publications {
45+
create<MavenPublication>("mavenJava") {
46+
from(components["java"])
47+
48+
pom {
49+
name.set("Faker")
50+
description.set("Generates fake data for testing or populating a development database. A Kotlin port of the Faker ruby gem that's suitable to use in Android development.")
51+
url.set("https://github.com/blocoio/faker")
52+
licenses {
53+
license {
54+
name.set("MIT license")
55+
url.set("https://github.com/blocoio/faker/blob/master/LICENSE")
56+
}
57+
}
58+
developers {
59+
developer {
60+
id.set("Bloco")
61+
name.set("Bloco")
62+
email.set("info@bloco.io")
63+
}
64+
}
65+
scm {
66+
connection.set("scm:git:github.com/blocoio/faker")
67+
developerConnection.set("scm:git:github.com/blocoio/faker")
68+
url.set("https://github.com/blocoio/faker")
69+
}
70+
}
71+
}
72+
}
73+
}

lib/build.gradle.kts

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

settings.gradle.kts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
rootProject.name = "faker"
2-
include("lib")

lib/src/main/kotlin/io/bloco/faker/components/Internet.kt renamed to src/main/kotlin/io/bloco/faker/components/Internet.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import io.bloco.faker.FakerComponent
44
import io.bloco.faker.FakerData
55
import io.bloco.faker.helpers.RandomHelper
66
import io.bloco.faker.helpers.normalize
7-
import java.util.*
87

98
class Internet(data: FakerData) : FakerComponent(data) {
109

0 commit comments

Comments
 (0)