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

[37] Convert into a plain Maven module #49

Open
wants to merge 3 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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
9 changes: 5 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,19 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Setup Java SDK
uses: actions/setup-java@v1.4.3
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 17

- name: Maven
run: mvn clean verify -f releng/org.eclipse.sirius.emfjson.releng/pom.xml
run: ./mvnw clean verify -f org.eclipse.sirius.emfjson/pom.xml

- name: Deploy
if: startsWith(github.ref, 'refs/tags/v')
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: mvn deploy -f releng/org.eclipse.sirius.emfjson.releng/pom.xml
run: ./mvnw deploy -f org.eclipse.sirius.emfjson/pom.xml
19 changes: 19 additions & 0 deletions .mvn/wrapper/maven-wrapper.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
wrapperVersion=3.3.2
distributionType=only-script
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.8/apache-maven-3.9.8-bin.zip
3 changes: 1 addition & 2 deletions CONTRIBUTING
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,8 @@ Eclipse Sirius enables the specification of a modeling workbench in terms of
graphical, table or tree editors with validation rules and actions using
declarative descriptions.

* http://www.eclipse.org/sirius
* https://eclipse.dev/sirius
* https://projects.eclipse.org/projects/modeling.sirius
* http://wiki.eclipse.org/Sirius

## Developer resources

Expand Down
20 changes: 5 additions & 15 deletions README.adoc
Original file line number Diff line number Diff line change
@@ -1,31 +1,22 @@
= Eclipse Sirius EMF JSON

This project is part of http://www.eclipse.org/sirius[Eclipse Sirius].
This project is part of https://eclipse.dev/sirius[Eclipse Sirius].
It provides a JSON-based implementation of EMF resources which can be used as a drop-in replacement for the default XMI-based format.

Although it is part of Sirius, this new EMF resource type can actually be used by any EMF-based application as it does not depend on the rest of the Sirius platform (neither Sirius Desktop nor Sirius Web).

== Building

The build uses https://maven.apache.org/[Apache Maven] (version 3.6.3) and http://www.eclipse.org/tycho/[Tycho]. To launch a complete build, issue:
The build uses https://maven.apache.org/[Apache Maven] (version 3.9.8). To launch a complete build, issue:

[source,sh]
----
mvn clean package -f releng/org.eclipse.sirius.emfjson.releng/pom.xml
mvn -f org.eclipse.sirius.emfjson/pom.xml clean package
----

from the top-level directory.

WARNING: Note that you will need to use **Java 11** to run the build. Java 12 and later are currently not supported.

If you are behind a proxy, you may get Maven errors about `checkstyle.org` not being available. In this case you need to explicitly disable CheckStyle from the build:

[source,sh]
----
mvn clean package -f releng/org.eclipse.sirius.emfjson.releng/pom.xml -P\!checkstyle
----

The resulting update-site (p2 repository) can be found in `repositories/org.eclipse.sirius.emfjson.repository/target/repository`.
WARNING: Note that you will need to use **Java 17** or later to run the build.

== Usage

Expand All @@ -37,9 +28,8 @@ For example:
Resource.Factory.Registry.INSTANCE.getExtensionToFactoryMap().put("json", new JsonResourceFactoryImpl());
----

If you are running in the context of the Eclipse Platform, the `org.eclipse.sirius.emfjson.ide` plug-in does this automatically and also registers the corresponding `Content-Type`.
See https://github.com/eclipse-sirius/sirius-web/tree/master/packages/emf/backend/sirius-components-emf[the Sirius Web sources] for concrete usage examples.

See the `org.eclipse.sirius.emfjson.resource.JsonResource` for various options that can be used to control the serialisation/deserialisation process (e.g. whether to pretty-print the JSON).

== License

Expand Down
10 changes: 0 additions & 10 deletions bundles/org.eclipse.sirius.emfjson.ide/.checkstyle

This file was deleted.

7 changes: 0 additions & 7 deletions bundles/org.eclipse.sirius.emfjson.ide/.classpath

This file was deleted.

39 changes: 0 additions & 39 deletions bundles/org.eclipse.sirius.emfjson.ide/.project

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

15 changes: 0 additions & 15 deletions bundles/org.eclipse.sirius.emfjson.ide/META-INF/MANIFEST.MF

This file was deleted.

21 changes: 0 additions & 21 deletions bundles/org.eclipse.sirius.emfjson.ide/build.properties

This file was deleted.

Loading
Loading