From 676ecab899f9b299c4b89a207b71b8afa616aa0a Mon Sep 17 00:00:00 2001 From: Dimezis Date: Tue, 19 Jul 2022 15:53:09 +0200 Subject: [PATCH] Remove maven publishing stuff --- .circleci/config.yml | 48 ------------------------------ library/build.gradle | 70 -------------------------------------------- 2 files changed, 118 deletions(-) delete mode 100644 .circleci/config.yml diff --git a/.circleci/config.yml b/.circleci/config.yml deleted file mode 100644 index 6c9d33c..0000000 --- a/.circleci/config.yml +++ /dev/null @@ -1,48 +0,0 @@ -version: 2 -jobs: - build: - working_directory: ~/code - docker: - - image: circleci/android:api-29 - environment: - JVM_OPTS: -Xmx3200m - steps: - - checkout - - restore_cache: - key: jars-{{ checksum "build.gradle" }}-{{ checksum "app/build.gradle" }} - - restore_cache: - key: android-sdk-{{ checksum "/opt/android-sdk-linux/licenses/android-sdk-license" }} - - run: - name: Download Dependencies - command: ./gradlew :library:androidDependencies - - save_cache: - paths: - - ~/.gradle - key: jars-{{ checksum "build.gradle" }}-{{ checksum "app/build.gradle" }} - - save_cache: - paths: - - /opt/android-sdk-linux/ - key: android-sdk-{{ checksum "/opt/android-sdk-linux/licenses/android-sdk-license" }} - - run: - name: Build - command: ./gradlew :library:assembleRelease - - run: - name: Bintray Upload - command: ./gradlew :library:bintrayUpload - - store_artifacts: # for display in Artifacts: https://circleci.com/docs/2.0/artifacts/ - path: app/build/reports - destination: reports - - store_test_results: # for display in Test Summary: https://circleci.com/docs/2.0/collect-test-data/ - path: app/build/test-results - # See https://circleci.com/docs/2.0/deployment-integrations/ for deploy examples - -workflows: - version: 2 - tagged-build: - jobs: - - build: - filters: - tags: - only: /^version-.*/ - branches: - ignore: /.*/ diff --git a/library/build.gradle b/library/build.gradle index 55add8d..a456c28 100644 --- a/library/build.gradle +++ b/library/build.gradle @@ -1,28 +1,6 @@ apply plugin: 'com.android.library' -apply plugin: 'com.jfrog.bintray' -apply plugin: 'maven-publish' apply plugin: 'de.mannodermaus.android-junit5' -ext { - PUBLISH_GROUP_ID = 'com.eightbitlab' - PUBLISH_ARTIFACT_ID = 'blurview' -} - -def getVersionName() { - def stdout = new ByteArrayOutputStream() - exec { - commandLine 'git', 'describe', '--tags' - standardOutput = stdout - } - //remove "version-" prefix and hash - def tagAndHash = stdout.toString().trim().replace("version-", "") - def indexOfDash = tagAndHash.indexOf("-") - if (indexOfDash == -1) { - return tagAndHash - } - return tagAndHash.substring(0, indexOfDash) -} - android { compileSdkVersion 31 @@ -66,51 +44,3 @@ task androidSourcesJar(type: Jar) { classifier = 'sources' from android.sourceSets.main.java.srcDirs } - -publishing { - publications { - Production(MavenPublication) { - artifact("$buildDir/outputs/aar/library-release.aar") - artifact(androidSourcesJar) - artifact(androidJavadocsJar) - groupId PUBLISH_GROUP_ID - artifactId PUBLISH_ARTIFACT_ID - version getVersionName() - - //The publication doesn't know about our dependencies, so we have to manually add them to the pom - pom.withXml { - //Iterate over the implementation dependencies (we don't want the test ones), adding a node for each - def dependenciesNode = asNode().appendNode('dependencies') - configurations.implementation.allDependencies.each { - if (it.name != 'unspecified') { - def dependencyNode = dependenciesNode.appendNode('dependency') - dependencyNode.appendNode('groupId', it.group) - dependencyNode.appendNode('artifactId', it.name) - dependencyNode.appendNode('version', it.version) - } - } - } - } - } -} - -bintray { - user = System.getenv('BINTRAY_USER') - key = System.getenv('BINTRAY_API_KEY') - dryRun = false - override = false - publish = true - pkg { - repo = 'maven' - name = 'BlurView' - userOrg = 'dimezis' - vcsUrl = 'https://github.com/Dimezis/BlurView' - licenses = ['Apache-2.0'] - - version { - name = getVersionName() - vcsTag = getVersionName() - } - } - publications = ['Production'] -} \ No newline at end of file