Skip to content

Cant use gradle plugin with java 1.8_352 #3

Description

@john5634

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions