Skip to content
Snippets Groups Projects
Commit df5d1ad5 authored by cyberta's avatar cyberta
Browse files

Merge branch 'update_dependencies' into 'main'

Update dependencies

See merge request !4
parents 9ff61322 b7bf4551
Branches main
No related tags found
1 merge request!4Update dependencies
...@@ -11,12 +11,12 @@ def getVersionName = { -> ...@@ -11,12 +11,12 @@ def getVersionName = { ->
} }
android { android {
compileSdkVersion 30 compileSdkVersion 31
buildToolsVersion '30.0.3' buildToolsVersion '31.0.0'
defaultConfig { defaultConfig {
minSdkVersion 16 minSdkVersion 16
targetSdkVersion 30 targetSdkVersion 31
versionCode 41500 versionCode 41500
versionName getVersionName() versionName getVersionName()
...@@ -83,10 +83,19 @@ task sourcesJar(type: Jar) { ...@@ -83,10 +83,19 @@ task sourcesJar(type: Jar) {
baseName = 'tor-android-' + getVersionName() baseName = 'tor-android-' + getVersionName()
} }
configurations {
libconfiguration
// declare a configuration that is going to resolve the compile classpath of the application
compileClasspath.extendsFrom(libconfiguration)
// declare a configuration that is going to resolve the runtime classpath of the application
runtimeClasspath.extendsFrom(libconfiguration)
}
task javadoc(type: Javadoc) { task javadoc(type: Javadoc) {
source = android.sourceSets.main.java.srcDirs source = android.sourceSets.main.java.srcDirs
classpath += project.files(android.getBootClasspath().join(File.pathSeparator)) classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
classpath += configurations.compile classpath += configurations.libconfiguration
options.noTimestamp = true options.noTimestamp = true
options.addStringOption('charset', 'UTF-8') // to match Maven's case options.addStringOption('charset', 'UTF-8') // to match Maven's case
android.libraryVariants.all { variant -> android.libraryVariants.all { variant ->
...@@ -105,17 +114,5 @@ task javadocJar(type: Jar, dependsOn: javadoc) { ...@@ -105,17 +114,5 @@ task javadocJar(type: Jar, dependsOn: javadoc) {
} }
apply plugin: 'maven' apply plugin: 'maven-publish'
uploadArchives {
repositories.mavenDeployer {
def deployPath = file(getProperty('aar.deployPath'))
repository(url: "file://${deployPath.absolutePath}")
pom.project {
groupId 'info.guardianproject'
artifactId 'tor-android'
version getVersionName()
}
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment