Skip to content

Commit

Permalink
Merge pull request #126 from FunkyMuse/jitpack_7_gradle_compatibility
Browse files Browse the repository at this point in the history
Jitpack 7 gradle compatibility
  • Loading branch information
FunkyMuse authored Aug 4, 2021
2 parents d9255e1 + 7e23d9a commit 26d843a
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 55 deletions.
3 changes: 1 addition & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ dependencies {
implementation 'androidx.vectordrawable:vectordrawable:1.1.0'

implementation "androidx.constraintlayout:constraintlayout:$constraint_layout"
implementation "androidx.constraintlayout:constraintlayout-solver:$constraint_layout"

//nav
implementation "androidx.navigation:navigation-fragment-ktx:$nav_version"
Expand Down Expand Up @@ -125,4 +124,4 @@ dependencies {
kapt "androidx.room:room-compiler:$room_version"


}
}
26 changes: 20 additions & 6 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ buildscript {
retrofit = "2.9.0"
rxBindings = "4.0.0"
glide = "4.12.0"
constraint_layout = '2.0.4'
constraint_layout = '2.1.0'
coroutines = '1.5.1-native-mt'
nav_version = '2.3.5'
rx = '3.0.0'
Expand Down Expand Up @@ -57,22 +57,22 @@ buildscript {

repositories {
google()
jcenter()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:4.2.2'
classpath 'com.android.tools.build:gradle:7.0.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
}
}



allprojects {
group = "io.github.funkymuse"

repositories {
google()
jcenter()
mavenCentral()
}
}

Expand All @@ -88,6 +88,7 @@ subprojects {
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-kapt'
apply plugin: 'kotlin-parcelize'

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
}
Expand All @@ -98,13 +99,14 @@ subprojects {
apply plugin: 'java-library'
apply plugin: 'kotlin'
applyKotlinModule(it)

break

default:
//setup gradle for libraries
apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
apply plugin: 'com.github.dcendents.android-maven'
apply plugin: 'maven-publish'
apply plugin: 'kotlin-parcelize'
applyAndroid(it, false)

Expand All @@ -124,6 +126,18 @@ subprojects {
androidTestImplementation "androidx.test.espresso:espresso-core:$espressoVersion"
}


it.afterEvaluate {
publishing {
publications {
release(MavenPublication) {
from components.release
}
}
}
}


break
}

Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.0.2-bin.zip
5 changes: 5 additions & 0 deletions jitpack.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
jdk:
- openjdk11
install:
- ./gradlew publishToMavenLocal
- find . -name "*.aar"
1 change: 0 additions & 1 deletion kotlinextensions/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ dependencies {
implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0'
implementation "com.google.android.material:material:$material"
implementation "androidx.constraintlayout:constraintlayout:$constraint_layout"
implementation "androidx.constraintlayout:constraintlayout-solver:$constraint_layout"

//util
implementation 'androidx.exifinterface:exifinterface:1.3.2'
Expand Down
44 changes: 0 additions & 44 deletions math/build.gradle
Original file line number Diff line number Diff line change
@@ -1,44 +0,0 @@
plugins {
id 'com.android.library'
id 'kotlin-android'
}

android {
compileSdkVersion 30
buildToolsVersion "30.0.3"

defaultConfig {
minSdkVersion 21
targetSdkVersion 30
versionCode 1
versionName "1.0"

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles "consumer-rules.pro"
}

buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = '1.8'
}
}

dependencies {

implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
implementation 'androidx.core:core-ktx:1.7.0-alpha01'
implementation 'androidx.appcompat:appcompat:1.3.1'
implementation 'com.google.android.material:material:1.4.0'
testImplementation 'junit:junit:4.+'
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
}
2 changes: 1 addition & 1 deletion viewpager2/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ dependencies {
implementation 'androidx.core:core-ktx:1.7.0-alpha01'
implementation 'androidx.appcompat:appcompat:1.3.1'
implementation 'com.google.android.material:material:1.4.0'
testImplementation 'junit:junit:4.+'
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
}

0 comments on commit 26d843a

Please sign in to comment.