Wayland Java Stubs

Wayland protocol Java-language Binding Stubs

License

License

GroupId

GroupId

org.freedesktop
ArtifactId

ArtifactId

stubs-shared
Last Version

Last Version

1.5.1
Release Date

Release Date

Type

Type

jar
Description

Description

Wayland Java Stubs
Wayland protocol Java-language Binding Stubs
Project URL

Project URL

https://github.com/Zubnix/wayland-java-bindings
Source Code Management

Source Code Management

https://github.com/Zubnix/wayland-java-bindings.git

Download stubs-shared

How to add to project

<!-- https://jarcasting.com/artifacts/org.freedesktop/stubs-shared/ -->
<dependency>
    <groupId>org.freedesktop</groupId>
    <artifactId>stubs-shared</artifactId>
    <version>1.5.1</version>
</dependency>
// https://jarcasting.com/artifacts/org.freedesktop/stubs-shared/
implementation 'org.freedesktop:stubs-shared:1.5.1'
// https://jarcasting.com/artifacts/org.freedesktop/stubs-shared/
implementation ("org.freedesktop:stubs-shared:1.5.1")
'org.freedesktop:stubs-shared:jar:1.5.1'
<dependency org="org.freedesktop" name="stubs-shared" rev="1.5.1">
  <artifact name="stubs-shared" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.freedesktop', module='stubs-shared', version='1.5.1')
)
libraryDependencies += "org.freedesktop" % "stubs-shared" % "1.5.1"
[org.freedesktop/stubs-shared "1.5.1"]

Dependencies

compile (2)

Group / Artifact Type Version
com.google.code.findbugs : jsr305 jar 3.0.1
org.freedesktop : jaccall.runtime jar 1.0.5

Project Modules

There are no modules declared in this project.

wayland-java-bindings

Build Status The Wayland protocol Java-language Binding

Javadoc

Here

Using

Bindings are available in the maven central repository:

 <dependency>
  <groupId>org.freedesktop</groupId>
  <artifactId>wayland</artifactId>
  <version>1.4.0</version>
 </dependency>

Building

Run mvn install in the root of the project and add the following maven dependency to start using the bindings:

 <dependency>
  <groupId>org.freedesktop</groupId>
  <artifactId>wayland</artifactId>
  <version>1.4.1-SNAPSHOT</version>
 </dependency>

Private protocol

The project allows you to generate your own private wayland protocol bindings. Add

 <dependency>
  <groupId>org.freedesktop</groupId>
  <artifactId>generator</artifactId>
  <version>1.4.0</version>
  <scope>provided</scope>
 </dependency>

to your build path, no need to put it on your classpath as it will only be used during compilation.

Add

 <dependency>
  <groupId>org.freedesktop</groupId>
  <artifactId>stubs</artifactId>
  <version>1.4.0</version>
 </dependency>

to your classpath.

Add a @Protocols annotation to your own private package-info.java file and set it to use your own private protocol xml file. Here's an example.

Build your project with maven (or gradle). The generated bindings should automatically appear in the same package as your package-info.java file.

State

  • Usable.
  • Pure Java (Jaccall)

Known Issues

  • See issues board.

TODO

  • Unit tests.
  • Debug logging.

License

Copyright 2015 Erik De Rijcke

Licensed 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.

Versions

Version
1.5.1
1.5.0