forked from MCTCP/TerrainControl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
47 lines (37 loc) · 1.05 KB
/
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
43
44
45
46
47
// Information for all projects
// The default tasks for all projects
defaultTasks 'removeOldReleases', 'build', 'createReleaseJar', 'install'
allprojects
{
version = "2.7.3-SNAPSHOT"
group = "com.khorn.terraincontrol"
// Version of the shadow plugin
ext.shadowVersion = '1.2.1'
}
// Information for all subprojects
// (common, forge and bukkit, but not this file)
subprojects
{ task ->
task.plugins.withType(org.gradle.api.plugins.JavaBasePlugin)
{
// We're still on Java 6
sourceCompatibility = '1.6'
// Generate Eclipse config files when using "gradle eclipse"
task.apply plugin: 'eclipse'
// Generate IntelliJ IDEA config files
task.apply plugin: 'idea'
}
// Generate a pom.xml, upload to local Maven repository
apply plugin: 'maven'
}
task removeOldReleases <<
{
allprojects
{
File distributionsFolder = new File(project.buildDir, "distributions")
if (distributionsFolder.exists())
{
distributionsFolder.deleteDir()
}
}
}