From 8e6939fc993e6f196b40d97aa5d9bac0f8a69879 Mon Sep 17 00:00:00 2001 From: Paul Fridrick Date: Fri, 6 Dec 2019 15:15:44 +0100 Subject: [PATCH] Replace deprecated usage of AbstractArchiveTask.setClassifier Signed-off-by: Paul Fridrick --- .../org/gradle/playframework/plugins/PlayApplicationPlugin.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/gradle/playframework/plugins/PlayApplicationPlugin.java b/src/main/java/org/gradle/playframework/plugins/PlayApplicationPlugin.java index e2a4f86e..7e8e7296 100644 --- a/src/main/java/org/gradle/playframework/plugins/PlayApplicationPlugin.java +++ b/src/main/java/org/gradle/playframework/plugins/PlayApplicationPlugin.java @@ -126,7 +126,7 @@ private void configureJavaAndScalaSourceSet(Project project) { private TaskProvider createAssetsJarTask(Project project) { TaskProvider assetsJarTask = project.getTasks().register(ASSETS_JAR_TASK_NAME, Jar.class, jar -> { jar.setDescription("Assembles the assets jar for the application."); - jar.setClassifier("assets"); + jar.getArchiveClassifier().set("assets"); jar.from(project.file("public"), copySpec -> copySpec.into("public")); });