From 02ad2d7f281b036c3b3118b175ffb791ef95021f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs=20Mar=C3=ADa?= Date: Sat, 14 Aug 2021 11:22:46 +0200 Subject: [PATCH] Include components to publishing --- jchucomponentscompose/build.gradle.kts | 31 +++++++++++++++++--------- 1 file changed, 21 insertions(+), 10 deletions(-) diff --git a/jchucomponentscompose/build.gradle.kts b/jchucomponentscompose/build.gradle.kts index 231da609..61fbd1f5 100644 --- a/jchucomponentscompose/build.gradle.kts +++ b/jchucomponentscompose/build.gradle.kts @@ -4,16 +4,6 @@ plugins { id("maven-publish") } -publishing { - publications { - create("maven") { - groupId = "com.github.Jeluchu" - artifactId = "jchucomponents-compose" - version = "0.1.0" - } - } -} - android { compileSdk = 30 @@ -30,6 +20,15 @@ android { kotlinCompilerExtensionVersion = "1.0.1" } + buildTypes { + release { + isMinifyEnabled = false + proguardFiles( + getDefaultProguardFile("proguard-android-optimize.txt"), + "proguard-rules.pro" + ) } + } + compileOptions { sourceCompatibility = JavaVersion.VERSION_11 targetCompatibility = JavaVersion.VERSION_11 @@ -92,4 +91,16 @@ dependencies { // THIRD PARTY DEPENDENCIES -------------------------------------------------------------------- implementation("io.coil-kt:coil-compose:1.3.2") +} + +afterEvaluate { + publishing { + publications { + create("release") { + groupId = "com.github.Jeluchu" + artifactId = "jchucomponents-compose" + version = "0.0.1" + } + } + } } \ No newline at end of file