Skip to content

Commit

Permalink
Upgraded Gradle build
Browse files Browse the repository at this point in the history
Signed-off-by: Iltotore <[email protected]>
  • Loading branch information
Iltotore committed Dec 23, 2019
1 parent 69ec5ba commit dd7407c
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 3 deletions.
28 changes: 27 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@ plugins {
id 'java'
id 'maven-publish'
id 'com.github.johnrengelman.shadow' version '5.1.0'
id "com.gradle.plugin-publish" version "0.10.1"
id "java-gradle-plugin"
}

group 'fr.il_totore'
version '1.0-SNAPSHOT'
version '0.1-SNAPSHOT'

sourceCompatibility = 1.8

Expand All @@ -18,6 +20,15 @@ dependencies {
compile 'com.amihaiemil.web:eo-yaml:2.0.1'
}

gradlePlugin {
plugins {
manadrop {
id = 'fr.il_totore.manadrop'
implementationClass = 'fr.il_totore.manadrop.ManaDrop'
}
}
}

publishing {
publications {
compiler(MavenPublication) {
Expand All @@ -30,6 +41,21 @@ publishing {
}
}

pluginBundle {
ext['gradle.publish.key'] = System.getenv('gradle.publish.key')
ext['gradle.publish.secret'] = System.getenv('gradle.publish.secret')
website = 'https://github.com/Iltotore/ManaDrop'
vcsUrl = 'https://github.com/Iltotore/ManaDrop'
description = 'A Gradle plugin for Minecraft Development'
tags = ['minecraft', 'spigot', 'bungeecord']

plugins {
manadrop {
displayName = 'ManaDrop'
}
}
}

shadowJar {
configurations = [project.configurations.compile]
}
2 changes: 0 additions & 2 deletions settings.gradle

This file was deleted.

0 comments on commit dd7407c

Please sign in to comment.