Skip to content

Commit ebf9de7

Browse files
committed
Deprecated publish to mavenCentral() with plugin
New tasks: publishAllPublicationsToMavenRepository - Publishes all Maven publications produced by this project to the maven repository. publishMavenPublicationToMavenRepository - Publishes Maven publication 'maven' to Maven repository 'maven'.
1 parent 545de41 commit ebf9de7

File tree

4 files changed

+29
-0
lines changed

4 files changed

+29
-0
lines changed

.github/workflows/Android-CI.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,14 @@ jobs:
4848
- uses: gradle/actions/wrapper-validation@v5
4949
- name: Install Android SDK
5050
uses: hannesa2/action-android/[email protected]
51+
- name: Build project
52+
run: ./gradlew assembleDebug
53+
- name: Deploy test (Don't merge)
54+
run: ./gradlew publishMavenPublicationToMavenRepository
55+
- name: Run tests
56+
run: ./gradlew test
57+
- name: Test jitpack publish command
58+
run: ./gradlew :MPChartLib:publishToMavenLocal
5159
- name: Run instrumentation tests
5260
uses: hannesa2/action-android/[email protected]
5361
with:

MPChartLib/build.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ plugins {
55
id "com.vanniktech.maven.publish" version "0.34.0"
66
}
77

8+
apply from: 'https://raw.github.com/chrisbanes/gradle-mvn-push/master/gradle-mvn-push.gradle'
9+
810
ext {
911
mGroupId = "info.appdevnext"
1012
mArtifactId = "chart"

MPChartLib/gradle.properties

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
POM_NAME=Andorid Chart
2+
POM_ARTIFACT_ID=library
3+
POM_PACKAGING=aar

gradle.properties

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,19 @@ RELEASE_SIGNING_ENABLED=true
99
POM_ARTIFACT_ID=chart
1010
android.nonTransitiveRClass=false
1111
android.nonFinalResIds=false
12+
13+
# TODO use right, and currently unknown, credentials
14+
VERSION_NAME=0.9.2-SNAPSHOT
15+
VERSION_CODE=92
16+
GROUP=info.mxtracks
17+
18+
POM_DESCRIPTION=A powerful Android chart view / graph view library, supporting line- bar- pie- radar- bubble- and candlestick charts as well as scaling, dragging and animations.
19+
POM_URL=https://github.com/AppDevNext/AndroidChart
20+
POM_SCM_URL=https://github.com/AppDevNext/AndroidChart
21+
POM_SCM_CONNECTION=scm:[email protected]:AppDevNext/AndroidChart.git
22+
POM_SCM_DEV_CONNECTION=scm:[email protected]:AppDevNext/AndroidChart.git
23+
POM_LICENCE_NAME=The Apache Software License, Version 2.0
24+
POM_LICENCE_URL=http://www.apache.org/licenses/LICENSE-2.0.txt
25+
POM_LICENCE_DIST=repo
26+
POM_DEVELOPER_ID=hannesa2
27+
POM_DEVELOPER_NAME=Hannes A

0 commit comments

Comments
 (0)