Questions:
1) Can I use Mule(3.7) application with Gradle, is it fully supported?
2) Continuous Integration runs with Gradle and Jenkins for other non Mule based applications in our organization, can I have local Maven build with Anypoint studio and CI with Gradle? Is there any issues with this kind of configuration, since Mule is well built with Maven build tool?
I have gone through the Gradle plugin for Mule here
Yes, you can use it but it is not a MuleSoft officially supported tool. Here is the link to the GitHub project. The problem with using two different build tools is that the configuration will probably get out of sync at some point. Anypoint Studio doesn't provide a very complete Maven support anyway, so you could just use Gradle and update Studio dependencies manually or try using an Eclipse Gradle plugin. This can still be out of sync, but will have to maintain only Gradle config.
Related
I'm trying to build a CI pipeline for a Kotlin project developed on Android Studio. Using Azure DevOps pipelines.
I'm having an issue finding a Kotlin plugin or Tasks for the pipeline as we can see in the picture.
Anyone have an idea about how can we implement this type of pipeline? I didn't find anything on the internet and Microsoft have no documentation.
If I understand correctly the answer you are looking for is the Gradle task. Here is a blog from someone using gradle and in azure devops with their Kotlin code. But I am sure there are more details around how to set up gradle task for kotlin build.
The issue was not with Kotlin or Java. The issue was with the SDK being used on the Hosting Agent.
The solution was the following steps:
Upload a SDK to Azure Blob Storage
Use the Use Java Task in order to install the specified SDK
Run the Android Pipeline with Sonarqube tasks, build was successfully run and SonarQube Code Review was successfully executed.
I want to debug through my code that contains mule and various XML files in Intellij. I was hoping to know if there was a Plugin for the same.
Use Mule-intellij Plugin
Reference Urls:
https://plugins.jetbrains.com/plugin/8212?pr=
https://github.com/machaval/mule-intellij-plugins
https://forums.mulesoft.com/questions/1777/moving-from-mule-studio-to-intellij.html
My entire project coupled with both Front end application and with Mule - maven based( I suppose to work both with Intellij and also Anypoint).Each and every application have its own POM. When i work with individual Mule application, will import apps as maven based. Anypoint studio is best to work on Mule interfaces compare to Intellij.
When it comes to front end application, used Intellij.
When working on very large project ( both front end and Mule) if you try to import entire project in Anypoint- It hangs. Those cases Intellij is best to import as Module( easy search, code monitor with Jira history etc).
I switch Intellij and Mule studio case by case.
After Installing Mule-intelij plugin. Could see Mule configuration xml marked as 'M'. Easy to run as Maven project and also Junit test cases.
I have installed old version of plugin where I can only debug Mule-Java application( not Mule configurable xml).Ctr+tab will show all the options as like AnyPoint. But you cant see Mule GUI or Drag and Drop feature here.
In the above mentioned first URL, new plugin version shows debug point in Mule configuration example. You can give it a go.
In my company, I have plans to introduce Web Automation using Selenium WebDriver and Cucumber JVM using Maven builds.
Since the developers write their code in C#, they are all using TFS for source code repository and recommending the QA team also to use TFS to maintain my tests written in JAVA.
These are the questions I have got in my mind:
QA team will use IntelliJ IDE for writing Selenium tests in JAVA. Is IntelliJ compatible with TFS? Or is it a pain to configure it to work with TFS?
As we will move towards TDD very soon, we have to setup CI server as well.
Is it possible for me to run Selenium Tests triggered from TFS or do I need to use a separate CI server like Jenkins or Teamcity?
Does maven build work smoothly with TFS?
We have to adhere to stringent ISO guidelines for maintaining the source code. If I were to recommend source code repositories like github, can I ensure that the code is still secure? Is it difficult to setup the security in github?
Answering your questions regarding TFS:
IntelliJ IDEA supports TFS up to TFS 2015. Check:
Visual Studio Team Foundation Plugin for IntelliJ and Android Studio
Using TFS Integration
TFS supports CI build. After you've deployed a Windows build agent or an Xplat build agent, you are ready to define a CI build that compiles your Java app with Maven whenever your team checks in code.
Yes. Check:
Build your Java app with Maven
Is there's a way I can mavenize IBM Worklight adapters build rather than using ANT ? Benefit i get from this is i need not require to install IBM worklight on my build server as well as for development.
If not maven then do we have any other way to achieve this ?
WL doesn't have maven support. This said, you can integrate ANT tool WL provides in your maven build. You don't need the whole WL installed on your build server, just ANT runtime and ANT tool jar provided by WL. From there on - http://maven.apache.org/plugins/maven-antrun-plugin/
I am trying to build a project with gradle from within Intellij Idea 12 (commercial editon) but this keeps failing. I have the gradle plugin enabled and also the gradle gui plugin. The native project gradle import is working. (I'm not using gradle idea btw.)
When using the bash I only run gradle war to build my web application. Now I want to do the same from within Intellij.
The gradle gui plugin seems to be using the wrong JDK (I guess it's the one Idea uses, a 1.6 JDK) and therefor fails to compile because this is a JDK 1.7 project. And it doesn't integrate well into Idea because it seems like an external build process (like triggering external ant tasks).
What I have done so far is to configure my own artifact in a way that is equivalent to the one gradle war would have build. But that means a lot of configuration and simply feels wrong. There should be a better way?
So what do I have to do to make Idea compile a project in a way similar to the command line gradle task?
JetGradle plugin doesn't provide native tasks support at the moment. It's scheduled for v.12.1 - IDEA-95897. Feel free to track the plugin's news and update it manually as soon as corresponding support is provided.