Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated to support dw 2.2 #6

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 51 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# ------------------------------------------------------------------------------ #
# Java defaults (https://github.com/github/gitignore/blob/master/Java.gitignore) #
# ------------------------------------------------------------------------------ #
*.class

# Package Files #
#*.jar
*.war
*.ear

# ------------------------------------------------------------------------------------------- #
# Eclipse-specific (https://github.com/github/gitignore/blob/master/Global/Eclipse.gitignore) #
# ------------------------------------------------------------------------------------------- #
*.pydevproject
.metadata
.tooling
.tooling-apps-cache
bin/**
tmp/**
tmp/**/*
*.tmp
*.bak
*.swp
*~.nib
local.properties
.settings/
.loadpath
.project
.classpath

# External tool builders
.externalToolBuilders/

# Locally stored "Eclipse launch configurations"
*.launch

# CDT-specific
.cproject

# PDT-specific
.buildpath

# --------------- #
# Studio-specific #
# --------------- #
target/
.mule/**
.mule/**/*
.DS_Store
velocity.log
application-types.xml
16 changes: 15 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Is a tool for quick and easy development of DataWeave scripts

* Save and Open DataWeave Playground projects (**.dwp** files), to not loose the progress of your transformations.
* Able to quickly modify your input data selecting the correspondent mimeType and see instantly the result of your transformation.
* Supports Dataweave 2.x(tested upto dw 2.2)

### Missing Features
* Code areas with highlighting
Expand All @@ -23,4 +24,17 @@ Is a tool for quick and easy development of DataWeave scripts

To run the DataWeave Playground using maven, execute the following command:

```mvn exec:java -Dexec.mainClass="com.github.estebanwasinger.DWPlayground"```
```
mvn exec:java -Dexec.mainClass="com.github.estebanwasinger.DWPlayground"
```

## How to generate a runnable jar to use directly

* This runnable jar can be generated once and used multiple times
* To generate runnable jar, execute the following command:

```
mvn clean package
```
* dataweave-playground-1.0-SNAPSHOT-runnable.jar will be generated under /target folder
* Directly run dataweave-playground-1.0-SNAPSHOT-runnable.jar and use dataweave playground for developing DataWeave scripts.
Binary file modified images/playground.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
173 changes: 83 additions & 90 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -1,91 +1,84 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>com.github.estebanwasinger</groupId>
<artifactId>weave-playground</artifactId>
<version>1.0-SNAPSHOT</version>

<properties>
<mule-version>4.1.2</mule-version>
</properties>

<dependencies>

<dependency>
<groupId>org.mule.services</groupId>
<artifactId>mule-service-weave</artifactId>
<version>2.1.3</version>
<classifier>mule-service</classifier>
</dependency>

<dependency>
<groupId>org.mule.runtime</groupId>
<artifactId>mule-core</artifactId>
<version>${mule-version}</version>
<exclusions>
<exclusion>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-slf4j-impl</artifactId>
</exclusion>
</exclusions>
</dependency>

<dependency>
<groupId>org.fxmisc.richtext</groupId>
<artifactId>richtextfx</artifactId>
<version>0.7-M5</version>
</dependency>

</dependencies>
<build>
<plugins>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
<archive>
<manifest>
<mainClass>com.github.estebanwasinger.DWPlayground</mainClass>
</manifest>
</archive>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
</configuration>
<executions>
<execution>
<id>make-assembly</id> <!-- this is used for inheritance merges -->
<phase>package</phase> <!-- bind to the packaging phase -->
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
</plugins>
</build>

<repositories>
<repository>
<id>mule-releases</id>
<name>Mule Releases Repository</name>
<url>https://repository-master.mulesoft.org/nexus/content/repositories/releases/</url>
</repository>
<repository>
<id>mule-snapshots</id>
<name>Mule Snapshots Repository</name>
<url>https://repository-master.mulesoft.org/nexus/content/repositories/snapshots/</url>
</repository>
</repositories>

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>com.github.estebanwasinger</groupId>
<artifactId>dataweave-playground</artifactId>
<version>1.0-SNAPSHOT</version>

<properties>
<mule-version>4.2.1</mule-version>
</properties>

<dependencies>

<dependency>
<groupId>org.mule.services</groupId>
<artifactId>mule-service-weave</artifactId>
<version>2.2.1</version>
<classifier>mule-service</classifier>
</dependency>

<dependency>
<groupId>org.mule.runtime</groupId>
<artifactId>mule-core</artifactId>
<version>${mule-version}</version>
<exclusions>
<exclusion>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-slf4j-impl</artifactId>
</exclusion>
</exclusions>
</dependency>

<dependency>
<groupId>org.fxmisc.richtext</groupId>
<artifactId>richtextfx</artifactId>
<version>0.7-M5</version>
</dependency>

</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>repackage</goal>
</goals>
<configuration>
<classifier>runnable</classifier>
<mainClass>com.github.estebanwasinger.DWPlayground</mainClass>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
</plugins>
</build>

<repositories>
<repository>
<id>mule-releases</id>
<name>Mule Releases Repository</name>
<url>https://repository-master.mulesoft.org/nexus/content/repositories/releases/</url>
</repository>
<repository>
<id>mule-snapshots</id>
<name>Mule Snapshots Repository</name>
<url>https://repository-master.mulesoft.org/nexus/content/repositories/snapshots/</url>
</repository>
</repositories>

</project>
Loading