diff --git a/app/build.gradle b/app/build.gradle index f4f01ba..aa54e88 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -1,9 +1,8 @@ plugins { id 'com.android.library' + id 'maven-publish' } -group='com.github.bright' - android { namespace "pl.brightinventions.slf4android" testNamespace "pl.brightinventions.slf4android.androidTest" @@ -15,6 +14,12 @@ android { testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" } + publishing { + singleVariant('release') { + withSourcesJar() + } + } + packagingOptions { exclude 'LICENSE.txt' exclude 'META-INF/LICENSE.txt' @@ -64,3 +69,17 @@ dependencies { exclude module: 'wagon-provider-api' } } + +publishing { + publications { + release(MavenPublication) { + groupId = 'com.github.bright' + artifactId = 'slf4android' + version = '1.0' + + afterEvaluate { + from components.release + } + } + } +}