2020-03-03 18:44:54 +00:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
|
|
|
|
apply plugin: 'java-library'
|
|
|
|
apply plugin: 'kotlin'
|
|
|
|
|
2023-05-22 12:18:26 +00:00
|
|
|
targetCompatibility = JavaVersion.VERSION_17
|
|
|
|
sourceCompatibility = JavaVersion.VERSION_17
|
2020-03-03 18:44:54 +00:00
|
|
|
|
2021-07-22 15:16:52 +00:00
|
|
|
repositories {
|
|
|
|
if (project.hasProperty("centralRepo")) {
|
|
|
|
maven {
|
|
|
|
name "MavenCentral"
|
|
|
|
url project.property("centralRepo")
|
2021-07-22 16:28:06 +00:00
|
|
|
allowInsecureProtocol true // Local Nexus in CI uses HTTP
|
2021-07-22 15:16:52 +00:00
|
|
|
}
|
|
|
|
} else {
|
|
|
|
mavenCentral()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-03-03 18:44:54 +00:00
|
|
|
dependencies {
|
2023-06-21 16:19:45 +00:00
|
|
|
compileOnly "com.android.tools.lint:lint-api:${Versions.lint}"
|
|
|
|
compileOnly "com.android.tools.lint:lint-checks:${Versions.lint}"
|
2020-10-17 00:41:08 +00:00
|
|
|
|
2021-07-22 15:16:52 +00:00
|
|
|
testImplementation "junit:junit:4.13.2"
|
2023-06-21 16:19:45 +00:00
|
|
|
testImplementation "com.android.tools.lint:lint:${Versions.lint}"
|
|
|
|
testImplementation "com.android.tools.lint:lint-tests:${Versions.lint}"
|
2020-03-03 18:44:54 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
jar {
|
|
|
|
manifest {
|
|
|
|
attributes('Lint-Registry-v2': 'org.mozilla.fenix.lintrules.LintIssueRegistry')
|
|
|
|
}
|
|
|
|
}
|