Java Code Examples for org.gradle.api.internal.tasks.compile.DefaultJavaCompileSpec#setTargetCompatibility()
The following examples show how to use
org.gradle.api.internal.tasks.compile.DefaultJavaCompileSpec#setTargetCompatibility() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: JavaCompile.java From pushfish-android with BSD 2-Clause "Simplified" License | 5 votes |
private DefaultJavaCompileSpec createSpec() { DefaultJavaCompileSpec spec = new DefaultJavaCompileSpec(); spec.setSource(getSource()); spec.setDestinationDir(getDestinationDir()); spec.setWorkingDir(getProject().getProjectDir()); spec.setTempDir(getTemporaryDir()); spec.setClasspath(getClasspath()); spec.setDependencyCacheDir(getDependencyCacheDir()); spec.setTargetCompatibility(getTargetCompatibility()); spec.setSourceCompatibility(getSourceCompatibility()); spec.setCompileOptions(compileOptions); return spec; }
Example 2
Source File: JavaCompile.java From javaide with GNU General Public License v3.0 | 5 votes |
private DefaultJavaCompileSpec createSpec() { final DefaultJavaCompileSpec spec = new DefaultJavaCompileSpecFactory(compileOptions).create(); spec.setDestinationDir(getDestinationDir()); spec.setWorkingDir(getProject().getProjectDir()); spec.setTempDir(getTemporaryDir()); spec.setCompileClasspath(ImmutableList.copyOf(getClasspath())); spec.setAnnotationProcessorPath(ImmutableList.copyOf(getEffectiveAnnotationProcessorPath())); spec.setTargetCompatibility(getTargetCompatibility()); spec.setSourceCompatibility(getSourceCompatibility()); spec.setCompileOptions(compileOptions); return spec; }
Example 3
Source File: JavaCompile.java From Pushjet-Android with BSD 2-Clause "Simplified" License | 5 votes |
private DefaultJavaCompileSpec createSpec() { DefaultJavaCompileSpec spec = new DefaultJavaCompileSpec(); spec.setSource(getSource()); spec.setDestinationDir(getDestinationDir()); spec.setWorkingDir(getProject().getProjectDir()); spec.setTempDir(getTemporaryDir()); spec.setClasspath(getClasspath()); spec.setDependencyCacheDir(getDependencyCacheDir()); spec.setTargetCompatibility(getTargetCompatibility()); spec.setSourceCompatibility(getSourceCompatibility()); spec.setCompileOptions(compileOptions); return spec; }