-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #104 from tus/upgrade-gradle
Upgrade to Gradle 8.6
- Loading branch information
Showing
9 changed files
with
46 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,7 +15,7 @@ jobs: | |
android: | ||
strategy: | ||
matrix: | ||
java: [ '11','19' ] | ||
java: [ '17','21' ] | ||
|
||
runs-on: ubuntu-latest | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,12 +4,12 @@ plugins { | |
} | ||
|
||
android { | ||
compileSdkVersion 33 | ||
buildToolsVersion '30.0.3' | ||
compileSdk 33 | ||
setBuildToolsVersion("30.0.3") | ||
|
||
defaultConfig { | ||
minSdkVersion 14 | ||
targetSdkVersion 33 | ||
targetSdk 33 | ||
} | ||
buildTypes { | ||
release { | ||
|
@@ -21,6 +21,7 @@ android { | |
sourceCompatibility JavaVersion.VERSION_11 | ||
targetCompatibility JavaVersion.VERSION_11 | ||
} | ||
namespace 'io.tus.android.client' | ||
} | ||
|
||
def config = new ConfigSlurper().parse(new File("${projectDir}/src/main/res/tus-android-client-version/version.properties").toURI().toURL()) | ||
|
@@ -34,22 +35,29 @@ dependencies { | |
testImplementation 'junit:junit:4.13.2' | ||
} | ||
|
||
task sourcesJar(type: Jar) { | ||
archiveClassifier.set('sources') | ||
from android.sourceSets.main.java.srcDirs | ||
} | ||
afterEvaluate { | ||
tasks.register('sourcesJar', Jar) { | ||
archiveClassifier.set('sources') | ||
from android.sourceSets.main.java.srcDirs | ||
} | ||
|
||
task javadoc(type: Javadoc) { | ||
source = android.sourceSets.main.java.srcDirs | ||
classpath += project.files(android.getBootClasspath().join(File.pathSeparator)) | ||
android.libraryVariants.all { variant -> | ||
owner.classpath += variant.javaCompileProvider.get().classpath | ||
tasks.register('javadoc', Javadoc) { | ||
source = android.sourceSets.main.java.srcDirs | ||
classpath += project.files(android.getBootClasspath().join(File.pathSeparator)) | ||
android.libraryVariants.all { variant -> | ||
owner.classpath += variant.javaCompileProvider.get().classpath | ||
} | ||
} | ||
|
||
tasks.register('javadocJar', Jar) { | ||
dependsOn javadoc | ||
archiveClassifier.set('javadoc') | ||
from javadoc.destinationDir | ||
} | ||
} | ||
|
||
task javadocJar(type: Jar, dependsOn: javadoc) { | ||
archiveClassifier.set('javadoc') | ||
from javadoc.destinationDir | ||
artifacts { | ||
archives sourcesJar, javadocJar | ||
} | ||
} | ||
|
||
def pomConfig = { | ||
|
@@ -62,6 +70,11 @@ def pomConfig = { | |
name 'Marius Kleidl' | ||
email '[email protected]' | ||
} | ||
developer { | ||
id 'cdr-chakotay' | ||
name 'Florian Kuenzig' | ||
email '[email protected]' | ||
} | ||
} | ||
|
||
inceptionYear '2015' | ||
|
@@ -83,14 +96,17 @@ publishing { | |
publications { | ||
androidRelease(MavenPublication) { | ||
afterEvaluate { | ||
from components.release | ||
from components.findByName('release') | ||
groupId 'io.tus.android.client' | ||
artifactId 'tus-android-client' | ||
description project.getDescription() | ||
version project.getVersion() | ||
|
||
artifact sourcesJar | ||
artifact javadocJar | ||
artifact (project.layout.buildDirectory.dir('outputs/aar/tus-android-client-release.aar')) { | ||
builtBy assemble | ||
} | ||
|
||
pom.withXml { | ||
def root = asNode() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | ||
package="io.tus.android.client"> | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"> | ||
</manifest> |