Skip to content

Commit

Permalink
Fix release config
Browse files Browse the repository at this point in the history
Summary: As part of our release process, we need to use these credentials. To support recent changes, we need to use these fields instead.

Reviewed By: KylinChang

Differential Revision: D66846901

fbshipit-source-id: 795d8d9e64503729ed68a7f6a100d316729c28d3
  • Loading branch information
maxalbrightmeta authored and facebook-github-bot committed Dec 5, 2024
1 parent 7ecc186 commit 4be7a0a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions maven.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ apply plugin: 'signing'
apply plugin: 'org.jetbrains.dokka'

def isSnapshot = version.endsWith('-SNAPSHOT')
def ossrhUsername = hasProperty('ossrhUsername') ? ossrhUsername : ""
def ossrhPassword = hasProperty('ossrhPassword') ? ossrhPassword : ""
def ossrhUsername = hasProperty('ossrhTokenUsername') ? ossrhTokenUsername : ""

This comment has been minimized.

Copy link
@Bongrapv

Bongrapv Dec 7, 2024

maven.gradle

def ossrhPassword = hasProperty('ossrhToken') ? ossrhToken : ""

task setVersion {
// The version will be derived from source
project.version = null
def sdkVersionFile = file("${rootDir}/facebook-core/src/main/java/com/facebook/FacebookSdkVersion.kt")
sdkVersionFile.eachLine{
sdkVersionFile.eachLine {
def matcher = (it =~ /(?:.*BUILD = \")(.*)(?:\".*)/)
if (matcher.matches()) {
project.version = matcher[0][1]
Expand Down Expand Up @@ -106,8 +106,8 @@ task javadocJar(type: Jar, dependsOn: dokkaJavadoc) {
}

artifacts {
archives androidSourcesJar
archives javadocJar
archives androidSourcesJar
archives javadocJar
}

afterEvaluate {
Expand Down

0 comments on commit 4be7a0a

Please sign in to comment.