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
Showing
9 changed files
with
77 additions
and
95 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,105 +1,19 @@ | ||
buildscript { | ||
repositories { | ||
google() | ||
jcenter() | ||
mavenCentral() | ||
} | ||
|
||
dependencies { | ||
classpath "com.android.tools.build:gradle:2.2.3" | ||
classpath "com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.3" | ||
classpath "com.github.dcendents:android-maven-gradle-plugin:1.5" | ||
classpath 'com.android.tools.build:gradle:3.1.3' | ||
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.2' | ||
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1' | ||
} | ||
} | ||
|
||
apply plugin: "com.android.library" | ||
apply plugin: "com.jfrog.bintray" | ||
apply plugin: "com.github.dcendents.android-maven" | ||
|
||
group = "com.crossbowffs.remotepreferences" | ||
version = "0.6" | ||
|
||
android { | ||
compileSdkVersion 25 | ||
buildToolsVersion "25.0.2" | ||
|
||
defaultConfig { | ||
minSdkVersion 1 | ||
targetSdkVersion 25 | ||
versionCode 6 | ||
versionName "0.6" | ||
} | ||
|
||
sourceSets { | ||
main { | ||
manifest.srcFile "AndroidManifest.xml" | ||
java.srcDir "src" | ||
} | ||
} | ||
} | ||
|
||
task sourcesJar(type: Jar) { | ||
classifier = "sources" | ||
from android.sourceSets.main.java.srcDirs | ||
} | ||
|
||
task javadoc(type: Javadoc) { | ||
source = android.sourceSets.main.java.srcDirs | ||
classpath += project.files(android.getBootClasspath().join(File.pathSeparator)) | ||
} | ||
|
||
task javadocJar(type: Jar, dependsOn: javadoc) { | ||
classifier = "javadoc" | ||
from javadoc.destinationDir | ||
} | ||
|
||
artifacts { | ||
archives javadocJar | ||
archives sourcesJar | ||
} | ||
|
||
bintray { | ||
user = System.getenv("BINTRAY_USER") | ||
key = System.getenv("BINTRAY_API_KEY") | ||
pkg { | ||
repo = "maven" | ||
name = "remotepreferences" | ||
licenses = ["MIT"] | ||
vcsUrl = "https://github.com/apsun/RemotePreferences.git" | ||
configurations = ["archives"] | ||
} | ||
} | ||
|
||
install { | ||
repositories.mavenInstaller { | ||
pom.project { | ||
name "remotepreferences" | ||
description "A drop-in solution for inter-app access to SharedPreferences on Android." | ||
url "https://github.com/apsun/RemotePreferences" | ||
inceptionYear "2016" | ||
|
||
packaging "aar" | ||
groupId "com.crossbowffs.remotepreferences" | ||
artifactId "remotepreferences" | ||
|
||
licenses { | ||
license { | ||
name "MIT" | ||
url "https://opensource.org/licenses/MIT" | ||
} | ||
} | ||
|
||
scm { | ||
connection "https://github.com/apsun/RemotePreferences.git" | ||
url "https://github.com/apsun/RemotePreferences" | ||
} | ||
|
||
developers { | ||
developer { | ||
id "crossbowffs" | ||
name "Andrew Sun" | ||
email "0xandrewsun@gmail.com" | ||
} | ||
} | ||
} | ||
allprojects { | ||
repositories { | ||
google() | ||
jcenter() | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,67 @@ | ||
apply plugin: 'com.android.library' | ||
apply plugin: 'com.jfrog.bintray' | ||
apply plugin: 'com.github.dcendents.android-maven' | ||
|
||
ext { | ||
packageName = 'com.crossbowffs.remotepreferences' | ||
libraryName = 'remotepreferences' | ||
versionCode = 6 | ||
versionName = '0.6' | ||
licenses = ['MIT'] | ||
vcsUrl = 'https://github.com/apsun/RemotePreferences.git' | ||
} | ||
|
||
group = project.packageName | ||
version = project.versionName | ||
|
||
android { | ||
compileSdkVersion 27 | ||
|
||
defaultConfig { | ||
minSdkVersion 1 | ||
targetSdkVersion 27 | ||
versionCode project.versionCode | ||
versionName project.versionName | ||
} | ||
} | ||
|
||
task sourcesJar(type: Jar) { | ||
classifier = 'sources' | ||
from android.sourceSets.main.java.srcDirs | ||
} | ||
|
||
task javadoc(type: Javadoc) { | ||
source = android.sourceSets.main.java.srcDirs | ||
classpath += project.files(android.getBootClasspath().join(File.pathSeparator)) | ||
} | ||
|
||
task javadocJar(type: Jar, dependsOn: javadoc) { | ||
classifier = 'javadoc' | ||
from javadoc.destinationDir | ||
} | ||
|
||
artifacts { | ||
archives javadocJar | ||
archives sourcesJar | ||
} | ||
|
||
bintray { | ||
user = System.getenv('BINTRAY_USER') | ||
key = System.getenv('BINTRAY_API_KEY') | ||
configurations = ['archives'] | ||
pkg { | ||
repo = 'maven' | ||
name = project.libraryName | ||
licenses = project.licenses | ||
vcsUrl = project.vcsUrl | ||
} | ||
} | ||
|
||
install { | ||
repositories.mavenInstaller { | ||
pom.project { | ||
packaging 'aar' | ||
artifactId project.libraryName | ||
} | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
include ':library' |