2016-10-05 18:25:09 +02:00
|
|
|
// Top-level build file where you can add configuration options common to all sub-projects/modules.
|
|
|
|
|
|
|
|
buildscript {
|
|
|
|
repositories {
|
2021-04-16 17:43:30 +02:00
|
|
|
mavenCentral()
|
2018-06-26 10:39:33 +02:00
|
|
|
google()
|
2016-10-05 18:25:09 +02:00
|
|
|
}
|
|
|
|
dependencies {
|
2021-04-16 17:43:30 +02:00
|
|
|
classpath 'com.android.tools.build:gradle:4.1.3'
|
2016-10-05 18:25:09 +02:00
|
|
|
|
|
|
|
// NOTE: Do not place your application dependencies here; they belong
|
|
|
|
// in the individual module build.gradle files
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-04-19 15:32:00 +02:00
|
|
|
plugins {
|
|
|
|
id 'java'
|
|
|
|
id 'maven-publish'
|
|
|
|
}
|
|
|
|
|
2016-10-05 18:25:09 +02:00
|
|
|
allprojects {
|
|
|
|
repositories {
|
2021-04-16 17:43:30 +02:00
|
|
|
mavenCentral()
|
2018-06-26 10:39:33 +02:00
|
|
|
google()
|
2016-10-05 18:25:09 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-04-19 15:32:00 +02:00
|
|
|
publishing {
|
|
|
|
publications {
|
|
|
|
library(MavenPublication) {
|
|
|
|
from components.java
|
|
|
|
}
|
|
|
|
}
|
|
|
|
repositories {
|
|
|
|
maven {
|
|
|
|
url "https://gitlab.matrix.org/api/v4/projects/27/packages/maven"
|
|
|
|
credentials(HttpHeaderCredentials) {
|
|
|
|
name = 'Job-Token'
|
|
|
|
value = System.getenv("CI_JOB_TOKEN")
|
|
|
|
}
|
|
|
|
authentication {
|
|
|
|
header(HttpHeaderAuthentication)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2016-10-05 18:25:09 +02:00
|
|
|
}
|