Japanese translation of the comments in build.gradle.
build.gradle
This build file is a file generated by the gradle init
task.
This file is a commented out sample of a Java project. See Java Quickstart in the Gradle user guide for details.
apply plugin Apply a plugin that adds Java support.
apply plugin: 'java'
repositories This section declares the source of the project's dependent libraries.
Get the dependent libraries from jcenter
.
You can declare a Maven / Ivy / file repository.
repositories {
jcenter()
}
This section declares dependent libraries for production and test code.
dependencies {
compile 'org.slf4j:slf4j-api:1.7.25'
testCompile 'junit:junit:4.12'
}
compile Use the SLF4J logging API when compiling your production code.
testCompile
Declare the test framework to use for testing. In the gradle test
task
It also supports TestNG.
Change the dependency information for testCompile
to testCompile'org.testng: testng: 6.8.1'
You can apply it by simply adding test.useTestNG ()
to your build script.
Recommended Posts