Created
May 26, 2018 07:36
-
-
Save anitaa1990/a7aaf3d449fea2c7b83c0ccf6324bde3 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
apply plugin: 'com.novoda.bintray-release' | |
apply plugin: 'com.android.library' | |
// Step 1: Add the below plugin | |
apply plugin: 'maven-publish' | |
publish { | |
def groupProjectID = 'com.an.optimize' | |
def artifactProjectID = 'optimize' | |
def publishVersionID = '0.1.0' | |
userOrg = 'murthyanitaa' | |
repoName = 'Optimize' | |
groupId = groupProjectID | |
artifactId = artifactProjectID | |
publishVersion = publishVersionID | |
desc = 'Android library for displaying data based on JSON configuration fetched from server. With this library, you can kiss goodbye to string.xml, dimen.xml, arrays.xml. Keep all your string/integer/array config in one file. The library will automatically fetch the data from the url you provide.' | |
website = 'https://github.com/anitaa1990/Optimize' | |
// Step 2: Add the custom publication details like below | |
publishing { | |
publications { | |
MyPub(MavenPublication) { | |
groupId groupProjectID | |
artifactId artifactProjectID | |
version publishVersionID | |
//don't forget to add bundleRelease | |
artifact bundleRelease | |
} | |
} | |
} | |
//Step 3: don't forget to add your custom publication | |
publications = ['MyPub'] | |
} | |
android { | |
compileSdkVersion 27 | |
defaultConfig { | |
minSdkVersion 14 | |
targetSdkVersion 27 | |
versionCode 1 | |
versionName "1.0" | |
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" | |
} | |
buildTypes { | |
release { | |
minifyEnabled false | |
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' | |
} | |
} | |
} | |
dependencies { | |
implementation fileTree(dir: 'libs', include: ['*.jar']) | |
implementation 'com.android.support:appcompat-v7:27.1.1' | |
testImplementation 'junit:junit:4.12' | |
androidTestImplementation 'com.android.support.test:runner:1.0.2' | |
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2' | |
implementation "android.arch.work:work-runtime:1.0.0-alpha01" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment