File tree Expand file tree Collapse file tree 3 files changed +22
-12
lines changed Expand file tree Collapse file tree 3 files changed +22
-12
lines changed Original file line number Diff line number Diff line change 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
+ }
3
6
android {
4
7
5
8
@@ -20,14 +23,22 @@ android {
20
23
}
21
24
namespace ' com.github.squti.androidwaverecorder'
22
25
compileOptions {
23
- sourceCompatibility JavaVersion . VERSION_1_8
24
- targetCompatibility JavaVersion . VERSION_1_8
26
+ sourceCompatibility JavaVersion . VERSION_17
27
+ targetCompatibility JavaVersion . VERSION_17
25
28
}
26
29
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
+ }
28
40
}
29
41
}
30
-
31
42
dependencies {
32
43
implementation fileTree(dir : ' libs' , include : [' *.jar' ])
33
44
implementation ' androidx.core:core-ktx:1.10.1'
Original file line number Diff line number Diff line change 3
3
buildscript {
4
4
repositories {
5
5
google()
6
- jcenter ()
6
+ mavenCentral ()
7
7
8
8
}
9
9
dependencies {
@@ -17,8 +17,7 @@ buildscript {
17
17
allprojects {
18
18
repositories {
19
19
google()
20
- jcenter()
21
-
20
+ mavenCentral()
22
21
}
23
22
}
24
23
Original file line number Diff line number Diff line change @@ -23,11 +23,11 @@ android {
23
23
}
24
24
namespace ' com.github.squti.androidwaverecordersample'
25
25
compileOptions {
26
- sourceCompatibility JavaVersion . VERSION_1_8
27
- targetCompatibility JavaVersion . VERSION_1_8
26
+ sourceCompatibility JavaVersion . VERSION_17
27
+ targetCompatibility JavaVersion . VERSION_17
28
28
}
29
29
kotlinOptions {
30
- jvmTarget = ' 1.8 '
30
+ jvmTarget = ' 17 '
31
31
}
32
32
}
33
33
You can’t perform that action at this time.
0 commit comments