I am using Gradle 6.8.2, and upgrading it further is not a possibility right now. I am trying to upgrade the JWebAssembly-Gradle for use. The old code had:
plugins {
id "com.gradle.plugin-publish" version "0.20.0"
}
pluginBundle {
website = 'https://github.com/i-net-software/JWebAssembly-Gradle'
vcsUrl = 'https://github.com/i-net-software/JWebAssembly-Gradle'
description = 'A Gradle plugin for the JWebAssembly compiler. A Java bytecode to WebAssembly converter. It produce the WASM and JavaScript file from your *.java, *.class and/or *.jar files.'
tags = ['jwebassembly', 'webassembly', 'wasm', 'java', 'bytecode', 'compile', 'converter', 'transpiler' ]
plugins {
jwebassemblerPlugin {
id = 'de.inetsoftware.jwebassembly'
displayName = 'Gradle JWebAssembly plugin'
tags = ['jwebassembly', 'webassembly', 'wasm', 'java', 'bytecode', 'compile', 'converter', 'transpiler' ]
}
}
mavenCoordinates {
artifactId = archivesBaseName
}
}
I tried to replace that with the following:
plugins {
// id "com.gradle.plugin-publish" version "0.21.0"
id 'com.gradle.plugin-publish' version '1.0.0'
}
gradlePlugin {
website = 'https://github.com/i-net-software/JWebAssembly-Gradle'
vcsUrl = 'https://github.com/i-net-software/JWebAssembly-Gradle'
description = 'A Gradle plugin for the JWebAssembly compiler. A Java bytecode to WebAssembly converter. It produce the WASM and JavaScript file from your *.java, *.class and/or *.jar files.'
// tags = ['jwebassembly', 'webassembly', 'wasm', 'java', 'bytecode', 'compile', 'converter', 'transpiler' ]
plugins {
jwebassemblerPlugin {
id = 'de.inetsoftware.jwebassembly'
displayName = 'Gradle JWebAssembly plugin'
tags = ['jwebassembly', 'webassembly', 'wasm', 'java', 'bytecode', 'compile', 'converter', 'transpiler' ]
}
}
mavenCoordinates {
artifactId = archivesBaseName
}
}
I am now getting the error:
A problem occurred evaluating root project ‘JWebAssembly-Gradle’.
Could not set unknown property ‘website’ for extension ‘gradlePlugin’ of type org.gradle.plugin.devel.GradlePluginDevelopmentExtension.
I have search the code, but I can’t find where it is implemented. I also can’t find anything on the pluginBundle.website property, or how it applies to the gradlePlugin and a possible website property. I don’t plan on publishing this for general use.
How can I fix this issue?