I am using gradle as project dependency manager but since I like netbeans better and can’t find a native integration with maven, I copy the default pom generated by gradle as the pom.xml. But How do I set the source and target level?
my build.gradle looks like
apply plugin: 'eclipse'
apply plugin: 'maven'
apply plugin: 'java'
targetCompatibility=1.6
sourceCompatibility=1.6
after I run
gradle install
and check the build/poms/pom-default.xml it never configures the source nor target level which is defaulted to 1.3
what I am lacking is maven compiler plugin configuration
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.6</source>
<target>1.6</target>
<encoding>UTF-8</encoding>
</configuration>
</plugin>
and haven’t been able to find how to configure that specific part of the pom. I’ve found all the examples where they configure license, developer stuff and so on but not the plugin specif.
You can add that section in the very same way as the examples do it for “license and developer stuff”.