Skip to content

Commit

Permalink
Add maven-publish plugin for now to let JitPack pick the AAR
Browse files Browse the repository at this point in the history
  • Loading branch information
azabost committed Dec 30, 2023
1 parent 05f139f commit 7ceeb58
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
@@ -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"
Expand All @@ -15,6 +14,12 @@ android {
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}

publishing {
singleVariant('release') {
withSourcesJar()
}
}

packagingOptions {
exclude 'LICENSE.txt'
exclude 'META-INF/LICENSE.txt'
Expand Down Expand Up @@ -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
}
}
}
}

0 comments on commit 7ceeb58

Please sign in to comment.