Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7630945
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T06:13:38+00:00 2026-05-31T06:13:38+00:00

I am using gradle as project dependency manager but since I like netbeans better

  • 0

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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T06:13:39+00:00Added an answer on May 31, 2026 at 6:13 am

    You can add that section in the very same way as the examples do it for “license and developer stuff”.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

When specifying Gradle project dependencies, can I avoid using a full absolute project name
I've recently started using Gradle and replacing my existing Maven-based projects. I have had
I've tried to configure a gaelyk project in eclipse using the gradle script of
The project is using Maven so the POM files are the main sources of
I have a small Java/Gradle project. I'm using the Application plugin to create a
I have a multi project in maven like this: paren-project -> plugin-project -> testbed-project
I have a jar dependency for the build.gradle file itself. I'm using this definition:
I feel like I am missing something obvious here, but I can't seem to
It works with ear file we build with Maven. Using Gradle, I have an
I have a project using Gradle as the build tool and I have to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.