diff --git a/blockiesgenerator/build.gradle.kts b/blockiesgenerator/build.gradle.kts index 0792f56..0c539d5 100644 --- a/blockiesgenerator/build.gradle.kts +++ b/blockiesgenerator/build.gradle.kts @@ -1,5 +1,6 @@ plugins { id("com.android.library") + id("maven-publish") id("org.jetbrains.kotlin.android") } @@ -37,4 +38,18 @@ dependencies { testImplementation("junit:junit:4.13.2") androidTestImplementation("androidx.test.ext:junit:1.1.5") androidTestImplementation("androidx.test.espresso:espresso-core:3.5.1") +} + +afterEvaluate { + publishing { + publications { + register("mavenJava", MavenPublication::class) { + groupId = "com.github.nikhiljainlive.blockies_android" + artifactId = "blockiesgenerator" + version = "v0.1.2" + + from(components["release"]) + } + } + } } \ No newline at end of file diff --git a/blockiesglide/build.gradle.kts b/blockiesglide/build.gradle.kts index 5317077..70f1868 100644 --- a/blockiesglide/build.gradle.kts +++ b/blockiesglide/build.gradle.kts @@ -1,5 +1,6 @@ plugins { id("com.android.library") + id("maven-publish") id("org.jetbrains.kotlin.android") id("kotlin-kapt") } @@ -45,4 +46,18 @@ dependencies { // glide implementation("com.github.bumptech.glide:glide:4.16.0") kapt("com.github.bumptech.glide:compiler:4.16.0") +} + +afterEvaluate { + publishing { + publications { + register("mavenJava", MavenPublication::class) { + groupId = "com.github.nikhiljainlive.blockies_android" + artifactId = "blockiesglide" + version = "v0.1.2" + + from(components["release"]) + } + } + } } \ No newline at end of file diff --git a/blockiesview/build.gradle.kts b/blockiesview/build.gradle.kts index 93240e5..f645a89 100644 --- a/blockiesview/build.gradle.kts +++ b/blockiesview/build.gradle.kts @@ -1,5 +1,6 @@ plugins { id("com.android.library") + id("maven-publish") id("org.jetbrains.kotlin.android") } @@ -38,4 +39,18 @@ dependencies { testImplementation("junit:junit:4.13.2") androidTestImplementation("androidx.test.ext:junit:1.1.5") androidTestImplementation("androidx.test.espresso:espresso-core:3.5.1") +} + +afterEvaluate { + publishing { + publications { + register("mavenJava", MavenPublication::class) { + groupId = "com.github.nikhiljainlive.blockies_android" + artifactId = "blockiesview" + version = "v0.1.2" + + from(components["release"]) + } + } + } } \ No newline at end of file diff --git a/jitpack.yml b/jitpack.yml new file mode 100644 index 0000000..a51a184 --- /dev/null +++ b/jitpack.yml @@ -0,0 +1,5 @@ +jdk: + - openjdk17 +before_install: + - sdk install java 17.0.3-tem + - sdk use java 17.0.3-tem \ No newline at end of file diff --git a/settings.gradle.kts b/settings.gradle.kts index b5f9e5b..c3ba101 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -10,6 +10,7 @@ dependencyResolutionManagement { repositories { google() mavenCentral() + maven { url = uri("https://jitpack.io") } } }