[CI SKIP] Updated build.gradle

This commit is contained in:
OmerBenGera 2021-01-12 20:22:29 +02:00
parent 5c08e79449
commit 6c39d2bbf1
1 changed files with 18 additions and 29 deletions

View File

@ -1,22 +1,13 @@
group 'WildLoaders'
apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'base'
apply plugin: 'com.github.johnrengelman.shadow'
apply plugin: 'maven-publish'
version = "0.3.2-Beta"
buildscript {
repositories {
jcenter()
maven { url "https://plugins.gradle.org/m2/" }
}
dependencies {
classpath 'com.github.jengelman.gradle.plugins:shadow:6.1.0'
}
plugins {
id 'java'
id 'maven'
id 'com.github.johnrengelman.shadow' version '6.1.0'
id 'maven-publish'
}
group 'WildLoaders'
version = "0.3.2-Beta"
subprojects {
apply plugin: 'java'
apply plugin: 'com.github.johnrengelman.shadow'
@ -56,8 +47,8 @@ repositories {
}
dependencies {
compile project(":API")
compile fileTree("archive")
implementation project(":API")
implementation fileTree("archive")
// Spigot jars
compileOnly "org.spigotmc:v1_7_R3:latest"
@ -78,22 +69,19 @@ jar {
zipTree(file)
}
}
}
processResources {
outputs.upToDateWhen {false}
eachFile { details ->
if (details.name.contentEquals('plugin.yml')) {
filter { String line ->
line.replace('${project.version}', version)
}
processResources {
outputs.upToDateWhen {false}
eachFile { details ->
if (details.name.contentEquals('plugin.yml')) {
filter { String line ->
line.replace('${project.version}', version)
}
}
}
}
shadowJar {
dependsOn(jar)
@ -117,6 +105,7 @@ build {
dependsOn shadowJar
dependsOn publish
}
publish.shouldRunAfter shadowJar
shadowJar.shouldRunAfter build