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?
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
add a comment |
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
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
add a comment |
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
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
java maven gradle
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
add a comment |
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
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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