Skip to content

Commit

Permalink
Generate plugin.yml with Gradle.
Browse files Browse the repository at this point in the history
  • Loading branch information
dscalzi committed Dec 6, 2018
1 parent b32eea0 commit c6fc4bd
Show file tree
Hide file tree
Showing 7 changed files with 136 additions and 753 deletions.
661 changes: 0 additions & 661 deletions LICENSE

This file was deleted.

File renamed without changes.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
![# Header](https://i.imgur.com/NNwBkWb.png)

[<img src="https://ci.appveyor.com/api/projects/status/e9h6l9fu137jr5ek?retina=true" height="20.74px"></img>](https://ci.appveyor.com/project/dscalzi/zipextractor) [![](https://img.shields.io/github/license/dscalzi/ZipExtractor.svg)](https://github.com/dscalzi/ZipExtractor/blob/master/LICENSE) ![](https://img.shields.io/badge/Spigot-1.8.x--1.13.x-orange.svg) ![](https://img.shields.io/badge/Java-8+-ec2025.svg) [![](https://discordapp.com/api/guilds/211524927831015424/widget.png)](https://discordapp.com/invite/Fcrh6PT)
[<img src="https://ci.appveyor.com/api/projects/status/e9h6l9fu137jr5ek?retina=true" height="20.74px"></img>](https://ci.appveyor.com/project/dscalzi/zipextractor) [![](https://img.shields.io/github/license/dscalzi/ZipExtractor.svg)](https://github.com/dscalzi/ZipExtractor/blob/master/LICENSE.txt) ![](https://img.shields.io/badge/Spigot-1.8.x--1.13.x-orange.svg) ![](https://img.shields.io/badge/Java-8+-ec2025.svg) [![](https://discordapp.com/api/guilds/211524927831015424/widget.png)](https://discordapp.com/invite/Fcrh6PT)

ZipExtractor is an administrative utility plugin allowing the compression/extraction of archived files through minecraft command. This plugin is extremely useful for dealing with archives over FTP, which does not provide support for neither compression nor extraction. While many safeguards are in place, please note that **there is no undo button**. Overridden files **cannot** be recovered.

Expand Down
119 changes: 119 additions & 0 deletions ZipExtractor-Bukkit/build.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
plugins {
id 'net.minecrell.plugin-yml.bukkit' version '0.3.0'
}

repositories {
mavenCentral()
maven { url 'https://hub.spigotmc.org/nexus/content/repositories/snapshots/' }
Expand All @@ -12,6 +16,121 @@ dependencies {
implementation 'org.bstats:bstats-bukkit:1.4'
}

bukkit {

name = ext.name
version = version
description = description
website = ext.url
author = ext.author

main = 'com.dscalzi.zipextractor.bukkit.ZipExtractor'

apiVersion = '1.13'

commands {
zipextractor {
description = 'Main plugin command'
aliases = ['ze']
}
}

permissions {
'zipextractor.*' {
description = 'Full access to ZipExtractor.'
children = [
'zipextractor.admin.*',
'zipextractor.harmless.*'
]
}
'zipextractor.admin.*' {
description = 'Access to administrator commands.'
children = [
'zipextractor.admin.use',
'zipextractor.admin.extract',
'zipextractor.admin.compress',
'zipextractor.admin.override.extract',
'zipextractor.admin.override.compress',
'zipextractor.admin.src',
'zipextractor.admin.dest',
'zipextractor.admin.setsrc',
'zipextractor.admin.setdest',
'zipextractor.admin.plugindir',
'zipextractor.admin.terminate',
'zipextractor.admin.forceterminate',
'zipextractor.admin.reload'
]
}
'zipextractor.admin.use' {
description = 'Allow usage of /ZipExtractor'
setDefault('OP')
}
'zipextractor.admin.extract' {
description = 'Allow usage of /ZipExtractor extract'
setDefault('OP')
}
'zipextractor.admin.compress' {
description = 'Allow usage of /ZipExtractor compress'
setDefault('OP')
}
'zipextractor.admin.override.extract' {
description = 'Allow usage of /ZipExtractor extract -override'
setDefault('OP')
}
'zipextractor.admin.override.compress' {
description = 'Allow usage of /ZipExtractor compress -override'
setDefault('OP')
}
'zipextractor.admin.src' {
description = 'Allow usage of /ZipExtractor src'
setDefault('OP')
}
'zipextractor.admin.dest' {
description = 'Allow usage of /ZipExtractor dest'
setDefault('OP')
}
'zipextractor.admin.setsrc' {
description = 'Allow usage of /ZipExtractor setsrc'
setDefault('OP')
}
'zipextractor.admin.setdest' {
description = 'Allow usage of /ZipExtractor setdest'
setDefault('OP')
}
'zipextractor.admin.plugindir' {
description = 'Allow usage of /ZipExtractor plugindir'
setDefault('OP')
}
'zipextractor.admin.terminate' {
description = 'Allow usage of /ZipExtractor terminate'
setDefault('OP')
}
'zipextractor.admin.forceterminate' {
description = 'Allow usage of /ZipExtractor forceterminate'
setDefault('OP')
}
'zipextractor.admin.reload' {
description = 'Allow usage of /ZipExtractor reload'
setDefault('OP')
}
'zipextractor.harmless.*' {
description = 'Access to harmless commands.'
children = [
'zipextractor.harmless.notify',
'zipextractor.harmless.status'
]
}
'zipextractor.harmless.notify' {
description = 'User will be notified if the plugin broadcasts a message.'
setDefault('OP')
}
'zipextractor.harmless.status' {
description = 'Allow usage of /ZipExtractor status'
setDefault('OP')
}
}
}

shadowJar {
classifier 'dist'

Expand Down
84 changes: 0 additions & 84 deletions ZipExtractor-Bukkit/src/main/resources/plugin.yml

This file was deleted.

8 changes: 4 additions & 4 deletions ZipExtractor-Sponge/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ sponge {
plugin {
meta {
id = 'zipextractor'
name = 'ZipExtractor'
name = project.ext.name
version = version
description = 'Utility plugin to extract archives and compress files.'
url = 'https://github.com/dscalzi/zipextractor'
authors = ['Daniel Scalzi (TheKraken7)']
description = description
url = project.ext.url
authors = [project.ext.author]
}
}
}
Expand Down
15 changes: 12 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,15 @@ plugins {
}

allprojects {
description = 'Utility plugin to extract archives and compress files.'
group = 'com.dscalzi'
}

description = """Utility plugin to extract archives and compress files."""
ext {
name = 'ZipExtractor'
author = 'Daniel Scalzi (TheKraken7)'
url = 'https://github.com/dscalzi/ZipExtractor'
}
}

apply plugin: 'eclipse'

Expand All @@ -22,7 +27,7 @@ subprojects {
targetCompatibility = 1.8

def major = '2'
def minor = '0'
def minor = '1'
def spongeRevision = '0'
def bukkitRevision = '0'

Expand All @@ -36,6 +41,10 @@ subprojects {
testImplementation.extendsFrom compileOnly
}

processResources {
from "../LICENSE.txt"
}

license {
sourceSets = [project.sourceSets.main]
exclude '**/config.yml'
Expand Down

0 comments on commit c6fc4bd

Please sign in to comment.