forked from itsmeow/OpenScreens
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
84 lines (63 loc) · 2.07 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
buildscript {
repositories {
maven { url = 'https://files.minecraftforge.net/maven' }
jcenter()
mavenCentral()
}
dependencies {
classpath 'net.minecraftforge.gradle:ForgeGradle:5.1+'
}
}
apply plugin: 'net.minecraftforge.gradle'
apply plugin: 'maven-publish'
version = "$mc_version}-${mod_version}"
group = "$maven_group}"
archivesBaseName = "${mod_id}"
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
minecraft {
mappings channel: "${mappings_channel}", version: "${mappings_version}"
runs {
client {
workingDirectory project.file('run')
// Recommended logging data for a userdev environment
property 'forge.logging.markers', 'SCAN,REGISTRIES,REGISTRYDUMP'
// Recommended logging level for the console
property 'forge.logging.console.level', 'debug'
}
server {
// Recommended logging data for a userdev environment
property 'forge.logging.markers', 'SCAN,REGISTRIES,REGISTRYDUMP'
// Recommended logging level for the console
property 'forge.logging.console.level', 'debug'
}
}
}
repositories {
maven {
name = "OC"
url = "https://maven.cil.li/"
}
maven {
name = "JEI"
url = "https://dvs1.progwml6.com/files/maven"
}
}
dependencies {
minecraft 'net.minecraftforge:forge:1.12.2-14.23.5.2860'
compileOnly 'org.apache.logging.log4j:log4j-api:2.19.0'
compileOnly 'org.apache.logging.log4j:log4j-core:2.19.0'
compileOnly "li.cil.oc:OpenComputers:MC${mc_version}-${opencomputers_version}"
compileOnly "mezz.jei:jei_${mc_version}:${jei_version}"
}
processResources {
inputs.property "version", project.version
inputs.property "mcversion", "${mod_version}"
from(sourceSets.main.resources.srcDirs) {
include 'mcmod.info'
expand 'version':project.version, 'mcversion':mod_version
}
from(sourceSets.main.resources.srcDirs) {
exclude 'mcmod.info'
}
}