-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This PR converts all existing plumbing to upload to Maven Central instead of Bintray. Key changes are: 1. Rename all Bintray/JCenter references to Sonatype/Maven Central 2. Change maven URL 3. Add artifact signing 4. Update pom.xml so it contains all required attributes for Maven Central (see here https://central.sonatype.org/publish/requirements/#sufficient-metadata) 5. Enable publishing of snapshot builds Relates to #120 Co-authored-by: Gary Peck <[email protected]>
- Loading branch information
1 parent
02e66ac
commit 8382344
Showing
16 changed files
with
143 additions
and
117 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
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 |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import org.gradle.api.publish.maven.MavenPublication | ||
|
||
fun MavenPublication.configurePbandkPom(pomDescription: String) { | ||
val pomName = artifactId | ||
pom { | ||
name.set(pomName) | ||
description.set(pomDescription) | ||
url.set("https://github.com/streem/pbandk") | ||
|
||
licenses { | ||
license { | ||
name.set("MIT License") | ||
url.set("https://opensource.org/licenses/MIT") | ||
} | ||
} | ||
|
||
organization { | ||
name.set("Streem, LLC") | ||
url.set("https://github.com/streem") | ||
} | ||
|
||
developers { | ||
developer { | ||
id.set("streem") | ||
name.set("Streem, LLC") | ||
url.set("https://github.com/streem") | ||
} | ||
} | ||
|
||
scm { | ||
connection.set("scm:git:[email protected]:streem/pbandk.git") | ||
developerConnection.set("scm:git:[email protected]:streem/pbandk.git") | ||
url.set("[email protected]:streem/pbandk.git") | ||
} | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import com.google.common.base.CaseFormat | ||
import org.gradle.api.provider.Provider | ||
import org.gradle.api.provider.ProviderFactory | ||
|
||
/** | ||
* Creates a [Provider] whose value is fetched from the Gradle property named [propertyName], or if there is no such | ||
* Gradle property, then from the environment variable whose name is the ALL_CAPS version of [propertyName]. For | ||
* example, given a [propertyName] of "fooBar", this function will look for an environment variable named "FOO_BAR". | ||
*/ | ||
@Suppress("UnstableApiUsage") | ||
fun ProviderFactory.gradlePropertyOrEnvironmentVariable(propertyName: String): Provider<String> { | ||
val envVariableName = CaseFormat.LOWER_CAMEL.to(CaseFormat.UPPER_UNDERSCORE, propertyName) | ||
return gradleProperty(propertyName) | ||
.forUseAtConfigurationTime() | ||
.orElse(environmentVariable(envVariableName).forUseAtConfigurationTime()) | ||
} |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -10,6 +10,6 @@ subprojects { | |
if (System.getenv("CI") == "true") { | ||
mavenLocal() | ||
} | ||
jcenter() | ||
mavenCentral() | ||
} | ||
} |
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
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
Oops, something went wrong.