Skip to content

Commit

Permalink
Updating cmapi package names (#9)
Browse files Browse the repository at this point in the history
* updating publishing and group name

* removing extra spaces

* adding .pom and sources jar as well as javadoc jars uploading to bintray

* removing override property

* fixing spacing issues
  • Loading branch information
JACochran authored Nov 21, 2017
1 parent 591bb09 commit 8c7d7cb
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 5 deletions.
3 changes: 3 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ buildscript {

//Shadow jar Dependency
classpath 'com.github.jengelman.gradle.plugins:shadow:2.0.1'

//Publishing maven artifacts to Bintray Dependency
classpath 'com.netflix.nebula:nebula-publishing-plugin:5.1.1'
}
}

Expand Down
27 changes: 23 additions & 4 deletions gradle/deploy.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
apply plugin: 'com.github.dcendents.android-maven'
apply plugin: 'com.jfrog.bintray'
apply plugin: 'maven-publish'
apply plugin: 'nebula.maven-base-publish'
apply plugin: 'nebula.maven-nebula-publish'
apply plugin: 'nebula.source-jar'
apply plugin: 'nebula.javadoc-jar'

def artifact = new Properties()
artifact.load(new FileInputStream("$project.rootDir${File.separator}gradle${File.separator}deploy.settings"))
Expand All @@ -14,6 +19,7 @@ install {
groupId artifact.groupId
artifactId artifact.id
version release_version
description artifact.description
name artifact.id // pom.project.name must be same as bintray.pkg.name

licenses {
Expand Down Expand Up @@ -53,20 +59,33 @@ allprojects{
key = bintrayApiKey
description = artifact.description
configurations = ['archives']
publications = ['nebula']
pkg {
userOrg = "missioncommand"
repo = "maven"
name = artifact.id
desc = artifact.description
websiteUrl = artifact.siteUrl
githubRepo = 'missioncommand/cmapi-kotlin'

licenses = ['Apache-2.0']

vcsUrl = artifact.gitUrl
websiteUrl = artifact.siteUrl
attributes = [:]

githubReleaseNotesFile = 'README.md'
userOrg="missioncommand"
licenses = ['Apache-2.0']
githubRepo = 'missioncommand/cmapi-kotlin'

publish = true
version {
name = artifact.version
vcsTag = "v${project.version}"
attributes = [:]
}
}
}
}

publishing.publications {
nebula(MavenPublication) {
}
}
2 changes: 1 addition & 1 deletion gradle/deploy.settings
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
gitUrl=git@github.com:missioncommand/cmapi-kotlin.git
groupId=cmapi
groupId=common-map-api.cmapi
id=cmapi-kotlin
siteUrl=https://github.com/missioncommand/cmapi-kotlin
description=A port of the Common Map API for the Kotlin language, supporting both Java and Javascript in a single baseline.

0 comments on commit 8c7d7cb

Please sign in to comment.