Gradle / maven

Fix archive names (includes project/module name + version)
Generate MD5 hash alongside jar
Improve build time
- asynchronous building
- enable daemon
- change scope of a few statements
- skip building of 3 jars
Add filtering to the plugin.yml (maven/gradle)
Bump version to 3.3.0 in pom
This commit is contained in:
Jesse Boyd
2016-02-26 23:55:21 +11:00
parent f921db937a
commit c7870b617c
8 changed files with 49 additions and 20 deletions

View File

@ -1,16 +1,34 @@
apply plugin: 'eclipse'
apply plugin: 'idea'
dependencies {
compile project(':Core')
compile 'org.bukkit:bukkit:1.8.8-R0.1-SNAPSHOT'
compile 'net.milkbowl.vault:VaultAPI:1.5'
}
sourceCompatibility = 1.7
targetCompatibility = 1.7
processResources {
from('src/main/resources') {
include 'plugin.yml'
expand(
name: project.parent.name,
version: project.parent.version
)
}
}
apply plugin: 'com.github.johnrengelman.shadow'
shadowJar {
dependencies {
include(dependency(':Core'))
}
archiveName = "${parent.name}-${project.name}-${parent.version}.jar"
}
build.dependsOn(shadowJar)
shadowJar.doLast {
task ->
ant.checksum file: task.archivePath
}
build.dependsOn(shadowJar);

View File

@ -1,6 +1,6 @@
name: PlotSquared
name: ${name}
main: com.plotsquared.bukkit.BukkitMain
version: 3.3.0
version: ${version}
load: STARTUP
description: >
Easy, yet powerful Plot World generation and management.