mirror of
https://github.com/BG-Software-LLC/WildLoaders.git
synced 2024-11-10 10:09:55 +01:00
[CI SKIP] Updated build.gradle
This commit is contained in:
parent
5c08e79449
commit
6c39d2bbf1
47
build.gradle
47
build.gradle
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user