forked from TeamLapen/Werewolves
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
57 lines (48 loc) · 1.47 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
48
49
50
51
52
53
54
55
56
57
buildscript {
repositories {
maven { url = 'https://files.minecraftforge.net/maven' }
jcenter()
mavenCentral()
maven {url='https://repo.spongepowered.org/repository/maven-public'}
}
dependencies {
classpath group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: '5.0.1', changing: true
classpath 'org.spongepowered:mixingradle:0.7-SNAPSHOT'
}
}
plugins {
id 'com.matthewprenger.cursegradle' version '1.2.0'
id 'de.undercouch.download' version '3.3.0'
// id 'com.wynprice.cursemaven' version '2.1.1'
id 'idea'
}
apply plugin: 'net.minecraftforge.gradle'
apply plugin: 'eclipse'
group = 'de.teamlapen.werewolves' // http://maven.apache.org/guides/mini/guide-naming-conventions.html
archivesBaseName = 'Werewolves'
java.toolchain.languageVersion = JavaLanguageVersion.of(8)
ext.mod_version="Test"
ext.type="test"
sourceSets {
main {
resources {
srcDirs += 'src/generated/resources'
exclude '.cache'
}
}
}
apply from: 'gradle/versioning.gradle'
apply from: 'gradle/forge.gradle'
apply from: 'gradle/artifacts.gradle'
apply from: 'gradle/maven.gradle'
apply from: 'gradle/curse.gradle'
idea {
module {
for (String excludeDirName in ["run", "out", "logs", "gradle"]) {
File excludeDir = new File(projectDir, excludeDirName)
excludeDirs.add(excludeDir)
}
downloadJavadoc = true
downloadSources = true
}
}