-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2583b1c
commit 4e2d7c7
Showing
2 changed files
with
21 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
apply plugin: 'com.android.library' | ||
apply plugin: 'kotlin-android' | ||
apply plugin: 'maven-publish' | ||
|
||
buildscript { | ||
repositories { | ||
|
@@ -9,29 +10,6 @@ buildscript { | |
} | ||
} | ||
|
||
ext { | ||
bintrayRepo = 'livedatabus' | ||
bintrayName = 'livedatabus' | ||
|
||
publishedGroupId = 'ductranit.me.livedatabus' | ||
libraryName = 'livedatabus' | ||
artifact = 'livedatabus' | ||
|
||
libraryDescription = 'Make an Event Bus with LiveData' | ||
|
||
siteUrl = 'https://github.com/ductranit/livedatabus' | ||
gitUrl = 'https://github.com/ductranit/livedatabus.git' | ||
|
||
libraryVersion = '1.0.0' | ||
|
||
developerId = 'ductranit' | ||
developerName = 'ductran' | ||
developerEmail = '[email protected]' | ||
|
||
licenseName = 'The Apache Software License, Version 2.0' | ||
licenseUrl = 'http://www.apache.org/licenses/LICENSE-2.0.txt' | ||
allLicenses = ["Apache-2.0"] | ||
} | ||
|
||
android { | ||
defaultConfig { | ||
|
@@ -40,6 +18,10 @@ android { | |
compileSdk 34 | ||
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" | ||
|
||
aarMetadata { | ||
minCompileSdk = 29 | ||
} | ||
|
||
} | ||
|
||
buildTypes { | ||
|
@@ -57,9 +39,6 @@ android { | |
|
||
} | ||
|
||
//apply plugin: 'com.github.dcendents.android-maven' | ||
//apply plugin: 'com.jfrog.bintray' | ||
|
||
dependencies { | ||
implementation fileTree(dir: 'libs', include: ['*.jar']) | ||
|
||
|
@@ -73,7 +52,16 @@ repositories { | |
mavenCentral() | ||
} | ||
|
||
//if (project.rootProject.file('local.properties').exists()) { | ||
// apply from: 'https://raw.githubusercontent.com/nuuneoi/JCenter/master/installv1.gradle' | ||
// apply from: 'https://raw.githubusercontent.com/nuuneoi/JCenter/master/bintrayv1.gradle' | ||
//} | ||
publishing { | ||
publications { | ||
release(MavenPublication) { | ||
groupId = 'ductranit' | ||
artifactId = 'livedatabus' | ||
version = '1.1.0' | ||
description 'Make an Event Bus with LiveData' | ||
afterEvaluate { | ||
from components.release | ||
} | ||
} | ||
} | ||
} |