diff --git a/build.gradle b/build.gradle index e8d33bf..27ee58c 100644 --- a/build.gradle +++ b/build.gradle @@ -10,15 +10,16 @@ buildscript { kotlinCompilerExtension = '1.5.4' } } + plugins { - id 'com.android.application' version '8.1.2' apply false - id 'com.android.library' version '8.1.2' apply false - id 'org.jetbrains.kotlin.android' version '1.9.20' apply false + id("com.android.application") version '8.1.2' apply false + id("com.android.library") version '8.1.2' apply false + id("org.jetbrains.kotlin.android") version '1.9.20' apply false id("com.google.gms.google-services") version "4.3.15" apply false id("org.jlleitschuh.gradle.ktlint") version "11.6.1" } allprojects { apply plugin: "org.jlleitschuh.gradle.ktlint" - + apply plugin: "maven-publish" } \ No newline at end of file diff --git a/ohteepee/build.gradle b/ohteepee/build.gradle index fc82be6..8692847 100644 --- a/ohteepee/build.gradle +++ b/ohteepee/build.gradle @@ -1,6 +1,7 @@ plugins { id 'com.android.library' id 'org.jetbrains.kotlin.android' + id 'maven-publish' } android { @@ -23,11 +24,11 @@ android { } } compileOptions { - sourceCompatibility JavaVersion.VERSION_1_8 - targetCompatibility JavaVersion.VERSION_1_8 + sourceCompatibility JavaVersion.VERSION_17 + targetCompatibility JavaVersion.VERSION_17 } kotlinOptions { - jvmTarget = '1.8' + jvmTarget = '17' } buildFeatures { compose true @@ -37,6 +38,16 @@ android { } } +publishing { + publications { + release(MavenPublication) { + afterEvaluate { + from components.release + } + } + } +} + dependencies { // Compose implementation "androidx.activity:activity-compose:$composeActivity" diff --git a/sample/build.gradle b/sample/build.gradle index ade6239..605c1f6 100644 --- a/sample/build.gradle +++ b/sample/build.gradle @@ -28,11 +28,11 @@ android { } } compileOptions { - sourceCompatibility JavaVersion.VERSION_1_8 - targetCompatibility JavaVersion.VERSION_1_8 + sourceCompatibility JavaVersion.VERSION_17 + targetCompatibility JavaVersion.VERSION_17 } kotlinOptions { - jvmTarget = '1.8' + jvmTarget = '17' } buildFeatures { compose true