remove android release template

This commit is contained in:
Taner Sener 2022-11-19 13:20:10 +00:00
parent 81ccd7c13d
commit 5321a53528
4 changed files with 0 additions and 126 deletions

View File

@ -54,7 +54,3 @@ dependencies {
testImplementation "androidx.test.ext:junit:1.1.3" testImplementation "androidx.test.ext:junit:1.1.3"
testImplementation 'org.json:json:20220320' testImplementation 'org.json:json:20220320'
} }
if (System.properties.containsKey('releaseFFmpegKit')) {
apply from: "${rootProject.projectDir}/../tools/android/release.template.gradle"
}

View File

@ -54,7 +54,3 @@ dependencies {
testImplementation "androidx.test.ext:junit:1.1.3" testImplementation "androidx.test.ext:junit:1.1.3"
testImplementation 'org.json:json:20220320' testImplementation 'org.json:json:20220320'
} }
if (System.properties.containsKey('releaseFFmpegKit')) {
apply from: "${rootProject.projectDir}/../tools/android/release.template.gradle"
}

View File

@ -54,7 +54,3 @@ dependencies {
testImplementation "androidx.test.ext:junit:1.1.3" testImplementation "androidx.test.ext:junit:1.1.3"
testImplementation 'org.json:json:20220320' testImplementation 'org.json:json:20220320'
} }
if (System.properties.containsKey('releaseFFmpegKit')) {
apply from: "${rootProject.projectDir}/../tools/android/release.template.gradle"
}

View File

@ -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
}