2020-09-02 08:29:17 -04:00
|
|
|
/*
|
|
|
|
* Licensed to the Apache Software Foundation (ASF) under one or more
|
|
|
|
* contributor license agreements. See the NOTICE file distributed with
|
|
|
|
* this work for additional information regarding copyright ownership.
|
|
|
|
* The ASF licenses this file to You under the Apache License, Version 2.0
|
|
|
|
* (the "License"); you may not use this file except in compliance with
|
|
|
|
* the License. You may obtain a copy of the License at
|
|
|
|
*
|
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
*
|
|
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
* See the License for the specific language governing permissions and
|
|
|
|
* limitations under the License.
|
|
|
|
*/
|
|
|
|
|
2020-09-02 13:54:55 -04:00
|
|
|
plugins {
|
|
|
|
id 'java-library'
|
2024-06-17 03:49:21 -04:00
|
|
|
alias(deps.plugins.spotless) apply false
|
|
|
|
alias(deps.plugins.forbiddenapis) apply false
|
|
|
|
}
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
2020-09-02 13:54:55 -04:00
|
|
|
}
|
2020-09-02 08:29:17 -04:00
|
|
|
|
|
|
|
version = "1.0.0-SNAPSHOT"
|
|
|
|
group = "org.apache.lucene.tools"
|
2020-09-02 13:54:55 -04:00
|
|
|
description = 'Doclet-based javadoc validation'
|
|
|
|
|
2024-06-17 03:49:21 -04:00
|
|
|
// Make sure the build environment is consistent.
|
|
|
|
apply from: file('../../gradle/conventions.gradle')
|
|
|
|
apply from: file('../../gradle/validation/check-environment.gradle')
|
|
|
|
|
|
|
|
// Add spotless/ tidy.
|
|
|
|
tasks.register("checkJdkInternalsExportedToGradle") {}
|
|
|
|
apply from: file('../../gradle/validation/spotless.gradle')
|
|
|
|
apply from: file('../../gradle/validation/forbidden-apis.gradle')
|
|
|
|
|
|
|
|
java {
|
|
|
|
sourceCompatibility = JavaVersion.toVersion(deps.versions.minJava.get())
|
|
|
|
targetCompatibility = JavaVersion.toVersion(deps.versions.minJava.get())
|
|
|
|
}
|
2020-09-02 13:54:55 -04:00
|
|
|
|
2024-06-17 03:49:21 -04:00
|
|
|
tasks.withType(JavaCompile).configureEach {
|
|
|
|
options.compilerArgs += ["--release", java.targetCompatibility.toString()]
|
2020-09-02 13:54:55 -04:00
|
|
|
options.encoding = "UTF-8"
|
|
|
|
}
|