Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions gradle-witchcraft-logging/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ dependencies {
implementation project(':witchcraft-logging-formatting')
implementation 'com.google.guava:guava'
implementation 'com.palantir.gradle.idea-configuration:gradle-idea-configuration'
implementation 'org.apache.commons:commons-text'

testImplementation gradleTestKit()
testImplementation 'com.google.guava:guava'
Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
import java.util.Objects;
import org.gradle.api.Plugin;
import org.gradle.api.Project;
import org.gradle.util.GradleVersion;

/** One-stop-shop for a fantastic developer experience with witchcraft-logging projects. */
public final class WitchcraftLoggingPlugin implements Plugin<Project> {
Expand All @@ -32,6 +33,11 @@ public void apply(Project rootProject) {
WitchcraftLoggingPlugin.class.getSimpleName() + " can only be applied to the root project.");
}

if (GradleVersion.current().compareTo(GradleVersion.version("8.1")) < 0) {
throw new IllegalArgumentException(WitchcraftLoggingPlugin.class.getSimpleName()
+ " can only be applied if using Gradle version 8.1 or newer.");
}

rootProject.getPluginManager().apply(IdeaConfigurationPlugin.class);
IdeaConfigurationExtension extension = rootProject.getExtensions().getByType(IdeaConfigurationExtension.class);
extension
Expand Down
Loading