Comments (11)
Hi Ivan,
Yes, indeed manifest file is processed now during gradle project evaluation phase. This is done so that if for example you want to put an output of another task into .dar file:
<jee.War name="HelloDeployment" file="${artifact(project.war)}" />
then dar
task automatically starts depending on the corresponding output task: war
in this example:
> ./gradlew dar
:compileJava UP-TO-DATE
:processResources UP-TO-DATE
:classes UP-TO-DATE
:war
:dar
If manifest is processed later, e.g. during task execution phase, then it's too late to insert a war
task into task graph.
If you really need to generate your manifest files during gradle execution phase, then I could make this configurable in the dar
task via an extension or task parameter. But then you would need to manually add dependencies, like "dar.dependsOn war
" in my example.
So do you need this evaluateManifestDuringExecutionPhase = true
parameter to be implemented in gradle-xld-plugin
, or did you manage to solve your situation in a different manner?
from gradle-xld-plugin.
Hi Bulat,
Thanks for the explanation. In fact I've solved my problem by Jenkins XLD plugin and some Jenkins jobs, but I don't think it's a good design. I prefer to have all code in the same place.
If you put this task into backlog, it will be very nice.
from gradle-xld-plugin.
@iaon ok, I'll have a look when I have time.
from gradle-xld-plugin.
Thank you!
from gradle-xld-plugin.
Hi,
I ran into the same issue - I was trying to create a Gradle plugin that, among other stuff, would generate the deployit-manifest.xml, because I have a lot of projects that have identical deployit-manifest.xml except for the project name and version
from gradle-xld-plugin.
Hello, indeed i thought it was the main core idea of the plugin ...
When dev develops they don t care to modify the manifest and it is updated automatically .. and with extra luck if we put a determined template to follow during the build it remember the developer that it forget to use token or put some text files with necessary information ....
from gradle-xld-plugin.
Hi everybody, I'll see what I can do to make the deployit-manifest.xml
"generateable".
from gradle-xld-plugin.
Just to clarify - in my case I don't strictly need the deployment manifest to be "generateable", although that would also work, I'm just looking for "shareable"
from gradle-xld-plugin.
@ablaagaard sharing of deployit-manifest.xml
is already possible in current version of the plugin: just configure its location in your build.gradle
(also documented in the README):
xldeploy {
manifest = file('my/shared/deployit-manifest.xml')
}
from gradle-xld-plugin.
@ypersieljp @iaon @ablaagaard I released a new version of the plugin: 0.3.0 with the ability to generate deployit-manifest.xml
.
You can check an example how it's done in this test script. Note however that if the manifest file is generated, the plugin cannot automatically determine if another task generates artifacts for it. So in my example you have to manually specify that dar.dependsOn war
.
Please let me know if this works for you!
from gradle-xld-plugin.
Close inactive issue
from gradle-xld-plugin.
Related Issues (17)
- version of remote-booter HOT 4
- DarTask doAfterEvaluate() does work during configuration and breaks UP-TO-DATE checking HOT 2
- Running Gradle 4.0 causes You cannot add child specs at execution time exception HOT 2
- 5.0 plugin An established connection was aborted by the software in your host machine HOT 1
- Remote boot library 2017.5.0 is not backwards compatable to xl-deploy 6.x HOT 2
- The plugin takes into account the commented part of deployit-manifest.xml and try to execute them HOT 1
- ERROR: Error when importing dar file : Failed to create directory within 10000 attempts (tried 1562589097891-0 to 1562589097891-9999) HOT 1
- Migrate to gradle wrapper 5.x due to java 11 LTS
- Gradle 6.5 warnings in preparation for Gradle 7.0
- Failed to apply plugin in Gradle 7.0 HOT 3
- Deploy Only Task
- Failed to import dar package HOT 13
- Artifact function doesn't support folder HOT 5
- stackoverflow when using 0.2.2 version HOT 4
- deletePreviouslyDeployedDar : No such property HOT 5
- windows MSI deployable support HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gradle-xld-plugin.