Skip to content

Commit

Permalink
Update publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
ductranminh committed Jan 29, 2024
1 parent 2583b1c commit 4e2d7c7
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 31 deletions.
4 changes: 3 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ allprojects {
maven {
url "https://plugins.gradle.org/m2/"
}

maven { url "https://jitpack.io" }
}
}

Expand All @@ -37,4 +39,4 @@ ext {
lifecycle = "2.7.0"
androidX = "1.6.1"
constraint = "2.1.4"
}
}
48 changes: 18 additions & 30 deletions livedatabus/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
apply plugin: 'maven-publish'

buildscript {
repositories {
Expand All @@ -9,29 +10,6 @@ buildscript {
}
}

ext {
bintrayRepo = 'livedatabus'
bintrayName = 'livedatabus'

publishedGroupId = 'ductranit.me.livedatabus'
libraryName = 'livedatabus'
artifact = 'livedatabus'

libraryDescription = 'Make an Event Bus with LiveData'

siteUrl = 'https://github.com/ductranit/livedatabus'
gitUrl = 'https://github.com/ductranit/livedatabus.git'

libraryVersion = '1.0.0'

developerId = 'ductranit'
developerName = 'ductran'
developerEmail = '[email protected]'

licenseName = 'The Apache Software License, Version 2.0'
licenseUrl = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
allLicenses = ["Apache-2.0"]
}

android {
defaultConfig {
Expand All @@ -40,6 +18,10 @@ android {
compileSdk 34
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"

aarMetadata {
minCompileSdk = 29
}

}

buildTypes {
Expand All @@ -57,9 +39,6 @@ android {

}

//apply plugin: 'com.github.dcendents.android-maven'
//apply plugin: 'com.jfrog.bintray'

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])

Expand All @@ -73,7 +52,16 @@ repositories {
mavenCentral()
}

//if (project.rootProject.file('local.properties').exists()) {
// apply from: 'https://raw.githubusercontent.com/nuuneoi/JCenter/master/installv1.gradle'
// apply from: 'https://raw.githubusercontent.com/nuuneoi/JCenter/master/bintrayv1.gradle'
//}
publishing {
publications {
release(MavenPublication) {
groupId = 'ductranit'
artifactId = 'livedatabus'
version = '1.1.0'
description 'Make an Event Bus with LiveData'
afterEvaluate {
from components.release
}
}
}
}

0 comments on commit 4e2d7c7

Please sign in to comment.