Skip to content

Commit 7d76eb1

Browse files
committed
add Plugin-Minimum-Java-Version to plugin manifest
1 parent 5859345 commit 7d76eb1

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

build.gradle

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ josm {
101101
josmCompileVersion = configuredJosmCompileVersion
102102
manifest {
103103
minJosmVersion = releases.highestJosmVersion
104+
minJavaVersion = 11
104105

105106
// Old releases up to v0.2.0 have a numeric ID and are available as raw asset from the github repo.
106107
// Newer releases starting from v0.2.0 use semantic versioning and are available as asset from
@@ -147,11 +148,18 @@ compileJava {
147148
options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation" << "-Werror"
148149
}
149150

150-
import org.gradle.api.tasks.testing.logging.TestLogEvent
151+
151152
import org.gradle.api.tasks.testing.logging.TestExceptionFormat
153+
import org.gradle.api.tasks.testing.logging.TestLogEvent
154+
import org.openstreetmap.josm.plugins.scripting.CheckDownloadUrlsInManifestTask
155+
import org.openstreetmap.josm.plugins.scripting.build.GraalVMDownloadTask
152156
import org.openstreetmap.josm.plugins.scripting.build.Releases
157+
import org.openstreetmap.josm.plugins.scripting.release.PublishToAwsS3Task
158+
import org.openstreetmap.josm.plugins.scripting.release.ShowPublishedPluginTask
153159

154160
import java.nio.file.Files
161+
import java.nio.file.Paths
162+
import java.nio.file.StandardCopyOption
155163

156164
/**
157165
* Replies the 'josm.home' directories used in tests
@@ -248,8 +256,6 @@ task testGraalVMSupportNotPresent(type: Test) {
248256
* Run unit tests for GraalJS functionality. Run it with the GraalVM java
249257
* executable.
250258
*/
251-
import java.nio.file.Paths
252-
import java.nio.file.StandardCopyOption
253259
task testWithGraalVMJDK(type: Test) {
254260
dependsOn "downloadGraalVM"
255261
doFirst {
@@ -321,16 +327,12 @@ processResources {
321327
from "$projectDir/LICENSE"
322328
}
323329

324-
import org.openstreetmap.josm.plugins.scripting.build.GraalVMDownloadTask
325330
tasks.register("downloadGraalVM", GraalVMDownloadTask)
326331

327-
import org.openstreetmap.josm.plugins.scripting.CheckDownloadUrlsInManifestTask
328332
tasks.register("checkDownloadUrls", CheckDownloadUrlsInManifestTask)
329333

330-
import org.openstreetmap.josm.plugins.scripting.release.ShowPublishedPluginTask
331334
tasks.register("showPublishedPluginInfo", ShowPublishedPluginTask)
332335

333-
import org.openstreetmap.josm.plugins.scripting.release.PublishToAwsS3Task
334336
tasks.register("publishToAwsS3", PublishToAwsS3Task)
335337

336338
publishToGithubRelease {

0 commit comments

Comments
 (0)