Skip to content
Snippets Groups Projects
Commit 73b09c95 authored by Benoit Marty's avatar Benoit Marty
Browse files

Publish the SDK on MavenCentral

parent 316ffce3
No related branches found
No related tags found
No related merge requests found
......@@ -10,11 +10,12 @@ buildscript {
maven {
url "https://plugins.gradle.org/m2/"
}
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:7.0.2'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath 'com.vanniktech:gradle-maven-publish-plugin:0.17.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
......@@ -42,6 +43,13 @@ allprojects {
kotlinOptions.allWarningsAsErrors = false
}
plugins.withId("com.vanniktech.maven.publish") {
// Publish on s01.oss.sonatype.org
//https://github.com/vanniktech/gradle-maven-publish-plugin#where-to-upload-to
mavenPublish {
sonatypeHost = "S01"
}
}
}
task clean(type: Delete) {
......
......@@ -21,3 +21,29 @@ vector.httpLogLevel=NONE
# Note: to debug, you can put and uncomment the following lines in the file ~/.gradle/gradle.properties to override the value above
#vector.debugPrivateData=true
#vector.httpLogLevel=BODY
# Maven publication
# Ref: https://github.com/vanniktech/gradle-maven-publish-plugin
GROUP=org.matrix.android
POM_ARTIFACT_ID=matrix-android-sdk2
VERSION_NAME=1.2.1
POM_PACKAGING=aar
POM_NAME=Matrix Android SDK 2
POM_DESCRIPTION=An Android SDK to connect to a Matrix homeserver.
POM_INCEPTION_YEAR=2021
POM_URL=https://github.com/matrix-org/matrix-android-sdk2
POM_LICENSE_NAME=The Apache Software License, Version 2.0
POM_LICENCE_URL=https://www.apache.org/licenses/LICENSE-2.0.txt
POM_LICENCE_DIST=repo
POM_SCM_URL=https://github.com/matrix-org/matrix-android-sdk2
POM_SCM_CONNECTION=scm:git:git://github.com/matrix-org/matrix-android-sdk2.git
POM_SCM_DEV_CONNECTION=scm:git:ssh://git@github.com/matrix-org/matrix-android-sdk2.git
POM_DEVELOPER_ID=matrixdev
POM_DEVELOPER_NAME=matrixdev
POM_DEVELOPER_URL=https://github.com/matrix-org/
POM_DEVELOPER_EMAIL=android@element.io
......@@ -3,7 +3,7 @@ apply plugin: 'kotlin-android'
apply plugin: 'kotlin-kapt'
apply plugin: 'kotlin-parcelize'
apply plugin: 'realm-android'
apply plugin: 'maven-publish'
apply plugin: "com.vanniktech.maven.publish"
buildscript {
repositories {
......@@ -193,13 +193,3 @@ dependencies {
androidTestUtil 'androidx.test:orchestrator:1.4.0'
}
project.afterEvaluate {
publishing {
publications {
release(MavenPublication) {
from components.release
}
}
}
}
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