generated from makamys/forge-mod-template
-
Notifications
You must be signed in to change notification settings - Fork 7
/
build.gradle
37 lines (33 loc) · 1.04 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
/** The root of the build. Exposed for flexibility, but you shouldn't edit it
unless you have to. Edit project.gradle instead. */
buildscript {
repositories {
mavenCentral()
gradlePluginPortal() // this line has to be after mavenCentral() or ForgeGradle breaks apart
maven {
name = "forge"
url = "https://maven.minecraftforge.net/"
}
maven {
url = "https://jitpack.io"
}
}
dependencies {
classpath('com.github.GTNewHorizons:ForgeGradle:1.2.11') {
// This transitive dependency breaks plugins for some reason. Only GTNH-FG has this issue.
exclude group: "org.eclipse.equinox"
}
classpath 'com.github.jengelman.gradle.plugins:shadow:4.0.2'
}
}
plugins {
id 'java-library'
id 'maven-publish'
}
if(project.enable_lombok.toBoolean()) {
dependencies {
compileOnly 'org.projectlombok:lombok:1.18.4'
}
}
apply plugin: "com.github.johnrengelman.shadow"
apply from: "buildscript/forge-1.7.gradle"