Package com.diffplug.gradle.oomph
Class ConventionJdt
java.lang.Object
com.diffplug.gradle.oomph.OomphConvention
com.diffplug.gradle.oomph.ConventionJdt
- All Implemented Interfaces:
AutoCloseable
Adding the JDT convention to your project
adds the following features:
- `org.eclipse.platform.ide`
- `org.eclipse.jdt`
- `org.eclipse.ui.views.log`
You can set the installed JRE as follows:
```gradle
oomphIde {
jdt {
installedJre {
version = '1.6.0_45'
installedLocation = new File('C:/jdk1.6.0_45')
markDefault = true // or false
executionEnvironments = ['JavaSE-1.6'] // any execution environments can be specified here.
}
compilerComplianceLevel('1.6')
classpathVariable('myClasspath', '/var/lib/repo')
}
}
```
-
Field Summary
Fields inherited from class com.diffplug.gradle.oomph.OomphConvention
extension -
Method Summary
Modifier and TypeMethodDescriptionvoidclasspathVariable(String name, String value) Adds a compiler class path variable.voidclose()This is called when the convention block ends.voidcompilerComplianceLevel(String compilerComplianceLevel) Sets default compliance levelvoidinstalledJre(Action<InstalledJre> action) Adds an installed JRE with the given content.Methods inherited from class com.diffplug.gradle.oomph.OomphConvention
configure, requireIUs, setPerspectiveOver
-
Method Details
-
installedJre
Adds an installed JRE with the given content. -
compilerComplianceLevel
Sets default compliance level -
classpathVariable
Adds a compiler class path variable. -
close
public void close()Description copied from class:OomphConventionThis is called when the convention block ends. Usually it can just be empty, but if you've been accumulating values, this is your chance to smush them down into a setup action (seeConventionJdt.- Specified by:
closein interfaceAutoCloseable- Overrides:
closein classOomphConvention
-