Skip to content

[WIP] update gradle, kotlin and kotlin-dsl versions #3684

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import com.google.firebase.gradle.plugins.license.LicenseResolverPlugin
import com.google.firebase.gradle.MultiProjectReleasePlugin

buildscript {
ext.kotlinVersion = '1.3.72'
ext.kotlinVersion = '1.6.20'
repositories {
google()
mavenCentral()
Expand Down
4 changes: 2 additions & 2 deletions buildSrc/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// limitations under the License.

plugins {
id "org.gradle.kotlin.kotlin-dsl" version "1.2.9"
id "org.gradle.kotlin.kotlin-dsl" version "1.3.3"
id "org.jlleitschuh.gradle.ktlint" version "9.2.1"
id 'com.github.sherter.google-java-format' version '0.9'
}
Expand Down Expand Up @@ -52,7 +52,7 @@ dependencies {
implementation "com.google.auto.value:auto-value-annotations:1.7"
annotationProcessor "com.google.auto.value:auto-value:1.6.5"
implementation 'digital.wup:android-maven-publish:3.6.3'
implementation 'org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.72'
implementation 'org.jetbrains.kotlin:kotlin-gradle-plugin:1.6.20'
implementation 'org.json:json:20180813'

implementation "org.eclipse.aether:aether-api:1.0.0.v20140518"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import org.gradle.api.DefaultTask
import org.gradle.api.Project
import org.gradle.api.artifacts.Configuration
import org.gradle.api.file.FileCollection
import org.gradle.api.tasks.Input
import org.gradle.api.tasks.InputFiles
import org.gradle.api.tasks.OutputDirectory
import org.gradle.api.tasks.SourceSet
Expand Down Expand Up @@ -50,6 +51,7 @@ fun Project.runMetalavaWithArgs(

abstract class GenerateStubsTask : DefaultTask() {
/** Source files against which API signatures will be validated. */
@Input
lateinit var sourceSet: Object

@get:InputFiles
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ public abstract class ApiInformationTask extends DefaultTask {
@InputFile
abstract File getApiTxt();

@Input
abstract Object getSourceSet();

@InputFiles
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ public abstract class GenerateApiTxtFileTask extends DefaultTask {
@OutputFile
abstract File getApiTxt();

@Input
abstract Object getSourceSet();

@InputFiles
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,28 +66,30 @@ public static void apply(FirebaseLibraryExtension firebaseLibrary) {
.add("**Manifest*.*")
.build();

task.setClassDirectories(
project.files(
task.getClassDirectories()
.from(
project.files(
project.fileTree(
ImmutableMap.of(
"dir",
project.getBuildDir() + "/intermediates/javac/release",
"excludes",
excludes)),
project.fileTree(
ImmutableMap.of(
"dir",
project.getBuildDir() + "/tmp/kotlin-classes/release",
"excludes",
excludes))));
task.getSourceDirectories().from(project.files("src/main/java", "src/main/kotlin"));
task.getExecutionData()
.from(
project.fileTree(
ImmutableMap.of(
"dir",
project.getBuildDir() + "/intermediates/javac/release",
"excludes",
excludes)),
project.fileTree(
ImmutableMap.of(
"dir",
project.getBuildDir() + "/tmp/kotlin-classes/release",
"excludes",
excludes))));
task.setSourceDirectories(project.files("src/main/java", "src/main/kotlin"));
task.setExecutionData(
project.fileTree(
ImmutableMap.of(
"dir",
project.getBuildDir(),
"includes",
ImmutableList.of("jacoco/*.exec"))));
project.getBuildDir(),
"includes",
ImmutableList.of("jacoco/*.exec"))));
task.reports(
reports -> {
reports
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.4-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-6.1.1-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists