Skip to content

Commit

Permalink
fix gradle for library
Browse files Browse the repository at this point in the history
  • Loading branch information
rahbadev committed Jun 19, 2023
1 parent 99da901 commit 15c873f
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 24 deletions.
23 changes: 6 additions & 17 deletions BtechUtils/build.gradle
Original file line number Diff line number Diff line change
@@ -1,21 +1,14 @@
apply plugin: 'com.android.library'

apply plugin: 'org.jetbrains.kotlin.android'

apply plugin: 'maven-publish'

group = 'com.github.btech16'
version = '1.0'
plugins {
id 'com.android.library'
id 'org.jetbrains.kotlin.android'
id 'maven-publish'
}

afterEvaluate {
publishing {
publications {
// Creates a Maven publication called "release".
release(MavenPublication) {
from components.release
groupId = 'com.github.btech16'
artifactId = 'btech-utils'
version = '1.0'
}
}
}
Expand All @@ -24,7 +17,7 @@ afterEvaluate {
android {
namespace 'com.rhdev.btechutils'
compileSdk 34
buildToolsVersion '34.0.0 rc4'
buildToolsVersion '34.0.0'

defaultConfig {
minSdk 22
Expand All @@ -50,7 +43,6 @@ android {

dependencies {

implementation 'androidx.core:core-ktx:1.10.1'
implementation 'com.google.android.material:material:1.9.0'

// Toasty
Expand All @@ -66,6 +58,3 @@ dependencies {


}
tasks.withType(Javadoc).all {
enabled = false
}
4 changes: 2 additions & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Sun Jun 18 18:06:57 TRT 2023
#Mon Jun 19 14:37:57 TRT 2023
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.2-rc-2-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.1-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
2 changes: 1 addition & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ pluginManagement {
mavenCentral()
gradlePluginPortal()
maven { url 'https://jitpack.io' }

}
}
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
mavenCentral()
maven { url 'https://jitpack.io' }
}
}
rootProject.name = "UtilsLibrary"
Expand Down
5 changes: 1 addition & 4 deletions simple_app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ android {
versionCode 1
versionName "1.0"

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}

buildTypes {
Expand All @@ -31,6 +30,7 @@ android {
kotlinOptions {
jvmTarget = '17'
}
buildToolsVersion '34.0.0'
}

dependencies {
Expand All @@ -39,9 +39,6 @@ dependencies {
implementation 'androidx.appcompat:appcompat:1.6.1'
implementation 'com.google.android.material:material:1.9.0'
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'

implementation project(':BtechUtils')
}

0 comments on commit 15c873f

Please sign in to comment.