Is there a way to use Gradle API within a Maven build Environment?Gradle build without testsMaven: best way of linking custom external JAR to my project?IntelliJ inspection gives “Cannot resolve symbol” but still compiles codeIntelliJ - Convert a Java project/module into a Maven project/moduleDealing with “Xerces hell” in Java/Maven?How to build an android library with Android Studio and gradle?Gradle setupBuild not converting maven pom.xml fileMaven | How can I use build-helper-maven-plugin in Gradle?Dependency jars versions different in maven and gradle buildHow can I build a Maven project, as a dependency to the root project, with Gradle?

What if a revenant (monster) gains fire resistance?

When were female captains banned from Starfleet?

What if you are holding an Iron Flask with a demon inside and walk into Antimagic Field?

Can I say "fingers" when referring to toes?

What should you do if you miss a job interview (deliberately)?

Can a college of swords bard use blade flourish on an OA from dissonant whispers?

What are the balance implications behind making invisible things auto-hide?

Why did the EU agree to delay the Brexit deadline?

Why can Carol Danvers change her suit colours in the first place?

What is the highest possible scrabble score for placing a single tile

Fear of getting stuck on one programming language / technology that is not used in my country

Using substitution ciphers to generate new alphabets in a novel

Is this toilet slogan correct usage of the English language?

Why "had" in "[something] we would have made had we used [something]"?

Do the primes contain an infinite almost arithmetic progression?

Pre-mixing cryogenic fuels and using only one fuel tank

Mixing PEX brands

How does a computer interpret real numbers?

Lowest total scrabble score

An unused reference in research paper

Why does the Sun have different day lengths, but not the gas giants?

Creepy dinosaur pc game identification

PTIJ: Haman's bad computer

Biological Blimps: Propulsion



Is there a way to use Gradle API within a Maven build Environment?


Gradle build without testsMaven: best way of linking custom external JAR to my project?IntelliJ inspection gives “Cannot resolve symbol” but still compiles codeIntelliJ - Convert a Java project/module into a Maven project/moduleDealing with “Xerces hell” in Java/Maven?How to build an android library with Android Studio and gradle?Gradle setupBuild not converting maven pom.xml fileMaven | How can I use build-helper-maven-plugin in Gradle?Dependency jars versions different in maven and gradle buildHow can I build a Maven project, as a dependency to the root project, with Gradle?













0















I'm building a maven project that retrieves the dependency lists from other gradle projects. ( using java. not the mvn console)



I want to use getDependencies() function from Gradle API like below.



import org.gradle.api.artifacts.Configuration;
import org.gradle.api.artifacts.dsl.DependencyHandler;

DependencyHandler dependencies = project.getDependencies();


But it looks like Gradle API can be used only in Gradle build environments.



I added gradle-core in my pom.xml like below but it doesn't seem to have the api's I need to retireve the dependencies



<dependency>
<groupId>org.gradle</groupId>
<artifactId>gradle-core</artifactId>
<version>2.2.1</version>
</dependency>


Is there a way to use Gradle API within a Maven build Environment?










share|improve this question
























  • Where exactly do you want to read dependencies? Inside a Java programm? Inside a Maven plugin?

    – JF Meier
    Mar 7 at 7:38











  • @JFMeier I want to read dependencies inside a Java program~

    – youngeun
    Mar 8 at 2:37











  • From where do you read the gradle projects? From git? From a maven repository?

    – JF Meier
    Mar 8 at 8:38















0















I'm building a maven project that retrieves the dependency lists from other gradle projects. ( using java. not the mvn console)



I want to use getDependencies() function from Gradle API like below.



import org.gradle.api.artifacts.Configuration;
import org.gradle.api.artifacts.dsl.DependencyHandler;

DependencyHandler dependencies = project.getDependencies();


But it looks like Gradle API can be used only in Gradle build environments.



I added gradle-core in my pom.xml like below but it doesn't seem to have the api's I need to retireve the dependencies



<dependency>
<groupId>org.gradle</groupId>
<artifactId>gradle-core</artifactId>
<version>2.2.1</version>
</dependency>


Is there a way to use Gradle API within a Maven build Environment?










share|improve this question
























  • Where exactly do you want to read dependencies? Inside a Java programm? Inside a Maven plugin?

    – JF Meier
    Mar 7 at 7:38











  • @JFMeier I want to read dependencies inside a Java program~

    – youngeun
    Mar 8 at 2:37











  • From where do you read the gradle projects? From git? From a maven repository?

    – JF Meier
    Mar 8 at 8:38













0












0








0


2






I'm building a maven project that retrieves the dependency lists from other gradle projects. ( using java. not the mvn console)



I want to use getDependencies() function from Gradle API like below.



import org.gradle.api.artifacts.Configuration;
import org.gradle.api.artifacts.dsl.DependencyHandler;

DependencyHandler dependencies = project.getDependencies();


But it looks like Gradle API can be used only in Gradle build environments.



I added gradle-core in my pom.xml like below but it doesn't seem to have the api's I need to retireve the dependencies



<dependency>
<groupId>org.gradle</groupId>
<artifactId>gradle-core</artifactId>
<version>2.2.1</version>
</dependency>


Is there a way to use Gradle API within a Maven build Environment?










share|improve this question
















I'm building a maven project that retrieves the dependency lists from other gradle projects. ( using java. not the mvn console)



I want to use getDependencies() function from Gradle API like below.



import org.gradle.api.artifacts.Configuration;
import org.gradle.api.artifacts.dsl.DependencyHandler;

DependencyHandler dependencies = project.getDependencies();


But it looks like Gradle API can be used only in Gradle build environments.



I added gradle-core in my pom.xml like below but it doesn't seem to have the api's I need to retireve the dependencies



<dependency>
<groupId>org.gradle</groupId>
<artifactId>gradle-core</artifactId>
<version>2.2.1</version>
</dependency>


Is there a way to use Gradle API within a Maven build Environment?







java maven gradle






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 7 at 6:24







youngeun

















asked Mar 7 at 6:16









youngeunyoungeun

363




363












  • Where exactly do you want to read dependencies? Inside a Java programm? Inside a Maven plugin?

    – JF Meier
    Mar 7 at 7:38











  • @JFMeier I want to read dependencies inside a Java program~

    – youngeun
    Mar 8 at 2:37











  • From where do you read the gradle projects? From git? From a maven repository?

    – JF Meier
    Mar 8 at 8:38

















  • Where exactly do you want to read dependencies? Inside a Java programm? Inside a Maven plugin?

    – JF Meier
    Mar 7 at 7:38











  • @JFMeier I want to read dependencies inside a Java program~

    – youngeun
    Mar 8 at 2:37











  • From where do you read the gradle projects? From git? From a maven repository?

    – JF Meier
    Mar 8 at 8:38
















Where exactly do you want to read dependencies? Inside a Java programm? Inside a Maven plugin?

– JF Meier
Mar 7 at 7:38





Where exactly do you want to read dependencies? Inside a Java programm? Inside a Maven plugin?

– JF Meier
Mar 7 at 7:38













@JFMeier I want to read dependencies inside a Java program~

– youngeun
Mar 8 at 2:37





@JFMeier I want to read dependencies inside a Java program~

– youngeun
Mar 8 at 2:37













From where do you read the gradle projects? From git? From a maven repository?

– JF Meier
Mar 8 at 8:38





From where do you read the gradle projects? From git? From a maven repository?

– JF Meier
Mar 8 at 8:38












0






active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55037199%2fis-there-a-way-to-use-gradle-api-within-a-maven-build-environment%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes















draft saved

draft discarded
















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55037199%2fis-there-a-way-to-use-gradle-api-within-a-maven-build-environment%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

AWS Lex not identifying response if by a variable The 2019 Stack Overflow Developer Survey Results Are In Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern) The Ask Question Wizard is Live! Data science time! April 2019 and salary with experienceEnforcing custom enumeration in AWS LEX for slot valuesHow to give response based on user response in Amazon Lex?Intercepting AWS Lambda Response to a AWS Lex QueryLex chat bot error: Reached second execution of fulfillment lambda on the same utteranceamazon lex showing invalid responseLambda response send back to Lex slot?Response card in Amazon lexAmazon Lex - Lambda response return HTML to botHow can I solve 424 (Failed Dependency) (python) obtained from Amazon lex?

Алба-Юлія

Захаров Федір Захарович