Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[BACKLOG-20163] Mavenize pentaho-commons-gwt
  • Loading branch information
hbfernandes committed Dec 5, 2017
1 parent a29d13d commit d049fe1
Show file tree
Hide file tree
Showing 1,763 changed files with 8,345 additions and 12,184 deletions.
25 changes: 14 additions & 11 deletions .gitignore
@@ -1,12 +1,15 @@
.DS_Store

.project
.classpath
.settings
build
target
release.properties
pom.xml.releaseBackup
*.iml
.idea/

test-lib/
war/
bin/
dev-lib/
dist/

package-pom.xml
.idea
bin
*.class
*.jar
*.war
*.ear
.DS_Store
20 changes: 9 additions & 11 deletions pentaho-gwt-widgets/lgpl-2.1.txt → LICENSE.txt
Expand Up @@ -111,7 +111,7 @@ modification follow. Pay close attention to the difference between a
"work based on the library" and a "work that uses the library". The
former contains code derived from the library, whereas the latter must
be combined with the library in order to run.

GNU LESSER GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION

Expand Down Expand Up @@ -146,7 +146,7 @@ such a program is covered only if its contents constitute a work based
on the Library (independent of the use of the Library in a tool for
writing it). Whether that is true depends on what the Library does
and what the program that uses the Library does.

1. You may copy and distribute verbatim copies of the Library's
complete source code as you receive it, in any medium, provided that
you conspicuously and appropriately publish on each copy an
Expand All @@ -158,7 +158,7 @@ Library.
You may charge a fee for the physical act of transferring a copy,
and you may at your option offer warranty protection in exchange for a
fee.

2. You may modify your copy or copies of the Library or any portion
of it, thus forming a work based on the Library, and copy and
distribute such modifications or work under the terms of Section 1
Expand Down Expand Up @@ -216,7 +216,7 @@ instead of to this License. (If a newer version than version 2 of the
ordinary GNU General Public License has appeared, then you can specify
that version instead if you wish.) Do not make any other change in
these notices.

Once this change is made in a given copy, it is irreversible for
that copy, so the ordinary GNU General Public License applies to all
subsequent copies and derivative works made from that copy.
Expand Down Expand Up @@ -267,7 +267,7 @@ Library will still fall under Section 6.)
distribute the object code for the work under the terms of Section 6.
Any executables containing that work also fall under Section 6,
whether or not they are linked directly with the Library itself.

6. As an exception to the Sections above, you may also combine or
link a "work that uses the Library" with the Library to produce a
work containing portions of the Library, and distribute that work
Expand Down Expand Up @@ -329,7 +329,7 @@ restrictions of other proprietary libraries that do not normally
accompany the operating system. Such a contradiction means you cannot
use both them and the Library together in an executable that you
distribute.

7. You may place library facilities that are a work based on the
Library side-by-side in a single library together with other library
facilities not covered by this License, and distribute such a combined
Expand Down Expand Up @@ -370,7 +370,7 @@ subject to these terms and conditions. You may not impose any further
restrictions on the recipients' exercise of the rights granted herein.
You are not responsible for enforcing compliance by third parties with
this License.

11. If, as a consequence of a court judgment or allegation of patent
infringement or for any other reason (not limited to patent issues),
conditions are imposed on you (whether by court order, agreement or
Expand Down Expand Up @@ -422,7 +422,7 @@ conditions either of that version or of any later version published by
the Free Software Foundation. If the Library does not specify a
license version number, you may choose any version ever published by
the Free Software Foundation.

14. If you wish to incorporate parts of the Library into other free
programs whose distribution conditions are incompatible with these,
write to the author to ask for permission. For software which is
Expand Down Expand Up @@ -456,7 +456,7 @@ SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
DAMAGES.

END OF TERMS AND CONDITIONS

How to Apply These Terms to Your New Libraries

If you develop a new library, and you want it to be of the greatest
Expand Down Expand Up @@ -500,5 +500,3 @@ necessary. Here is a sample; alter the names:
Ty Coon, President of Vice

That's all there is to it!


58 changes: 58 additions & 0 deletions README.md
@@ -0,0 +1,58 @@
# Pentaho Commons GWT Modules #
_Common GWT modules to be used and extended by other projects._

#### Pre-requisites for building the project:
* Maven, version 3+
* Java JDK 1.8
* This [settings.xml](https://github.com/pentaho/maven-parent-poms/blob/master/maven-support-files/settings.xml) in your <user-home>/.m2 directory

#### Building it

__Build for nightly/release__

All required profiles are activated by the presence of a property named "release".

```
$ mvn clean install -Drelease
```

This will build, unit test, and package the whole project (all of the sub-modules). The artifact will be generated in: ```target```

__Build for CI/dev__

The `release` builds will compile the source for production (meaning potential obfuscation and/or uglification). To build without that happening, just eliminate the `release` property.

```
$ mvn clean install
```

#### Running the tests

__Unit tests__

This will run all tests in the project (and sub-modules).
```
$ mvn test
```

If you want to remote debug a single java unit test (default port is 5005):
```
$ cd core
$ mvn test -Dtest=<<YourTest>> -Dmaven.surefire.debug
```

__Integration tests__
In addition to the unit tests, there are integration tests in the core project.
```
$ mvn verify -DrunITs
```

To run a single integration test:
```
$ mvn verify -DrunITs -Dit.test=<<YourIT>>
```

To run a single integration test in debug mode (for remote debugging in an IDE) on the default port of 5005:
```
$ mvn verify -DrunITs -Dit.test=<<YourIT>> -Dmaven.failsafe.debug
```
20 changes: 20 additions & 0 deletions assemblies/pom.xml
@@ -0,0 +1,20 @@
<?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>

<artifactId>commons-gwt-assemblies</artifactId>
<packaging>pom</packaging>

<parent>
<groupId>org.pentaho</groupId>
<artifactId>commons-gwt</artifactId>
<version>8.1.0.0-SNAPSHOT</version>
</parent>

<name>Pentaho Commons GWT Assemblies</name>

<modules>
<module>widgets</module>
</modules>
</project>
86 changes: 86 additions & 0 deletions assemblies/widgets/pom.xml
@@ -0,0 +1,86 @@
<?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>

<artifactId>commons-gwt-widgets-package</artifactId>
<packaging>war</packaging>

<parent>
<groupId>org.pentaho</groupId>
<artifactId>commons-gwt-assemblies</artifactId>
<version>8.1.0.0-SNAPSHOT</version>
</parent>

<name>Pentaho Commons GWT Widgets Package</name>

<dependencies>
<dependency>
<groupId>org.pentaho</groupId>
<artifactId>commons-gwt-widgets</artifactId>
<version>${project.version}</version>
</dependency>

<dependency>
<groupId>org.pentaho</groupId>
<artifactId>commons-gwt-widgets</artifactId>
<version>${project.version}</version>
<classifier>sources</classifier>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.google.code.gwtx</groupId>
<artifactId>gwtx</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>javax.validation</groupId>
<artifactId>validation-api</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>javax.validation</groupId>
<artifactId>validation-api</artifactId>
<classifier>sources</classifier>
<scope>provided</scope>
</dependency>
</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>gwt-maven-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>compile</goal>
</goals>
</execution>
</executions>
<configuration>
<modules>
<module>org.pentaho.gwt.widgets.Widgets</module>
<module>org.pentaho.gwt.widgets.client.filechooser.FileChooser</module>
<module>org.pentaho.gwt.widgets.client.formatter.JSTextFormatter</module>
<module>org.pentaho.mantle.SchedulingDialogs</module>
</modules>
</configuration>
</plugin>
</plugins>
</build>

<profiles>
<profile>
<id>development</id>
<activation>
<property>
<name>!release</name>
</property>
</activation>
<properties>
<gwt.style>PRETTY</gwt.style>
</properties>
</profile>
</profiles>
</project>
10 changes: 0 additions & 10 deletions pentaho-gwt-widgets-sample/.classpath

This file was deleted.

15 changes: 0 additions & 15 deletions pentaho-gwt-widgets-sample/.project

This file was deleted.

1 change: 0 additions & 1 deletion pentaho-gwt-widgets-sample/WidgetsSample-compile.cmd

This file was deleted.

1 change: 0 additions & 1 deletion pentaho-gwt-widgets-sample/WidgetsSample-shell.cmd

This file was deleted.

23 changes: 0 additions & 23 deletions pentaho-gwt-widgets-sample/WidgetsSample.launch

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed pentaho-gwt-widgets-sample/lib/gwt/gwt-ll.dll
Binary file not shown.

0 comments on commit d049fe1

Please sign in to comment.