Skip to content
Snippets Groups Projects
Commit 586b9a7c authored by Taras's avatar Taras
Browse files

Change publisher

parent 0862b6b6
No related branches found
No related tags found
No related merge requests found
...@@ -7,9 +7,8 @@ def versionName = "1.5.30.6" ...@@ -7,9 +7,8 @@ def versionName = "1.5.30.6"
def artifactPath = "$buildDir/outputs/aar/$artifactIdString-release.aar" def artifactPath = "$buildDir/outputs/aar/$artifactIdString-release.aar"
def publicationName = "release" def publicationName = "release"
def projectId = "16" def projectId = "16"
def token = "e3yxa-_Duy7xLabSa7_z"
task sourceJar(type: Jar) { tasks.register('sourceJar', Jar) {
from android.sourceSets.main.java.srcDirs from android.sourceSets.main.java.srcDirs
classifier = "sources" classifier = "sources"
} }
...@@ -41,12 +40,16 @@ publishing { ...@@ -41,12 +40,16 @@ publishing {
} }
} }
repositories { repositories {
Properties properties = new Properties()
if (rootProject.file("local.properties").exists()) {
properties.load(rootProject.file("local.properties").newDataInputStream())
}
maven { maven {
url "https://gitlab.futo.org/api/v4/projects/$projectId/packages/maven" url "https://gitlab.futo.org/api/v4/projects/$projectId/packages/maven"
name "GitLab" name "GitLab"
credentials(HttpHeaderCredentials) { credentials(HttpHeaderCredentials) {
name = "Private-Token" name = "Private-Token"
value = token value = properties.getProperty("PUBLISH_TOKEN")
} }
authentication { authentication {
header(HttpHeaderAuthentication) header(HttpHeaderAuthentication)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment