Skip to content

Commit

Permalink
Use latest version of spigot annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
BuildTools committed Oct 8, 2018
1 parent 114e0df commit bb639c4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ buildscript {
}
...
dependencies {
classpath group: 'eu.hexagonmc', name: 'spigot-gradle', version: '1.2'
classpath group: 'eu.hexagonmc', name: 'spigot-gradle', version: '1.3'
}
}
...
Expand All @@ -179,7 +179,7 @@ Apply the plugin in your `build.gradle`.
```gradle
...
plugins {
id "eu.hexagonmc.gradle.spigot" version "1.2"
id "eu.hexagonmc.gradle.spigot" version "1.3"
}
...
```
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
group = eu.hexagonmc
version = 1.2-SNAPSHOT
version = 1.3-SNAPSHOT
description = Gradle plugin for Spigot and BungeeCord

github = HexagonMC/Spigot-Gradle
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,12 @@ private void addRepositoryAndDependency() {
repositories.add(repositories.jcenter());

DependencyHandler dependencies = _project.getDependencies();
dependencies.add(JavaPlugin.COMPILE_ONLY_CONFIGURATION_NAME, "eu.hexagonmc:spigot-annotations:1.1");
dependencies.add(JavaPlugin.COMPILE_ONLY_CONFIGURATION_NAME, "eu.hexagonmc:spigot-annotations:1.2");

boolean annotationProcessorConfigurationAvailable =
GradleVersion.version(_project.getGradle().getGradleVersion()).compareTo(GradleVersion.version("4.6")) >= 0;
if (annotationProcessorConfigurationAvailable) {
dependencies.add(JavaPlugin.ANNOTATION_PROCESSOR_CONFIGURATION_NAME, "eu.hexagonmc:spigot-annotations:1.1");
dependencies.add(JavaPlugin.ANNOTATION_PROCESSOR_CONFIGURATION_NAME, "eu.hexagonmc:spigot-annotations:1.2");
}
}

Expand Down

0 comments on commit bb639c4

Please sign in to comment.