1 /* 2 * Copyright (C) 2022 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 <lambda>null17plugins { 18 // Apply the java Plugin to add support for Java. 19 java 20 } 21 <lambda>null22repositories { 23 mavenCentral() 24 google() 25 } 26 <lambda>null27dependencies { 28 implementation("org.antlr:antlr:3.5.2") 29 implementation("com.google.jsilver:jsilver:1.0.0") 30 implementation("org.ccil.cowan.tagsoup:tagsoup:1.2.1") 31 32 testImplementation("org.junit.jupiter:junit-jupiter:5.7.1") 33 testCompileOnly("junit:junit:4.13.2") 34 testRuntimeOnly("org.junit.vintage:junit-vintage-engine") 35 } 36 <lambda>null37tasks.named<Test>("test") { 38 useJUnitPlatform { 39 includeEngines("junit-vintage") 40 } 41 } 42 <lambda>null43tasks.withType<JavaCompile>() { 44 options.isWarnings = false 45 } 46