Skip to content

Commit

Permalink
2.10.1 (Pt2): fix deps for maven-publish
Browse files Browse the repository at this point in the history
  • Loading branch information
Zhuinden committed May 3, 2022
1 parent 930ce0e commit 1c84c1a
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 68 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -180,7 +180,7 @@ In your project level `build.gradle` file, include:

```
buildscript {
ext.kotlin_version = '1.4.21'
ext.kotlin_version = '1.6.21'
repositories {
mavenCentral()
Expand Down
4 changes: 2 additions & 2 deletions build.gradle
Expand Up @@ -18,8 +18,8 @@ buildscript {

repositories {
google()
jcenter()
mavenCentral()
jcenter()
maven { url "https://jitpack.io" }
}
dependencies {
Expand All @@ -37,8 +37,8 @@ allprojects { project ->

repositories {
google()
jcenter()
mavenCentral()
jcenter()
maven { url "https://jitpack.io" }
}

Expand Down
19 changes: 1 addition & 18 deletions example/build.gradle
Expand Up @@ -2,18 +2,6 @@ apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'

buildscript {
repositories {
jcenter()
mavenCentral()
maven { url "https://jitpack.io" }
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "org.jetbrains.kotlin:kotlin-android-extensions:$kotlin_version"
}
}

androidExtensions {
experimental = true
}
Expand Down Expand Up @@ -43,9 +31,4 @@ dependencies {
implementation project(':example-shared')
implementation project(':library')
implementation project(':library-kotlin-android-extensions')
}

repositories {
mavenCentral()
maven { url "https://jitpack.io" }
}
}
14 changes: 3 additions & 11 deletions library-databinding/build.gradle
@@ -1,14 +1,6 @@
apply plugin: 'com.android.library'
apply plugin: 'maven-publish'

buildscript {
repositories {
jcenter()
mavenCentral()
maven { url "https://jitpack.io" }
}
}

archivesBaseName = 'groupie-databinding'

android {
Expand Down Expand Up @@ -37,8 +29,8 @@ android {
}

dependencies {
compileOnly project(':library')
compileOnly "androidx.recyclerview:recyclerview:1.2.1"
implementation project(':library')
implementation "androidx.recyclerview:recyclerview:1.2.1"
compileOnly("androidx.databinding:databinding-runtime:$databinding_version") {
transitive = false
}
Expand All @@ -48,7 +40,7 @@ dependencies {
compileOnly("androidx.databinding:viewbinding:$databinding_version") {
transitive = false
}
compileOnly("androidx.annotation:annotation:1.3.0")
implementation("androidx.annotation:annotation:1.3.0")
}


Expand Down
19 changes: 2 additions & 17 deletions library-kotlin-android-extensions/build.gradle
Expand Up @@ -3,17 +3,6 @@ apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
apply plugin: 'maven-publish'

buildscript {
repositories {
jcenter()
mavenCentral()
maven { url "https://jitpack.io" }
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "org.jetbrains.kotlin:kotlin-android-extensions:$kotlin_version"
}
}

archivesBaseName = 'groupie-kotlin-android-extensions'

Expand Down Expand Up @@ -49,12 +38,8 @@ android {
}

dependencies {
compileOnly project(':library')
compileOnly "androidx.recyclerview:recyclerview:1.2.1"
}

repositories {
mavenCentral()
implementation project(':library')
implementation "androidx.recyclerview:recyclerview:1.2.1"
}

tasks.withType(Javadoc).all {
Expand Down
14 changes: 3 additions & 11 deletions library-viewbinding/build.gradle
@@ -1,14 +1,6 @@
apply plugin: 'com.android.library'
apply plugin: 'maven-publish'

buildscript {
repositories {
jcenter()
mavenCentral()
maven { url "https://jitpack.io" }
}
}

archivesBaseName = 'groupie-viewbinding'

android {
Expand Down Expand Up @@ -37,12 +29,12 @@ android {
}

dependencies {
compileOnly project(':library')
compileOnly("androidx.recyclerview:recyclerview:1.2.1")
implementation project(':library')
implementation("androidx.recyclerview:recyclerview:1.2.1")
compileOnly("androidx.databinding:viewbinding:$viewbinding_version") {
transitive = false
}
compileOnly("androidx.annotation:annotation:1.3.0")
implementation("androidx.annotation:annotation:1.3.0")
}


Expand Down
8 changes: 0 additions & 8 deletions library/build.gradle
@@ -1,14 +1,6 @@
apply plugin: 'com.android.library'
apply plugin: 'maven-publish'

buildscript {
repositories {
jcenter()
mavenCentral()
maven { url "https://jitpack.io" }
}
}

archivesBaseName = 'groupie'

android {
Expand Down

0 comments on commit 1c84c1a

Please sign in to comment.