Skip to content

Commit

Permalink
minor cleanups and fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Revxrsal committed Dec 16, 2024
1 parent c2b9ef9 commit acf2f40
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 10 deletions.
3 changes: 0 additions & 3 deletions api/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ plugins {
id("java")
}

group = "io.github.revxrsal"
version = "1.0"

repositories {
mavenCentral()
maven("https://hub.spigotmc.org/nexus/content/repositories/snapshots/")
Expand Down
2 changes: 1 addition & 1 deletion api/src/main/java/revxrsal/zapper/DependencyScope.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public interface DependencyScope {
* Adds a dependency. The behavior varies depending on the implementation
*/
void dependency(@NotNull Dependency dependency);

/**
* Adds a dependency. The behavior varies depending on the implementation
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import revxrsal.zapper.Dependency;

import java.io.File;
import java.net.MalformedURLException;
import java.net.URL;

/**
Expand Down
2 changes: 0 additions & 2 deletions gradle-plugin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ plugins {
id("com.gradle.plugin-publish") version "1.2.1"
}

version = "0.0.1"

repositories {
mavenCentral()
gradlePluginPortal()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
package revxrsal.zapper.gradle

import com.github.jengelman.gradle.plugins.shadow.ShadowPlugin
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
import org.gradle.api.Plugin
import org.gradle.api.Project
import org.gradle.api.artifacts.Configuration
import org.gradle.api.artifacts.repositories.MavenArtifactRepository
import org.gradle.jvm.tasks.Jar
import org.gradle.kotlin.dsl.hasPlugin
import org.gradle.kotlin.dsl.withType
import java.io.File

Expand All @@ -23,7 +21,7 @@ private const val PLUGIN_VERSION: String = "0.0.1"
class ZapperPlugin : Plugin<Project> {

override fun apply(project: Project) {
if (!project.plugins.hasPlugin(ShadowPlugin::class)) {
if (!project.plugins.hasPlugin("com.github.johnrengelman.shadow")) {
error("ShadowJar is required by the Zapper Gradle plugin. Please add ShadowJar v8.11.0")
}

Expand Down

0 comments on commit acf2f40

Please sign in to comment.