Skip to content

Commit

Permalink
pre-publishing configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
konmik committed Oct 11, 2015
1 parent dc8d751 commit 58d37eb
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 6 deletions.
4 changes: 4 additions & 0 deletions example/build.gradle
Expand Up @@ -19,6 +19,10 @@ android {
}
}

repositories {
mavenLocal()
}

dependencies {
compile project(':satellite')
compile 'com.android.support:appcompat-v7:22.2.1'
Expand Down
4 changes: 2 additions & 2 deletions gradle.properties
Expand Up @@ -13,5 +13,5 @@ POM_LICENCE_DIST=repo
POM_DEVELOPER_ID=sirstripy
POM_DEVELOPER_NAME=Konstantin Mikheev

RELEASE_REPOSITORY_URL=file://C:/Users/konmik/.m2/repository
SNAPSHOT_REPOSITORY_URL=file://C:/Users/konmik/.m2/repository
#RELEASE_REPOSITORY_URL=file://C:/Users/konmik/.m2/repository
#SNAPSHOT_REPOSITORY_URL=file://C:/Users/konmik/.m2/repository
5 changes: 3 additions & 2 deletions gradle/gradle-mvn-push.gradle
Expand Up @@ -93,8 +93,9 @@ afterEvaluate { project ->
}

task androidJavadocs(type: Javadoc) {
failOnError false
source = android.sourceSets.main.java.srcDirs
classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
classpath += project.files(android.getBootClasspath()) + project.files(configurations.compileJavadoc)
}

task androidJavadocsJar(type: Jar, dependsOn: androidJavadocs) {
Expand All @@ -111,4 +112,4 @@ afterEvaluate { project ->
archives androidSourcesJar
archives androidJavadocsJar
}
}
}
12 changes: 10 additions & 2 deletions satellite/build.gradle
@@ -1,7 +1,7 @@
apply plugin: 'com.android.library'

android {
compileSdkVersion 22
compileSdkVersion 23
buildToolsVersion "23"

defaultConfig {
Expand All @@ -12,8 +12,16 @@ android {
}
}

repositories {
mavenLocal()
}

configurations {
compileJavadoc
}

dependencies {
compile project(':valuemap')
compile 'info.android15.satellite:valuemap:0.4.0-SNAPSHOT'
compile "com.android.support:support-annotations:23.0.0"
compile 'io.reactivex:rxjava:1.0.13'
testCompile "org.robolectric:robolectric:3.0"
Expand Down
4 changes: 4 additions & 0 deletions valuemap/build.gradle
Expand Up @@ -12,6 +12,10 @@ android {
}
}

configurations {
compileJavadoc
}

dependencies {
testCompile "org.robolectric:robolectric:3.0"
testCompile 'junit:junit:4.12'
Expand Down
1 change: 1 addition & 0 deletions valuemap/gradle.properties
@@ -1,3 +1,4 @@
POM_NAME=ValueMap
POM_ARTIFACT_ID=valuemap
POM_PACKAGING=jar
GROUP=info.android15.valuemap

0 comments on commit 58d37eb

Please sign in to comment.