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

Fix auth publisher script

parent 5f9df7a5
No related branches found
No related tags found
No related merge requests found
......@@ -92,35 +92,35 @@ kapt {
correctErrorTypes = true
}
//def groupIdString = "org.futo.circles"
//def artifactIdString = "auth"
//
//afterEvaluate {
// Properties properties = new Properties()
// if (rootProject.file("local.properties").exists()) {
// properties.load(rootProject.file("local.properties").newDataInputStream())
// }
// publishing {
// publications {
// release(MavenPublication) {
// from components.release
// groupId groupIdString
// artifactId artifactIdString
// version rootProject.ext.modules_version
// }
// }
// repositories {
// maven {
// url "https://gitlab.futo.org/api/v4/projects/$rootProject.ext.modules_gitlab_projectId/packages/maven"
// name "GitLab"
// credentials(HttpHeaderCredentials) {
// name = "Private-Token"
// value = properties.getProperty("PUBLISH_TOKEN")
// }
// authentication {
// header(HttpHeaderAuthentication)
// }
// }
// }
// }
//}
\ No newline at end of file
def groupIdString = "org.futo.circles"
def artifactIdString = "auth-gplay"
afterEvaluate {
Properties properties = new Properties()
if (rootProject.file("local.properties").exists()) {
properties.load(rootProject.file("local.properties").newDataInputStream())
}
publishing {
publications {
release(MavenPublication) {
from components.gplayRelease
groupId groupIdString
artifactId artifactIdString
version rootProject.ext.modules_version
}
}
repositories {
maven {
url "https://gitlab.futo.org/api/v4/projects/$rootProject.ext.modules_gitlab_projectId/packages/maven"
name "GitLab"
credentials(HttpHeaderCredentials) {
name = "Private-Token"
value = properties.getProperty("PUBLISH_TOKEN")
}
authentication {
header(HttpHeaderAuthentication)
}
}
}
}
}
\ No newline at end of file
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