From c91b00f0927447ebfc7f27b94de4918c8e6eb9bc Mon Sep 17 00:00:00 2001 From: long76 Date: Sat, 17 Jul 2021 16:32:40 +0300 Subject: [PATCH] fix ci --- gradle.properties | 4 +++- library/build.gradle | 21 +++++++++++++-------- 2 files changed, 16 insertions(+), 9 deletions(-) diff --git a/gradle.properties b/gradle.properties index 5003313..ba2b72f 100644 --- a/gradle.properties +++ b/gradle.properties @@ -8,4 +8,6 @@ android.useAndroidX=true # Automatically convert third-party libraries to use AndroidX android.enableJetifier=true -signing.keyId=1202B12F \ No newline at end of file +signing.keyId=1202B12F +ossrhUsername='' +ossrhPassword='' \ No newline at end of file diff --git a/library/build.gradle b/library/build.gradle index 1223828..32328fd 100644 --- a/library/build.gradle +++ b/library/build.gradle @@ -56,14 +56,6 @@ task javadocJar(type: Jar, dependsOn: 'releaseJavadoc') { from "$buildDir/docs/javadoc/" } -artifacts { - archives javadocJar, sourcesJar -} - -signing { - sign configurations.archives -} - publishing { publications { mvnCentral(MavenPublication) { @@ -113,4 +105,17 @@ publishing { } } } + repositories { + maven { + url = 'https://oss.sonatype.org/service/local/staging/deploy/maven2/' + credentials { + username = ossrhUsername + password = ossrhPassword + } + } + } +} + +signing { + sign publishing.publications.mvnCentral } \ No newline at end of file