diff --git a/.github/workflows/Android-CI.yml b/.github/workflows/Android-CI.yml index 4a122429e5..726680e6c6 100644 --- a/.github/workflows/Android-CI.yml +++ b/.github/workflows/Android-CI.yml @@ -27,6 +27,8 @@ jobs: uses: malinskiy/action-android/install-sdk@release/0.1.4 - name: Build project run: ./gradlew assembleDebug + - name: Deploy test (Don't merge) + run: ./gradlew publishMavenPublicationToMavenRepository - name: Run tests run: ./gradlew test - name: Test jitpack publish command @@ -54,29 +56,29 @@ jobs: path: | MPChartExample/build/outputs/connected_android_test_additional_output/debugAndroidTest/connected MPChartExample/build/outputs/androidTest-results/connected - Check: - name: Check - runs-on: ubuntu-latest - strategy: - matrix: - java_version: [ 11 ] - steps: - - name: Checkout - uses: actions/checkout@v3.2.0 - with: - fetch-depth: 0 - - name: Install JDK ${{ matrix.java_version }} - uses: actions/setup-java@v3 - with: - distribution: "adopt" - java-version: ${{ matrix.java_version }} - - name: Install Android SDK - uses: malinskiy/action-android/install-sdk@release/0.1.4 - - name: Code checks - run: ./gradlew check - - name: Archive Lint report - uses: actions/upload-artifact@v3.1.1 - if: ${{ always() }} - with: - name: Chart-Lint-report - path: ./**/build/reports/lint-results*.html +# Check: +# name: Check +# runs-on: ubuntu-latest +# strategy: +# matrix: +# java_version: [ 11 ] +# steps: +# - name: Checkout +# uses: actions/checkout@v3.2.0 +# with: +# fetch-depth: 0 +# - name: Install JDK ${{ matrix.java_version }} +# uses: actions/setup-java@v3 +# with: +# distribution: "adopt" +# java-version: ${{ matrix.java_version }} +# - name: Install Android SDK +# uses: malinskiy/action-android/install-sdk@release/0.1.4 +# - name: Code checks +# run: ./gradlew check +# - name: Archive Lint report +# uses: actions/upload-artifact@v3.1.1 +# if: ${{ always() }} +# with: +# name: Chart-Lint-report +# path: ./**/build/reports/lint-results*.html diff --git a/MPChartLib/build.gradle b/MPChartLib/build.gradle index c21382406f..b4dacc0839 100644 --- a/MPChartLib/build.gradle +++ b/MPChartLib/build.gradle @@ -4,6 +4,8 @@ plugins { id "com.vanniktech.maven.publish" version "0.22.0" } +apply from: 'https://raw.github.com/chrisbanes/gradle-mvn-push/master/gradle-mvn-push.gradle' + ext { mGroupId = "info.appdevnext" mArtifactId = "chart" @@ -42,10 +44,10 @@ dependencies { testImplementation 'junit:junit:4.13.2' } -task androidSourcesJar(type: Jar) { - archiveClassifier.set('sources') - from android.sourceSets.main.java.srcDirs -} +//task androidSourcesJar(type: Jar) { +// archiveClassifier.set('sources') +// from android.sourceSets.main.java.srcDirs +//} group = "info.mxtracks" version = "${getTag()}" diff --git a/MPChartLib/gradle.properties b/MPChartLib/gradle.properties new file mode 100644 index 0000000000..a2c3426fcc --- /dev/null +++ b/MPChartLib/gradle.properties @@ -0,0 +1,3 @@ +POM_NAME=Andorid Chart +POM_ARTIFACT_ID=library +POM_PACKAGING=aar \ No newline at end of file diff --git a/gradle.properties b/gradle.properties index 8926f58f6a..3064d2b1eb 100644 --- a/gradle.properties +++ b/gradle.properties @@ -2,8 +2,18 @@ android.enableJetifier=true android.useAndroidX=true org.gradle.jvmargs=-Xmx2048M -#SONATYPE_HOST=DEFAULT -# or when publishing to https://s01.oss.sonatype.org -SONATYPE_HOST=S01 -RELEASE_SIGNING_ENABLED=true -POM_ARTIFACT_ID=chart +# TODO use right, and currently unknown, credentials +VERSION_NAME=0.9.2-SNAPSHOT +VERSION_CODE=92 +GROUP=info.mxtracks + +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. +POM_URL=https://github.com/AppDevNext/AndroidChart +POM_SCM_URL=https://github.com/AppDevNext/AndroidChart +POM_SCM_CONNECTION=scm:git@github.com:AppDevNext/AndroidChart.git +POM_SCM_DEV_CONNECTION=scm:git@github.com:AppDevNext/AndroidChart.git +POM_LICENCE_NAME=The Apache Software License, Version 2.0 +POM_LICENCE_URL=http://www.apache.org/licenses/LICENSE-2.0.txt +POM_LICENCE_DIST=repo +POM_DEVELOPER_ID=hannesa2 +POM_DEVELOPER_NAME=Hannes A \ No newline at end of file