Skip to content

Commit b199da8

Browse files
author
Daniel Novak
committed
Update gradle tools
1 parent bd97e3d commit b199da8

File tree

3 files changed

+39
-3
lines changed

3 files changed

+39
-3
lines changed

build.gradle

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,7 @@ allprojects {
1313
repositories {
1414
jcenter()
1515
}
16+
17+
group = 'eu.inloop'
18+
version = VERSION_NAME
1619
}

gradle.properties

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,6 @@
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

library/build.gradle

Lines changed: 33 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
apply plugin: 'com.android.library'
2+
apply plugin: 'maven'
23

34
android {
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+
}

0 commit comments

Comments
 (0)