|
1 | | -apply plugin: 'com.android.library' |
2 | | -apply plugin: 'kotlin-android' |
| 1 | +import com.vanniktech.maven.publish.AndroidSingleVariantLibrary |
| 2 | +import com.vanniktech.maven.publish.SonatypeHost |
| 3 | + |
| 4 | +plugins { |
| 5 | + id 'com.android.library' |
| 6 | + id 'org.jetbrains.kotlin.android' |
| 7 | + id 'com.vanniktech.maven.publish' |
| 8 | +} |
| 9 | + |
| 10 | +group = findProperty('GROUP') |
| 11 | +version = findProperty('VERSION_NAME') |
3 | 12 |
|
4 | 13 | android { |
5 | | - compileSdkVersion rootProject.ext.compileSdkVersion |
| 14 | + namespace 'com.commit451.addendum.recyclerview' |
| 15 | + compileSdk rootProject.ext.compileSdkVersion |
6 | 16 |
|
7 | 17 | defaultConfig { |
8 | | - minSdkVersion rootProject.ext.minSdkVersion |
9 | | - targetSdkVersion rootProject.ext.targetSdkVersion |
10 | | - versionCode 1 |
11 | | - versionName "1.0" |
| 18 | + minSdk rootProject.ext.minSdkVersion |
| 19 | + targetSdk rootProject.ext.targetSdkVersion |
| 20 | + } |
| 21 | + |
| 22 | + compileOptions { |
| 23 | + sourceCompatibility JavaVersion.VERSION_17 |
| 24 | + targetCompatibility JavaVersion.VERSION_17 |
| 25 | + } |
| 26 | + |
| 27 | + kotlinOptions { |
| 28 | + jvmTarget = '17' |
12 | 29 | } |
13 | 30 | } |
14 | 31 |
|
15 | 32 | dependencies { |
16 | | - api "androidx.recyclerview:recyclerview:1.0.0" |
| 33 | + api 'androidx.recyclerview:recyclerview:1.3.2' |
17 | 34 | implementation project(':addendum') |
18 | 35 | } |
19 | 36 |
|
20 | | -apply from: 'https://raw.githubusercontent.com/Commit451/gradle-android-javadocs/1.0.0/gradle-android-javadocs.gradle' |
| 37 | +mavenPublishing { |
| 38 | + configure(new AndroidSingleVariantLibrary('release', true, true)) |
| 39 | + coordinates('com.commit451', 'addendum-recyclerview', version.toString()) |
| 40 | + publishToMavenCentral(SonatypeHost.S01) |
| 41 | + if (System.getenv('RELEASE_SIGNING_ENABLED') == 'true') { |
| 42 | + signAllPublications() |
| 43 | + } |
| 44 | +} |
0 commit comments