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

Cant use gradle plugin with java 1.8_352 #3

Open
john5634 opened this issue Jul 18, 2023 · 1 comment
Open

Cant use gradle plugin with java 1.8_352 #3

john5634 opened this issue Jul 18, 2023 · 1 comment

Comments

@john5634
Copy link

Hello!

Having some trouble here, hoping for some help. Thank you in advance!

I get this error:
java.lang.UnsupportedClassVersionError: de/inetsoftware/jwebassembly/gradle/WasmPlugin has been compiled by a more recent version of the Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0

Can get the plugin to work with:

`buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'gradle.plugin.de.inetsoftware:jwebassembly-gradle:+'
}
}

plugins {
id 'java'
}

group = 'org.example'
version = '1.0-SNAPSHOT'

apply plugin: 'de.inetsoftware.jwebassembly'

// declare your Java sources like you do it for your other Java projects
sourceSets {
main {
java {
srcDir 'src'
}
}
}

wasm {
format = 'Text' // possible values are 'Text' and 'Binary'. 'Binary' is the default value.
compilerVersion = 0.3 // specify a compiler version, default is '+'
classpath = sourceSet.compileClasspath
}`

@Horcrux7
Copy link
Member

Its is recommended to use the snapshot version of the compiler: https://github.com/i-net-software/JWebAssembly/wiki/Build-with-Gradle

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants