File tree Expand file tree Collapse file tree 7 files changed +37
-89
lines changed
kotlin-dsl-layoutcontainer Expand file tree Collapse file tree 7 files changed +37
-89
lines changed Original file line number Diff line number Diff line change @@ -44,13 +44,13 @@ dependencies {
44
44
implementation rootProject. ext. recyclerView
45
45
implementation rootProject. ext. core
46
46
implementation rootProject. ext. constraintLayout
47
+ implementation rootProject. ext. kotlinStdLib
47
48
48
49
implementation project(' :library' )
49
50
implementation project(' :paging' )
50
51
implementation project(' :kotlin-dsl' )
51
52
implementation project(' :kotlin-dsl-layoutcontainer' )
52
53
implementation project(' :kotlin-dsl-viewbinding' )
53
- implementation " org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version "
54
54
}
55
55
repositories {
56
56
mavenCentral()
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ buildscript {
8
8
}
9
9
dependencies {
10
10
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'
12
12
classpath " org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version "
13
13
}
14
14
}
@@ -22,12 +22,17 @@ allprojects {
22
22
23
23
24
24
ext {
25
+ compileSdk = 31
26
+ targetSdk = 31
27
+ minSdk = 14
28
+ kotlinStdLib = " org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version "
25
29
recyclerView = ' androidx.recyclerview:recyclerview:1.2.1'
26
30
appCompat = ' androidx.appcompat:appcompat:1.3.1'
27
31
androidAnnotations = ' androidx.annotation:annotation:1.3.0'
28
32
core = ' androidx.core:core:1.7.0'
29
33
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'
31
36
constraintLayout = ' androidx.constraintlayout:constraintlayout:2.1.1'
32
37
33
38
javaSourceCompatibility = JavaVersion . VERSION_1_8
Original file line number Diff line number Diff line change 1
1
apply plugin : ' com.android.library'
2
2
apply plugin : ' kotlin-android'
3
3
apply plugin : ' kotlin-android-extensions'
4
+ apply plugin : " com.vanniktech.maven.publish"
4
5
5
6
androidExtensions {
6
7
experimental = true
7
8
}
8
9
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
- }
19
10
20
11
android {
21
12
compileSdkVersion rootProject. ext. compileSdk
22
13
23
14
defaultConfig {
24
- minSdkVersion 14
25
- targetSdkVersion 28
15
+ minSdkVersion rootProject . ext . minSdk
16
+ targetSdkVersion rootProject . ext . targetSdk
26
17
}
27
18
buildTypes {
28
19
release {
@@ -43,11 +34,8 @@ android {
43
34
44
35
dependencies {
45
36
api project(" :library" )
37
+ implementation rootProject. ext. kotlinStdLib
46
38
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
50
41
}
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'
Original file line number Diff line number Diff line change 1
1
apply plugin : ' com.android.library'
2
2
apply plugin : ' kotlin-android'
3
3
apply plugin : ' kotlin-android-extensions'
4
+ apply plugin : " com.vanniktech.maven.publish"
5
+
4
6
5
7
androidExtensions {
6
8
experimental = true
7
9
}
8
10
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
- }
19
11
20
12
android {
21
13
compileSdkVersion rootProject. ext. compileSdk
22
14
23
15
defaultConfig {
24
- minSdkVersion 14
25
- targetSdkVersion 28
16
+ minSdkVersion rootProject . ext . minSdk
17
+ targetSdkVersion rootProject . ext . targetSdk
26
18
}
27
19
buildTypes {
28
20
release {
@@ -47,11 +39,8 @@ android {
47
39
48
40
dependencies {
49
41
api project(" :library" )
42
+ implementation rootProject. ext. kotlinStdLib
50
43
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
54
46
}
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'
Original file line number Diff line number Diff line change 1
1
apply plugin : ' com.android.library'
2
2
apply plugin : ' kotlin-android'
3
+ apply plugin : " com.vanniktech.maven.publish"
3
4
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
- }
14
5
15
6
android {
16
7
compileSdkVersion rootProject. ext. compileSdk
17
8
18
9
defaultConfig {
19
- minSdkVersion 14
20
- targetSdkVersion 28
10
+ minSdkVersion rootProject . ext . minSdk
11
+ targetSdkVersion rootProject . ext . targetSdk
21
12
}
22
13
buildTypes {
23
14
release {
@@ -38,8 +29,8 @@ android {
38
29
39
30
dependencies {
40
31
api project(" :library" )
32
+ implementation rootProject. ext. kotlinStdLib
41
33
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
45
36
}
Original file line number Diff line number Diff line change 1
1
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"
13
3
14
4
android {
15
5
compileSdkVersion rootProject. ext. compileSdk
16
6
17
7
defaultConfig {
18
- minSdkVersion 14
19
- targetSdkVersion 28
8
+ minSdkVersion rootProject . ext . minSdk
9
+ targetSdkVersion rootProject . ext . targetSdk
20
10
}
21
11
buildTypes {
22
12
release {
@@ -39,9 +29,6 @@ dependencies {
39
29
api rootProject. ext. recyclerView
40
30
api rootProject. ext. androidAnnotations
41
31
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
44
34
}
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'
Original file line number Diff line number Diff line change 1
1
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"
13
3
14
4
android {
15
5
compileSdkVersion rootProject. ext. compileSdk
16
6
17
7
defaultConfig {
18
- minSdkVersion 14
19
- targetSdkVersion 28
8
+ minSdkVersion rootProject . ext . minSdk
9
+ targetSdkVersion rootProject . ext . targetSdk
20
10
}
21
11
buildTypes {
22
12
release {
@@ -37,11 +27,9 @@ android {
37
27
}
38
28
39
29
dependencies {
40
- implementation fileTree(dir : ' libs' , include : [' *.jar' ])
41
-
42
30
implementation project(" :library" )
43
31
api rootProject. ext. paging
44
32
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
47
35
}
You can’t perform that action at this time.
0 commit comments