File tree Expand file tree Collapse file tree 3 files changed +39
-3
lines changed
Expand file tree Collapse file tree 3 files changed +39
-3
lines changed Original file line number Diff line number Diff line change @@ -13,4 +13,7 @@ allprojects {
1313 repositories {
1414 jcenter()
1515 }
16+
17+ group = ' eu.inloop'
18+ version = VERSION_NAME
1619}
Original file line number Diff line number Diff line change 1515# When configured, Gradle will run in incubating parallel mode.
1616# This option should only be used with decoupled projects. More details, visit
1717# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
18- # org.gradle.parallel=true
18+ # org.gradle.parallel=true
19+
20+ VERSION_NAME =0.1
Original file line number Diff line number Diff line change 11apply plugin : ' com.android.library'
2+ apply plugin : ' maven'
23
34android {
45 compileSdkVersion 20
5- buildToolsVersion " 20.0.0 "
6+ buildToolsVersion ' 21.1.1 '
67
78 defaultConfig {
89 minSdkVersion 15
910 targetSdkVersion 20
1011 versionCode 1
11- versionName " 1.0 "
12+ versionName VERSION_NAME
1213 }
1314 compileOptions {
1415 sourceCompatibility JavaVersion . VERSION_1_7
@@ -27,3 +28,33 @@ dependencies {
2728 compile ' com.android.support:support-v4:20.0.0'
2829 compile ' com.android.support:support-annotations:20.0.0'
2930}
31+
32+
33+ task androidJavadocs (type : Javadoc ) {
34+ source = android. sourceSets. main. java. srcDirs
35+ classpath + = project. files(android. getBootClasspath(). join(File . pathSeparator))
36+ }
37+
38+ task androidJavadocsJar (type : Jar , dependsOn : androidJavadocs) {
39+ classifier = ' javadoc'
40+ from androidJavadocs. destinationDir
41+ }
42+
43+ task androidSourcesJar (type : Jar ) {
44+ classifier = ' sources'
45+ from android. sourceSets. main. java. srcDirs
46+ }
47+
48+ artifacts {
49+ archives androidSourcesJar
50+ archives androidJavadocsJar
51+ }
52+
53+ uploadArchives {
54+ repositories. mavenDeployer {
55+ pom. groupId = ' eu.inloop'
56+ pom. artifactId = ' androidviewmodel'
57+ pom. version = VERSION_NAME
58+ repository(url : " file://${ System.env.HOME} /.m2/repository" )
59+ }
60+ }
You can’t perform that action at this time.
0 commit comments