Skip to content

Commit

Permalink
Update gradle files
Browse files Browse the repository at this point in the history
  • Loading branch information
Menno Vogel committed Aug 16, 2021
1 parent ed47aab commit be8769c
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 10 deletions.
7 changes: 7 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@ buildscript {
}
}

allprojects {
repositories {
google()
mavenCentral()
}
}

task clean(type: Delete) {
delete rootProject.buildDir
}
19 changes: 16 additions & 3 deletions library/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
plugins {
id 'com.android.library'
id 'kotlin-android'
id 'maven-publish'
}

android {
compileSdk 30
Expand All @@ -16,7 +19,7 @@ android {

buildTypes {
release {
minifyEnabled true
minifyEnabled false
}
}
compileOptions {
Expand All @@ -39,4 +42,14 @@ dependencies {
implementation "androidx.compose.material:material:$compose_version"

testImplementation 'junit:junit:4.13.2'
}

afterEvaluate {
publishing {
publications {
release(MavenPublication) {
from components.release
}
}
}
}
7 changes: 0 additions & 7 deletions settings.gradle
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
mavenCentral()
}
}
rootProject.name = "Morph"
include ':app'
include ':library'

0 comments on commit be8769c

Please sign in to comment.