-
-
Save frlgrd/1754394627669225f39627f7271f0804 to your computer and use it in GitHub Desktop.
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
apply plugin: 'com.github.dcendents.android-maven' | |
apply plugin: 'com.jfrog.bintray' | |
def artifact = new Properties() | |
artifact.load(new FileInputStream("animated-edit-text/deploy.properties")) | |
version = artifact.version | |
group = artifact.groupId | |
install { | |
repositories.mavenInstaller { | |
pom.project { | |
packaging 'aar' | |
groupId artifact.groupId | |
artifactId artifact.id | |
version artifact.version | |
name artifact.id | |
url artifact.siteUrl | |
inceptionYear '2018' | |
licenses { | |
license { | |
name 'MIT' | |
url 'https://opensource.org/licenses/MIT' | |
} | |
} | |
scm { | |
connection artifact.gitUrl | |
developerConnection artifact.gitUrl | |
url artifact.siteUrl | |
} | |
} | |
} | |
} | |
Properties properties = new Properties() | |
properties.load(new FileInputStream("local.properties")) | |
bintray { | |
user = properties.getProperty("bintray.user") | |
key = properties.getProperty("bintray.apikey") | |
configurations = ['archives'] | |
pkg { | |
repo = "maven" | |
name = artifact.id | |
websiteUrl = artifact.siteUrl | |
vcsUrl = artifact.gitUrl | |
licenses = ['MIT'] | |
publish = true | |
version { | |
name = artifact.version | |
} | |
} | |
} | |
task sourcesJar(type: Jar) { | |
from android.sourceSets.main.java.srcDirs | |
classifier = 'sources' | |
} | |
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 | |
// options.encoding = 'UTF-8' | |
} | |
artifacts { | |
archives javadocJar | |
archives sourcesJar | |
} | |
dependencies { | |
implementation fileTree(dir: 'libs', include: ['*.jar']) | |
implementation 'com.android.support:appcompat-v7:27.0.2' | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment