-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add publishing to Maven Central on release (#7)
- Loading branch information
Showing
3 changed files
with
51 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,10 @@ | ||
import com.vanniktech.maven.publish.AndroidSingleVariantLibrary | ||
import com.vanniktech.maven.publish.SonatypeHost | ||
|
||
plugins { | ||
id 'com.android.library' | ||
id 'kotlin-android' | ||
id 'com.vanniktech.maven.publish' | ||
} | ||
|
||
android { | ||
|
@@ -28,4 +32,39 @@ android { | |
kotlinOptions { | ||
jvmTarget = '1.8' | ||
} | ||
} | ||
|
||
mavenPublishing { | ||
configure(new AndroidSingleVariantLibrary("release", true, true)) | ||
|
||
publishToMavenCentral(SonatypeHost.CENTRAL_PORTAL) | ||
signAllPublications() | ||
|
||
coordinates("org.openhomefoundation.improv-wifi", "sdk-android", "${System.getenv('IMPROV_LIB_RELEASE')}") | ||
|
||
pom { | ||
name = "Android SDK for Improv Wi-Fi" | ||
description = "Easily detect and connect Improv Wi-Fi devices to the network on Android using BLE" | ||
inceptionYear = "2021" | ||
url = "https://github.com/improv-wifi/sdk-android" | ||
licenses { | ||
license { | ||
name = "Apache License, Version 2.0" | ||
url = "http://www.apache.org/licenses/LICENSE-2.0.txt" | ||
distribution = "http://www.apache.org/licenses/LICENSE-2.0.txt" | ||
} | ||
} | ||
developers { | ||
developer { | ||
id = "improv-wifi" | ||
name = "Improv Wi-Fi" | ||
url = "https://github.com/improv-wifi" | ||
} | ||
} | ||
scm { | ||
url = "https://github.com/improv-wifi/sdk-android" | ||
connection = "scm:git:git://github.com/improv-wifi/sdk-android.git" | ||
developerConnection = "scm:git:ssh://[email protected]/improv-wifi/sdk-android.git" | ||
} | ||
} | ||
} |