mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 12:23:58 +01:00
fixes #5208: gradle build fails with android studio flamingo update
This commit is contained in:
parent
9fb13395f6
commit
368701ec59
15 changed files with 105 additions and 150 deletions
|
|
@ -1,38 +1,45 @@
|
|||
// NOTE: This library is outdated, discontinued & will be replaced eventually.
|
||||
// Please refrain from altering the library contents unless necessary
|
||||
|
||||
// Repository
|
||||
// url - 'https://github.com/wikimedia/wikimedia-android-data-client'
|
||||
// description - 'Android library for accessing the Wikimedia APIs.'
|
||||
|
||||
// Licenses
|
||||
// name - 'The Apache Software License, Version 2.0'
|
||||
// url - 'http://www.apache.org/licenses/LICENSE-2.0.txt'
|
||||
|
||||
// Author
|
||||
// name - Dmitry Brant
|
||||
// email - me@dmitrybrant.com
|
||||
|
||||
buildscript {
|
||||
ext.kotlin_version = '1.7.20'
|
||||
repositories {
|
||||
jcenter()
|
||||
mavenCentral()
|
||||
google()
|
||||
}
|
||||
dependencies {
|
||||
classpath 'com.android.tools.build:gradle:3.6.3'
|
||||
classpath "com.github.dcendents:android-maven-gradle-plugin:2.1"
|
||||
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
||||
}
|
||||
}
|
||||
|
||||
plugins {
|
||||
id "com.jfrog.bintray" version "1.7.3"
|
||||
}
|
||||
|
||||
allprojects {
|
||||
repositories {
|
||||
google()
|
||||
jcenter()
|
||||
mavenCentral()
|
||||
}
|
||||
apply plugin: 'com.android.library'
|
||||
apply plugin: 'kotlin-android'
|
||||
apply plugin: 'kotlin-android-extensions'
|
||||
|
||||
apply plugin: 'com.github.dcendents.android-maven'
|
||||
apply plugin: 'com.jfrog.bintray'
|
||||
}
|
||||
|
||||
version = "${VERSION_NAME}"
|
||||
group = "${GROUP_ID}"
|
||||
|
||||
android {
|
||||
compileSdkVersion 31
|
||||
compileSdkVersion 33
|
||||
|
||||
defaultConfig {
|
||||
minSdkVersion 21
|
||||
|
|
@ -55,6 +62,7 @@ android {
|
|||
sourceCompatibility = '1.8'
|
||||
targetCompatibility = '1.8'
|
||||
}
|
||||
namespace 'org.wikipedia.dataclient'
|
||||
}
|
||||
|
||||
dependencies {
|
||||
|
|
@ -82,67 +90,6 @@ dependencies {
|
|||
testImplementation "commons-io:commons-io:2.6"
|
||||
}
|
||||
|
||||
task sourcesJar(type: Jar) {
|
||||
from android.sourceSets.main.java.srcDirs
|
||||
classifier = 'sources'
|
||||
}
|
||||
artifacts {
|
||||
archives sourcesJar
|
||||
}
|
||||
|
||||
Properties properties = new Properties()
|
||||
if ( project.rootProject.file('local.properties').isFile() ) {
|
||||
properties.load(project.rootProject.file('local.properties').newDataInputStream())
|
||||
}
|
||||
|
||||
bintray {
|
||||
user = properties.getProperty("bintray.user")
|
||||
key = properties.getProperty("bintray.apikey")
|
||||
println 'Bintray user: ' + user
|
||||
configurations = ['archives']
|
||||
pkg {
|
||||
repo = 'maven'
|
||||
name = "${ARTIFACT_ID}"
|
||||
vcsUrl = 'https://github.com/wikimedia/wikimedia-android-data-client.git'
|
||||
licenses = ['Apache-2.0']
|
||||
version {
|
||||
name = "${VERSION_NAME}"
|
||||
}
|
||||
publish = true
|
||||
}
|
||||
}
|
||||
|
||||
install {
|
||||
repositories.mavenInstaller {
|
||||
// This generates POM.xml with proper parameters
|
||||
pom {
|
||||
project {
|
||||
packaging 'aar'
|
||||
|
||||
name "${ARTIFACT_ID}"
|
||||
artifactId "${ARTIFACT_ID}"
|
||||
description 'Android library for accessing the Wikimedia APIs.'
|
||||
url 'https://github.com/wikimedia/wikimedia-android-data-client'
|
||||
inceptionYear '2019'
|
||||
|
||||
licenses {
|
||||
license {
|
||||
name 'The Apache Software License, Version 2.0'
|
||||
url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
|
||||
}
|
||||
}
|
||||
developers {
|
||||
developer {
|
||||
id 'dmitrybrant'
|
||||
name 'Dmitry Brant'
|
||||
email 'me@dmitrybrant.com'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
}
|
||||
}
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
#Fri Jun 07 09:14:55 EDT 2019
|
||||
distributionBase=GRADLE_USER_HOME
|
||||
distributionPath=wrapper/dists
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.1.1-bin.zip
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
zipStorePath=wrapper/dists
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-5.1.1-all.zip
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="org.wikipedia.dataclient">
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<application android:allowBackup="true" android:label="@string/app_name" android:supportsRtl="true">
|
||||
</application>
|
||||
</manifest>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue