Java Reference
In-Depth Information
attributes 'Main-class' : 'com.somedomainnamehere.data.DataVis' ,
'Implementation-Version' : version
}
}
# optional feature: like - Dtesting = true
true but only when running tests ( "test task" )
test {
systemProperties 'testing' : 'true'
}
You can bootstrap the industry's vast investment in Maven infrastructure by adding lines like
these into your build.gradle :
# Tell it to look in Maven Central
repositories {
mavenCentral()
}
# We need darwinsys-api for compiling as well as JUnit for testing
dependencies {
compile group: 'com.darwinsys', name: 'darwinsys-api', version: '1.0.3+'
testCompile group: 'junit', name: 'junit', version: '4.+'
}
See Also
There is much more functionality in Gradle. Start at Gradle's website , and see the document-
ation .
Dealing with Deprecation Warnings
Problem
Your code used to compile cleanly, but now it gives deprecation warnings.
Solution
You must have blinked. Either live—dangerously—with the warnings, or revise your code to
eliminate them.
Search WWH ::




Custom Search