Skip to content

Commit a0bb247

Browse files
committed
Updated dependencies
1 parent 0dde346 commit a0bb247

File tree

7 files changed

+37
-89
lines changed

7 files changed

+37
-89
lines changed

app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,13 @@ dependencies {
4444
implementation rootProject.ext.recyclerView
4545
implementation rootProject.ext.core
4646
implementation rootProject.ext.constraintLayout
47+
implementation rootProject.ext.kotlinStdLib
4748

4849
implementation project(':library')
4950
implementation project(':paging')
5051
implementation project(':kotlin-dsl')
5152
implementation project(':kotlin-dsl-layoutcontainer')
5253
implementation project(':kotlin-dsl-viewbinding')
53-
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
5454
}
5555
repositories {
5656
mavenCentral()

build.gradle

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ buildscript {
88
}
99
dependencies {
1010
classpath 'com.android.tools.build:gradle:7.0.3'
11-
classpath 'com.vanniktech:gradle-maven-publish-plugin:0.6.0'
11+
classpath 'com.vanniktech:gradle-maven-publish-plugin:0.18.0'
1212
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
1313
}
1414
}
@@ -22,12 +22,17 @@ allprojects {
2222

2323

2424
ext {
25+
compileSdk = 31
26+
targetSdk = 31
27+
minSdk = 14
28+
kotlinStdLib = "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
2529
recyclerView = 'androidx.recyclerview:recyclerview:1.2.1'
2630
appCompat = 'androidx.appcompat:appcompat:1.3.1'
2731
androidAnnotations = 'androidx.annotation:annotation:1.3.0'
2832
core = 'androidx.core:core:1.7.0'
2933
paging = "androidx.paging:paging-runtime:2.0.0"
30-
compileSdk = 31
34+
junit = 'junit:junit:4.12'
35+
mockito = 'org.mockito:mockito-inline:2.21.0'
3136
constraintLayout = 'androidx.constraintlayout:constraintlayout:2.1.1'
3237

3338
javaSourceCompatibility = JavaVersion.VERSION_1_8
Lines changed: 6 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,19 @@
11
apply plugin: 'com.android.library'
22
apply plugin: 'kotlin-android'
33
apply plugin: 'kotlin-android-extensions'
4+
apply plugin: "com.vanniktech.maven.publish"
45

56
androidExtensions {
67
experimental = true
78
}
89

9-
gradle.ext.isCiServer = System.getenv().containsKey("CI")
10-
logger.warn("Running on CI: ${gradle.ext.isCiServer}")
11-
12-
if (gradle.ext.isCiServer) {
13-
apply plugin: "com.vanniktech.maven.publish"
14-
mavenPublish {
15-
releaseRepositoryUrl = "https://oss.sonatype.org/service/local/staging/deploy/maven2/"
16-
snapshotRepositoryUrl = "https://oss.sonatype.org/content/repositories/snapshots/"
17-
}
18-
}
1910

2011
android {
2112
compileSdkVersion rootProject.ext.compileSdk
2213

2314
defaultConfig {
24-
minSdkVersion 14
25-
targetSdkVersion 28
15+
minSdkVersion rootProject.ext.minSdk
16+
targetSdkVersion rootProject.ext.targetSdk
2617
}
2718
buildTypes {
2819
release {
@@ -43,11 +34,8 @@ android {
4334

4435
dependencies {
4536
api project(":library")
37+
implementation rootProject.ext.kotlinStdLib
4638

47-
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
48-
testImplementation 'junit:junit:4.12'
49-
testImplementation 'org.mockito:mockito-inline:2.21.0'
39+
testImplementation rootProject.ext.junit
40+
testImplementation rootProject.ext.mockito
5041
}
51-
52-
// apply from: 'https://raw.github.com/sockeqwe/gradle-mvn-push/master/gradle-mvn-push.gradle'
53-
// apply from: 'https://raw.githubusercontent.com/Tickaroo/findbugs-script/master/findbugs.gradle'

kotlin-dsl-viewbinding/build.gradle

Lines changed: 7 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,20 @@
11
apply plugin: 'com.android.library'
22
apply plugin: 'kotlin-android'
33
apply plugin: 'kotlin-android-extensions'
4+
apply plugin: "com.vanniktech.maven.publish"
5+
46

57
androidExtensions {
68
experimental = true
79
}
810

9-
gradle.ext.isCiServer = System.getenv().containsKey("CI")
10-
logger.warn("Running on CI: ${gradle.ext.isCiServer}")
11-
12-
if (gradle.ext.isCiServer) {
13-
apply plugin: "com.vanniktech.maven.publish"
14-
mavenPublish {
15-
releaseRepositoryUrl = "https://oss.sonatype.org/service/local/staging/deploy/maven2/"
16-
snapshotRepositoryUrl = "https://oss.sonatype.org/content/repositories/snapshots/"
17-
}
18-
}
1911

2012
android {
2113
compileSdkVersion rootProject.ext.compileSdk
2214

2315
defaultConfig {
24-
minSdkVersion 14
25-
targetSdkVersion 28
16+
minSdkVersion rootProject.ext.minSdk
17+
targetSdkVersion rootProject.ext.targetSdk
2618
}
2719
buildTypes {
2820
release {
@@ -47,11 +39,8 @@ android {
4739

4840
dependencies {
4941
api project(":library")
42+
implementation rootProject.ext.kotlinStdLib
5043

51-
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
52-
testImplementation 'junit:junit:4.12'
53-
testImplementation 'org.mockito:mockito-inline:2.21.0'
44+
testImplementation rootProject.ext.junit
45+
testImplementation rootProject.ext.mockito
5446
}
55-
56-
// apply from: 'https://raw.github.com/sockeqwe/gradle-mvn-push/master/gradle-mvn-push.gradle'
57-
// apply from: 'https://raw.githubusercontent.com/Tickaroo/findbugs-script/master/findbugs.gradle'

kotlin-dsl/build.gradle

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,14 @@
11
apply plugin: 'com.android.library'
22
apply plugin: 'kotlin-android'
3+
apply plugin: "com.vanniktech.maven.publish"
34

4-
gradle.ext.isCiServer = System.getenv().containsKey("CI")
5-
logger.warn("Running on CI: ${gradle.ext.isCiServer}")
6-
7-
if (gradle.ext.isCiServer) {
8-
apply plugin: "com.vanniktech.maven.publish"
9-
mavenPublish {
10-
releaseRepositoryUrl = "https://oss.sonatype.org/service/local/staging/deploy/maven2/"
11-
snapshotRepositoryUrl = "https://oss.sonatype.org/content/repositories/snapshots/"
12-
}
13-
}
145

156
android {
167
compileSdkVersion rootProject.ext.compileSdk
178

189
defaultConfig {
19-
minSdkVersion 14
20-
targetSdkVersion 28
10+
minSdkVersion rootProject.ext.minSdk
11+
targetSdkVersion rootProject.ext.targetSdk
2112
}
2213
buildTypes {
2314
release {
@@ -38,8 +29,8 @@ android {
3829

3930
dependencies {
4031
api project(":library")
32+
implementation rootProject.ext.kotlinStdLib
4133

42-
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
43-
testImplementation 'junit:junit:4.12'
44-
testImplementation 'org.mockito:mockito-inline:2.21.0'
34+
testImplementation rootProject.ext.junit
35+
testImplementation rootProject.ext.mockito
4536
}

library/build.gradle

Lines changed: 5 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,12 @@
11
apply plugin: 'com.android.library'
2-
3-
gradle.ext.isCiServer = System.getenv().containsKey("CI")
4-
logger.warn("Running on CI: ${gradle.ext.isCiServer}")
5-
6-
if (gradle.ext.isCiServer) {
7-
apply plugin: "com.vanniktech.maven.publish"
8-
mavenPublish {
9-
releaseRepositoryUrl = "https://oss.sonatype.org/service/local/staging/deploy/maven2/"
10-
snapshotRepositoryUrl = "https://oss.sonatype.org/content/repositories/snapshots/"
11-
}
12-
}
2+
apply plugin: "com.vanniktech.maven.publish"
133

144
android {
155
compileSdkVersion rootProject.ext.compileSdk
166

177
defaultConfig {
18-
minSdkVersion 14
19-
targetSdkVersion 28
8+
minSdkVersion rootProject.ext.minSdk
9+
targetSdkVersion rootProject.ext.targetSdk
2010
}
2111
buildTypes {
2212
release {
@@ -39,9 +29,6 @@ dependencies {
3929
api rootProject.ext.recyclerView
4030
api rootProject.ext.androidAnnotations
4131

42-
testImplementation 'junit:junit:4.12'
43-
testImplementation 'org.mockito:mockito-inline:2.21.0'
32+
testImplementation rootProject.ext.junit
33+
testImplementation rootProject.ext.mockito
4434
}
45-
46-
// apply from: 'https://raw.github.com/sockeqwe/gradle-mvn-push/master/gradle-mvn-push.gradle'
47-
// apply from: 'https://raw.githubusercontent.com/Tickaroo/findbugs-script/master/findbugs.gradle'

paging/build.gradle

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,12 @@
11
apply plugin: 'com.android.library'
2-
3-
gradle.ext.isCiServer = System.getenv().containsKey("CI")
4-
logger.warn("Running on CI: ${gradle.ext.isCiServer}")
5-
6-
if (gradle.ext.isCiServer) {
7-
apply plugin: "com.vanniktech.maven.publish"
8-
mavenPublish {
9-
releaseRepositoryUrl = "https://oss.sonatype.org/service/local/staging/deploy/maven2/"
10-
snapshotRepositoryUrl = "https://oss.sonatype.org/content/repositories/snapshots/"
11-
}
12-
}
2+
apply plugin: "com.vanniktech.maven.publish"
133

144
android {
155
compileSdkVersion rootProject.ext.compileSdk
166

177
defaultConfig {
18-
minSdkVersion 14
19-
targetSdkVersion 28
8+
minSdkVersion rootProject.ext.minSdk
9+
targetSdkVersion rootProject.ext.targetSdk
2010
}
2111
buildTypes {
2212
release {
@@ -37,11 +27,9 @@ android {
3727
}
3828

3929
dependencies {
40-
implementation fileTree(dir: 'libs', include: ['*.jar'])
41-
4230
implementation project(":library")
4331
api rootProject.ext.paging
4432

45-
testImplementation 'junit:junit:4.12'
46-
testImplementation 'org.mockito:mockito-inline:2.21.0'
33+
testImplementation rootProject.ext.junit
34+
testImplementation rootProject.ext.mockito
4735
}

0 commit comments

Comments
 (0)