Skip to content

Commit

Permalink
Set project group and version. (#120)
Browse files Browse the repository at this point in the history
This is used by the Gradle Artifactory plugin when populating the
build info when publishing to OJO, which is in turn used to promote
OJO artifacts to Bintray proper.
  • Loading branch information
jpd236 committed Dec 1, 2017
1 parent 536c1b7 commit ffe9281
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 2 additions & 4 deletions bintray.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ apply plugin: 'maven-publish'

def bintrayInfoFilePath = "$buildDir/outputs/bintray-descriptor.bintray-info.json"

project.ext.version = '1.1.0-SNAPSHOT'

task sourcesJar(type: Jar) {
classifier = 'sources'
from android.sourceSets.main.java.srcDirs
Expand All @@ -39,7 +37,7 @@ task bintrayInfoFile {
doLast {
println 'Creating bintray-info.json'
String fileContent = new File("$rootDir/bintray-info-template.json").getText('UTF-8')
fileContent = fileContent.replace('$VERSION$', project.ext.version)
fileContent = fileContent.replace('$VERSION$', project.version)
((new File(bintrayInfoFilePath))).write(fileContent)
}
}
Expand All @@ -54,7 +52,7 @@ publishing {
library(MavenPublication) {
groupId 'com.android.volley'
artifactId 'volley'
version project.ext.version
version project.version
pom {
packaging 'aar'
}
Expand Down
3 changes: 3 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ repositories {
jcenter()
}

group = 'com.android.volley'
version = '1.1.0-SNAPSHOT'

android {
compileSdkVersion 25
buildToolsVersion = '25.0.2'
Expand Down

0 comments on commit ffe9281

Please sign in to comment.