Further minor cleanup from Gradle 5 change

This commit is contained in:
Kenzie Togami
2019-07-10 11:07:00 -07:00
parent 4874c314d0
commit 59c2a15cda
5 changed files with 21 additions and 39 deletions

View File

@ -13,7 +13,7 @@ dependents of `-core` to compile and work with WorldEdit's API.
*/
configure(subprojects + project("core:ap")) {
apply plugin: 'java'
apply plugin: 'java-base'
apply plugin: 'maven'
apply plugin: 'com.github.johnrengelman.shadow'
apply plugin: 'com.jfrog.artifactory'
@ -24,8 +24,7 @@ configure(subprojects + project("core:ap")) {
group = rootProject.group + ".worldedit-libs"
tasks.replace("jar", ShadowJar)
tasks.withType(ShadowJar).named("jar").configure {
tasks.register("jar", ShadowJar) {
configurations = [project.configurations.shade]
classifier = ""
@ -79,7 +78,7 @@ configure(subprojects + project("core:ap")) {
}
}
tasks.withType(Upload).named("install").configure {
tasks.register("install", Upload) {
configuration = configurations.archives
repositories.mavenInstaller {
pom.version = project.version