Skip to content

Commit

Permalink
Update to 2.0.1
Browse files Browse the repository at this point in the history
Allow packages to be published to GitHub.  Remove unneeded dependencies.
Add Javadoc output directory.
  • Loading branch information
stauffer-garmin committed May 25, 2021
1 parent b7dd11c commit 03d57a1
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 9 deletions.
3 changes: 3 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

45 changes: 36 additions & 9 deletions activecaptaincommunitysdk/build.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
apply plugin: 'com.android.library'
plugins {
id 'com.android.library'
id 'maven-publish'
}

android {
compileSdkVersion 30
Expand All @@ -8,9 +11,7 @@ android {
minSdkVersion 23
targetSdkVersion 30
versionCode 1
versionName "2.0.0"

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
versionName "2.0.1"
}

buildTypes {
Expand Down Expand Up @@ -40,10 +41,36 @@ android {
}

dependencies {
}

afterEvaluate {
publishing {
repositories {
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/garmin/ActiveCaptainCommunitySDK-android")
credentials {
username = project.findProperty("gpr.user") ?: System.getenv("GITHUB_USERNAME")
password = project.findProperty("gpr.key") ?: System.getenv("GITHUB_TOKEN")
}
}
}
publications {
release(MavenPublication) {
from components.release

implementation 'androidx.appcompat:appcompat:1.2.0'
implementation 'com.google.android.material:material:1.3.0'
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.2'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
groupId = 'com.garmin.marine.activecaptaincommunitysdk'
artifactId = 'activecaptaincommunitysdk-release'
version = android.defaultConfig.versionName
}

debug(MavenPublication) {
from components.debug

groupId = 'com.garmin.marine.activecaptaincommunitysdk'
artifactId = 'activecaptaincommunitysdk-debug'
version = android.defaultConfig.versionName
}
}
}
}

0 comments on commit 03d57a1

Please sign in to comment.