Merge 1.7, part 3

This commit is contained in:
Juuz
2024-07-01 19:55:25 +03:00
41 changed files with 1464 additions and 260 deletions

View File

@@ -206,9 +206,9 @@ public abstract class RemapTaskConfiguration implements Runnable {
getArtifacts().add(JavaPlugin.SOURCES_ELEMENTS_CONFIGURATION_NAME, remapSourcesTask.map(AbstractArchiveTask::getArchiveFile), artifact -> {
artifact.setClassifier("sources");
});
} else {
} else if (canRemap) {
// Sources jar may not have been created with withSourcesJar
getProject().getLogger().warn("Not publishing sources jar as it was not found. Use java.withSourcesJar() to fix.");
getProject().getLogger().warn("Not publishing sources jar as it was not created by the java plugin. Use java.withSourcesJar() to fix.");
}
});
}