Skip to content

Commit

Permalink
Fix Jitpack publishing error
Browse files Browse the repository at this point in the history
  • Loading branch information
tarikyasar committed Jun 15, 2024
1 parent 36e1ed3 commit 6fdcfcb
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 10 deletions.
9 changes: 5 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
17 changes: 14 additions & 3 deletions ohteepee/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
plugins {
id 'com.android.library'
id 'org.jetbrains.kotlin.android'
id 'maven-publish'
}

android {
Expand All @@ -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
Expand All @@ -37,6 +38,16 @@ android {
}
}

publishing {
publications {
release(MavenPublication) {
afterEvaluate {
from components.release
}
}
}
}

dependencies {
// Compose
implementation "androidx.activity:activity-compose:$composeActivity"
Expand Down
6 changes: 3 additions & 3 deletions sample/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6fdcfcb

Please sign in to comment.