-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
42 lines (34 loc) · 1002 Bytes
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
apply plugin: "java"
apply plugin: 'maven'
sourceCompatibility = 1.14
sourceSets.main.java.srcDirs = ["src"]
repositories{
mavenCentral()
maven{ url 'https://www.jitpack.io' }
}
ext{
pluginVersion = '1.2'
//the build number that this plugin is made for
mindustryVersion = 'v126'
ghpHash = '26b7bd47a0'
getGHPModule = {
if (new File(projectDir.parent, '/GHPluginUtil/').exists())
return files("../GHPluginUtil/build/libs/GHPluginUtil.jar")
else
return "com.github.Gee-aitcH:GHPluginUtil:$ghpHash"
}
}
dependencies {
implementation getGHPModule()
compileOnly "com.github.Anuken.Arc:arc-core:$mindustryVersion"
compileOnly "com.github.Anuken.Mindustry:core:$mindustryVersion"
}
jar{
archiveFileName = "${project.archivesBaseName}_${pluginVersion}.jar"
from{
configurations.runtimeClasspath.collect{it.isDirectory() ? it : zipTree(it)}
}
from(rootDir){
include "plugin.json"
}
}