Create war file with gradle
Hi
What I want to do is to build a war file from the swf and wrapper files I created with your gradlefx plugin. I could already build the swf successfully and now I want to package it into a war file with the war plug-in.
The first few lines in my build.gradle look like this:
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath group: 'org.gradlefx', name: 'gradlefx', version: '0.4.2'
}
}
apply plugin: 'gradlefx'
apply plugin: 'eclipse'
apply plugin: 'maven'
apply plugin: 'war'
I build with gradle milestone 8.
When I want to build it with this plugin (war), then I got the
following error:
Cannot add task ':MyProject:build' as a task with that name already exists.
Is my project setup wrong for gradlefx ?
regards
Michael
Comments are currently closed for this discussion. You can start a new one.
Keyboard shortcuts
Generic
| ? | Show this help |
|---|---|
| ESC | Blurs the current field |
Comment Form
| r | Focus the comment reply box |
|---|---|
| ^ + ↩ | Submit the comment |
You can use Command ⌘ instead of Control ^ on Mac
Support Staff 1 Posted by Yennick Trevels on 08 Apr, 2012 10:26 AM
hi,
I would create a seperate project for the war.
Take a look at the flex-java-war project in the gradlefx-examples repo on
github, it shows how to package a flex and java project into a war.
2 Posted by create a war on 08 Apr, 2012 10:32 AM
Tanks for the quick answer. I'll do that :)
regards
Michael
Yennick Trevels closed this discussion on 15 Apr, 2012 02:12 PM.