-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update Gradle to 6.7.1 because it supports in memory signing
- Loading branch information
Showing
8 changed files
with
121 additions
and
67 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
/* | ||
* Copyright 2016-2020 JetBrains s.r.o. | ||
* Use of this source code is governed by the Apache 2.0 License that can be found in the LICENSE.txt file. | ||
*/ | ||
|
||
package kotlinx.validation.build | ||
|
||
import org.gradle.api.* | ||
import org.gradle.api.publish.* | ||
import org.gradle.api.publish.maven.* | ||
import org.gradle.plugins.signing.* | ||
import java.net.* | ||
|
||
fun PublishingExtension.bintrayRepositoryPublishing(project: Project, user: String, repo: String, name: String) { | ||
repositories { | ||
maven { | ||
url = URI("https://api.bintray.com/maven/$user/$repo/$name/;publish=0") | ||
credentials { | ||
username = project.findProperty("bintrayUser") as? String ?: System.getenv("BINTRAY_USER") | ||
password = project.findProperty("bintrayApiKey") as? String ?: System.getenv("BINTRAY_API_KEY") | ||
} | ||
} | ||
} | ||
} | ||
|
||
fun PublishingExtension.mavenRepositoryPublishing() { | ||
repositories { | ||
maven { | ||
url = URI("https://oss.sonatype.org/service/local/staging/deploy/maven2/") | ||
credentials { | ||
username = System.getenv("libs.sonatype.user") | ||
password = System.getenv("libs.sonatype.password") | ||
} | ||
} | ||
} | ||
} | ||
|
||
fun Project.signPublicationIfKeyPresent(publication: MavenPublication) { | ||
val keyId = System.getenv("libs.sign.key.id") | ||
val signingKey = System.getenv("libs.sign.key.private") | ||
val signingKeyPassphrase = System.getenv("libs.sign.passphrase") | ||
if (!signingKey.isNullOrBlank()) { | ||
extensions.configure<SigningExtension>("signing") { | ||
useInMemoryPgpKeys(keyId, signingKey, signingKeyPassphrase) | ||
sign(publication) | ||
} | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
Binary file not shown.
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,5 +1,5 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-5.2.1-all.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7.1-all.zip | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
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