Skip to content

Commit 18a436f

Browse files
committed
Fix JitPack build
1 parent fba3296 commit 18a436f

File tree

3 files changed

+22
-12
lines changed

3 files changed

+22
-12
lines changed

android-wave-recorder/build.gradle

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1-
apply plugin: 'com.android.library'
2-
apply plugin: 'kotlin-android'
1+
plugins {
2+
id 'com.android.library'
3+
id 'org.jetbrains.kotlin.android'
4+
id 'maven-publish'
5+
}
36
android {
47

58

@@ -20,14 +23,22 @@ android {
2023
}
2124
namespace 'com.github.squti.androidwaverecorder'
2225
compileOptions {
23-
sourceCompatibility JavaVersion.VERSION_1_8
24-
targetCompatibility JavaVersion.VERSION_1_8
26+
sourceCompatibility JavaVersion.VERSION_17
27+
targetCompatibility JavaVersion.VERSION_17
2528
}
2629
kotlinOptions {
27-
jvmTarget = '1.8'
30+
jvmTarget = '17'
31+
}
32+
}
33+
afterEvaluate {
34+
publishing {
35+
publications {
36+
release(MavenPublication) {
37+
from components.release
38+
}
39+
}
2840
}
2941
}
30-
3142
dependencies {
3243
implementation fileTree(dir: 'libs', include: ['*.jar'])
3344
implementation 'androidx.core:core-ktx:1.10.1'

build.gradle

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
buildscript {
44
repositories {
55
google()
6-
jcenter()
6+
mavenCentral()
77

88
}
99
dependencies {
@@ -17,8 +17,7 @@ buildscript {
1717
allprojects {
1818
repositories {
1919
google()
20-
jcenter()
21-
20+
mavenCentral()
2221
}
2322
}
2423

sample/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ android {
2323
}
2424
namespace 'com.github.squti.androidwaverecordersample'
2525
compileOptions {
26-
sourceCompatibility JavaVersion.VERSION_1_8
27-
targetCompatibility JavaVersion.VERSION_1_8
26+
sourceCompatibility JavaVersion.VERSION_17
27+
targetCompatibility JavaVersion.VERSION_17
2828
}
2929
kotlinOptions {
30-
jvmTarget = '1.8'
30+
jvmTarget = '17'
3131
}
3232
}
3333

0 commit comments

Comments
 (0)