Skip to content

Commit

Permalink
add publish.gradle
Browse files Browse the repository at this point in the history
  • Loading branch information
vitaviva committed May 25, 2021
1 parent f849825 commit 5de6285
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 3 deletions.
3 changes: 3 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ buildscript {
google()
mavenCentral()
jcenter()
mavenLocal()

}
dependencies {
classpath 'com.android.tools.build:gradle:4.0.2'
Expand All @@ -24,6 +26,7 @@ allprojects {
google()
mavenCentral()
maven { url 'https://jitpack.io' }
mavenLocal()
}

tasks.withType(Javadoc).all {
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ kotlin.code.style=official
# bintray upload
USER_ORG=vitaviva
ARTIFACT_GROUP=com.github.fragivity
ARTIFACT_VERSION=0.2.6.2
ARTIFACT_VERSION=0.2.7
WEB_SITE=https://github.com/vitaviva/fragivity
22 changes: 22 additions & 0 deletions gradle/publish.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
apply plugin: 'maven-publish'


afterEvaluate {
publishing {
publications {
release(MavenPublication) {
from components.release
groupId = ARTIFACT_GROUP
artifactId = ARTIFACT_NAME
version = ARTIFACT_VERSION
}

debug(MavenPublication) {
from components.debug
groupId = ARTIFACT_GROUP
artifactId = ARTIFACT_NAME
version = ARTIFACT_VERSION
}
}
}
}
2 changes: 1 addition & 1 deletion library/CHANGE_LOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## 0.2.6
## 0.2.7
fix https://github.com/vitaviva/fragivity/issues/37

## 0.2.5
Expand Down
3 changes: 2 additions & 1 deletion library/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,5 @@ configurations.all {
}
}

apply from: rootProject.file("gradle/bintray.gradle")

apply from: rootProject.file("gradle/publish.gradle")

0 comments on commit 5de6285

Please sign in to comment.