2021-02-22 19:13:28 +03:00
|
|
|
/*
|
|
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
|
|
*
|
|
|
|
* This source code is licensed under the MIT license found in the
|
|
|
|
* LICENSE file in the root directory of this source tree.
|
|
|
|
*/
|
|
|
|
|
2021-09-09 16:39:18 +03:00
|
|
|
import org.gradle.api.internal.classpath.ModuleRegistry
|
|
|
|
import org.gradle.configurationcache.extensions.serviceOf
|
|
|
|
|
2021-02-22 19:13:28 +03:00
|
|
|
plugins {
|
2021-10-13 16:00:42 +03:00
|
|
|
kotlin("jvm") version "1.5.31"
|
2021-09-06 12:45:30 +03:00
|
|
|
id("java-gradle-plugin")
|
2021-02-22 19:13:28 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
google()
|
2021-06-02 19:56:08 +03:00
|
|
|
mavenCentral()
|
2021-02-22 19:13:28 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
gradlePlugin {
|
|
|
|
plugins {
|
2021-09-27 18:21:11 +03:00
|
|
|
create("react") {
|
2021-09-15 13:19:56 +03:00
|
|
|
id = "com.facebook.react"
|
2021-09-27 18:21:11 +03:00
|
|
|
implementationClass = "com.facebook.react.ReactPlugin"
|
2021-02-22 19:13:28 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2021-09-06 12:45:30 +03:00
|
|
|
implementation(gradleApi())
|
2021-08-12 12:41:51 +03:00
|
|
|
implementation("com.android.tools.build:gradle:4.2.2")
|
2021-10-13 16:00:42 +03:00
|
|
|
|
2021-09-08 20:18:13 +03:00
|
|
|
testImplementation("junit:junit:4.13.2")
|
2021-09-09 16:39:18 +03:00
|
|
|
|
|
|
|
testRuntimeOnly(
|
|
|
|
files(
|
|
|
|
serviceOf<ModuleRegistry>().getModule("gradle-tooling-api-builders").classpath.asFiles.first()
|
|
|
|
)
|
|
|
|
)
|
2021-02-22 19:13:28 +03:00
|
|
|
}
|