Skip to content

NotJustAnna/webview_java

Repository files navigation

Webview Java

Maven badge Build status

Java wrapper of webview for building web-based GUIs in Java, leveraging JNA.

Supported Platforms

Operating System Architectures
Windows x86, x86_64, arm64
macOS x86_64, arm64
Linux x86_64

Binaries are built at NotJustAnna/webview_binaries.

Install

Gradle
repositories {
    mavenCentral()
    maven {
        url = uri("https://github.com/NotJustAnna/webview_java/raw/maven")
        content { includeGroup("net.notjustanna.webview") }
    }
}

dependencies {
    // base dependency
    implementation("net.notjustanna.webview:webview_java:1.0.0+wv0.12.0-nightly.1")
    
    // all native dependencies
    implementation("net.notjustanna.webview:webview_java-all-natives:1.0.0+wv0.12.0-nightly.1")

    // or add specific native dependencies
    implementation("net.notjustanna.webview:webview_java-native-windows-x86-64:1.0.0+wv0.12.0-nightly.1")
    implementation("net.notjustanna.webview:webview_java-native-darwin:1.0.0+wv0.12.0-nightly.1")
}
Maven
<project>
    <repositories>
        <repository>
            <id>webview-java-repo</id>
            <url>https://github.com/NotJustAnna/webview_java/raw/maven</url>
        </repository>
    </repositories>

    <dependencies>
        <!-- base dependency -->
        <dependency>
            <groupId>net.notjustanna.webview</groupId>
            <artifactId>webview_java</artifactId>
            <version>1.0.0+wv0.12.0-nightly.1</version>
        </dependency>

        <!-- all native dependencies -->
        <dependency>
            <groupId>net.notjustanna.webview</groupId>
            <artifactId>webview_java-all-natives</artifactId>
            <version>1.0.0+wv0.12.0-nightly.1</version>
        </dependency>

        <!-- or add specific native dependencies -->
        <dependency>
            <groupId>net.notjustanna.webview</groupId>
            <artifactId>webview_java-native-windows-x86-64</artifactId>
            <version>1.0.0+wv0.12.0-nightly.1</version>
        </dependency>
        <dependency>
            <groupId>net.notjustanna.webview</groupId>
            <artifactId>webview_java-native-darwin</artifactId>
            <version>1.0.0+wv0.12.0-nightly.1</version>
        </dependency>
    </dependencies>
</project>
SBT
resolvers += "Webview Java Repo" at "https://github.com/NotJustAnna/webview_java/raw/maven"

libraryDependencies ++= Seq(
  // base dependency
  "net.notjustanna.webview" % "webview_java" % "1.0.0+wv0.12.0-nightly.1",

  // all native dependencies
  "net.notjustanna.webview" % "webview_java-all-natives" % "1.0.0+wv0.12.0-nightly.1",

  // or add specific native dependencies
  "net.notjustanna.webview" % "webview_java-native-windows-x86-64" % "1.0.0+wv0.12.0-nightly.1",
  "net.notjustanna.webview" % "webview_java-native-darwin" % "1.0.0+wv0.12.0-nightly.1"
)

Examples

Standalone Example

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages