Skip to content

Commit

Permalink
Change the project structure and provide support for Maven publish (#25)
Browse files Browse the repository at this point in the history
* Delete lib directory

* Update readme

* Remove signing
  • Loading branch information
LilianaFaustinoDev authored Jun 15, 2023
1 parent d63d08b commit 6e9dfe5
Show file tree
Hide file tree
Showing 105 changed files with 75 additions and 42 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ The goal is to reuse their locale data files without changes.
```groovy
repositories {
// ...
maven { url 'https://jitpack.io' }
mavenCentral()
}
dependencies {
implementation 'com.github.blocoio:faker:2.0.0'
implementation 'io.bloco:faker:2.0.1'
}
```

Expand Down
73 changes: 73 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
plugins {
id("org.jetbrains.kotlin.jvm") version "1.6.21"
`java-library`
`maven-publish`
signing
id("io.github.gradle-nexus.publish-plugin") version "1.3.0"
id("org.jlleitschuh.gradle.ktlint") version "11.4.0"
}

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

dependencies {
implementation(platform("org.jetbrains.kotlin:kotlin-bom"))
implementation("org.jetbrains.kotlin:kotlin-stdlib")
implementation("org.jetbrains.kotlin:kotlin-reflect")
implementation("com.github.bmoliveira:snake-yaml:v1.18-android")

testImplementation("org.jetbrains.kotlin:kotlin-test")
testImplementation("org.jetbrains.kotlin:kotlin-test-junit")
testImplementation("io.mockk:mockk:1.13.3")
}

group = "io.bloco"
version = "2.0.1"

java {
withSourcesJar()
withJavadocJar()
}

nexusPublishing {
repositories {
sonatype {
nexusUrl.set(uri("https://s01.oss.sonatype.org/service/local/"))
snapshotRepositoryUrl.set(uri("https://s01.oss.sonatype.org/content/repositories/snapshots/"))
}
}
}

publishing {
publications {
create<MavenPublication>("mavenJava") {
from(components["java"])

pom {
name.set("Faker")
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.")
url.set("https://github.com/blocoio/faker")
licenses {
license {
name.set("MIT license")
url.set("https://github.com/blocoio/faker/blob/master/LICENSE")
}
}
developers {
developer {
id.set("Bloco")
name.set("Bloco")
email.set("info@bloco.io")
}
}
scm {
connection.set("scm:git:github.com/blocoio/faker")
developerConnection.set("scm:git:github.com/blocoio/faker")
url.set("https://github.com/blocoio/faker")
}
}
}
}
}
38 changes: 0 additions & 38 deletions lib/build.gradle.kts

This file was deleted.

1 change: 0 additions & 1 deletion settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
rootProject.name = "faker"
include("lib")
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import io.bloco.faker.FakerComponent
import io.bloco.faker.FakerData
import io.bloco.faker.helpers.RandomHelper
import io.bloco.faker.helpers.normalize
import java.util.*

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

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 6e9dfe5

Please sign in to comment.