i-net-software / i-net-software/JWebAssembly-Gradle

Cant use gradle plugin with java 1.8_352

Open
#3 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
11
Forks
3
PR merge metrics
No merged PRs in 30d

Description

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
}`

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.