From 5321a535285689a0b07e266910d2d52935f37fe1 Mon Sep 17 00:00:00 2001 From: Taner Sener Date: Sat, 19 Nov 2022 13:20:10 +0000 Subject: [PATCH] remove android release template --- android/ffmpeg-kit-android-lib/build.gradle | 4 - tools/android/build.gradle | 4 - tools/android/build.lts.gradle | 4 - tools/android/release.template.gradle | 114 -------------------- 4 files changed, 126 deletions(-) delete mode 100644 tools/android/release.template.gradle diff --git a/android/ffmpeg-kit-android-lib/build.gradle b/android/ffmpeg-kit-android-lib/build.gradle index 43c84dd..cf35c13 100644 --- a/android/ffmpeg-kit-android-lib/build.gradle +++ b/android/ffmpeg-kit-android-lib/build.gradle @@ -54,7 +54,3 @@ dependencies { testImplementation "androidx.test.ext:junit:1.1.3" testImplementation 'org.json:json:20220320' } - -if (System.properties.containsKey('releaseFFmpegKit')) { - apply from: "${rootProject.projectDir}/../tools/android/release.template.gradle" -} diff --git a/tools/android/build.gradle b/tools/android/build.gradle index 43c84dd..cf35c13 100644 --- a/tools/android/build.gradle +++ b/tools/android/build.gradle @@ -54,7 +54,3 @@ dependencies { testImplementation "androidx.test.ext:junit:1.1.3" testImplementation 'org.json:json:20220320' } - -if (System.properties.containsKey('releaseFFmpegKit')) { - apply from: "${rootProject.projectDir}/../tools/android/release.template.gradle" -} diff --git a/tools/android/build.lts.gradle b/tools/android/build.lts.gradle index 869072b..4bf3b86 100644 --- a/tools/android/build.lts.gradle +++ b/tools/android/build.lts.gradle @@ -54,7 +54,3 @@ dependencies { testImplementation "androidx.test.ext:junit:1.1.3" testImplementation 'org.json:json:20220320' } - -if (System.properties.containsKey('releaseFFmpegKit')) { - apply from: "${rootProject.projectDir}/../tools/android/release.template.gradle" -} diff --git a/tools/android/release.template.gradle b/tools/android/release.template.gradle deleted file mode 100644 index 61da992..0000000 --- a/tools/android/release.template.gradle +++ /dev/null @@ -1,114 +0,0 @@ -task sourcesJar(type: Jar) { - archiveClassifier.set('sources') - from android.sourceSets.main.java.srcDirs -} - -task javadocJar(type: Jar, dependsOn: javadoc) { - archiveClassifier.set('javadoc') - from javadoc.destinationDir -} - -artifacts { - archives javadocJar - archives sourcesJar -} - -apply plugin: 'maven-publish' -apply plugin: 'signing' - -group = 'com.arthenica' -archivesBaseName = releaseProject -version = releaseVersionName - -File propertiesFile = project.rootProject.file('local.properties') -if (propertiesFile.exists()) { - Properties properties = new Properties() - properties.load(new FileInputStream(propertiesFile)) - properties.each { name, value -> - ext[name] = value - } -} - -ext { - publishedGroupId = group - artifact = releaseProject - libraryName = releaseProject - libraryVersion = version - libraryDescription = releaseProjectDescription - - siteUrl = 'https://github.com/arthenica/ffmpeg-kit' - gitUrl = 'https://github.com/arthenica/ffmpeg-kit.git' - - developerId = 'arthenica' - developerName = 'ARTHENICA' - developerEmail = 'open-source@arthenica.com' - - if (Project.hasProperty('releaseGPL')) { - licenseName = 'GNU General Public License version 3' - licenseUrl = 'https://www.gnu.org/licenses/gpl-3.0.txt' - } else { - licenseName = 'GNU Lesser General Public License, Version 3' - licenseUrl = 'https://www.gnu.org/licenses/lgpl-3.0.txt' - } -} - -afterEvaluate { - publishing { - publications { - release(MavenPublication) { - - groupId group - artifactId = libraryName - version = version - - from components.release - - artifact sourcesJar - artifact javadocJar - - pom { - packaging 'aar' - name = libraryName - description = libraryDescription - url = siteUrl - - licenses { - license { - name = licenseName - url = licenseUrl - } - } - developers { - developer { - id = developerId - name = developerName - email = developerEmail - } - } - - scm { - connection = gitUrl - developerConnection = gitUrl - url = siteUrl - } - } - } - } - repositories { - maven { - var releasesRepoUrl = "https://oss.sonatype.org/service/local/staging/deploy/maven2/" - var snapshotsRepoUrl = "https://oss.sonatype.org/content/repositories/snapshots/" - url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl - credentials { - username ossrhUsername - password ossrhPassword - } - } - } - } -} - - -signing { - sign publishing.publications -}