Skip to content

Commit

Permalink
polish
Browse files Browse the repository at this point in the history
  • Loading branch information
larsgrefer committed Jan 22, 2025
1 parent 533e059 commit 9e84f31
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public static String findSlug(Project project) {

String travisSlug = findTravisSlug(project).getOrNull();

if (travisSlug != null) {
if (travisSlug != null && !travisSlug.isEmpty()) {
return travisSlug;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public void apply(Project project) {
private void configureJavaPluginDefaults() {
JavaPluginExtension javaPluginExtension = project.getExtensions().getByType(JavaPluginExtension.class);

project.getTasks().withType(LombokTask.class, lombokTask -> {
project.getTasks().withType(LombokTask.class).configureEach(lombokTask -> {
JavaToolchainService javaToolchainService = project.getExtensions().getByType(JavaToolchainService.class);
Provider<JavaLauncher> launcherProvider = javaToolchainService.launcherFor(javaPluginExtension.getToolchain());
lombokTask.getLauncher().convention(launcherProvider);
Expand Down

0 comments on commit 9e84f31

Please sign in to comment.