This repository has been archived by the owner on Jun 27, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
90 lines (75 loc) · 2.33 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
85
86
87
88
89
90
//my java 8 build reports the version as `1.8.0-internal`, which fails forge's version check
//(it checks for >= 1.8.0_101), but since my jdk is based on a newer version of java 8, it's safe
//to disable this check.
System.setProperty("net.minecraftforge.gradle.test_java", "false")
buildscript {
repositories {
maven { url = 'https://files.minecraftforge.net/maven' }
jcenter()
mavenCentral()
}
dependencies {
classpath 'net.minecraftforge.gradle:ForgeGradle:3.+'
}
}
apply plugin: 'net.minecraftforge.gradle'
apply plugin: 'eclipse'
apply plugin: 'maven-publish'
version = '1.0'
group = 'com.github.natanbc'
archivesBaseName = 'ocmips'
sourceCompatibility = targetCompatibility = compileJava.sourceCompatibility =
compileJava.targetCompatibility = '1.8'
minecraft {
mappings channel: 'snapshot', version: '20180814-1.12'
runs {
client {
workingDirectory project.file('run/client')
property 'forge.logging.markers', 'SCAN,REGISTRIES,REGISTRYDUMP'
property 'forge.logging.console.level', 'debug'
}
server {
workingDirectory project.file('run/server')
property 'forge.logging.markers', 'SCAN,REGISTRIES,REGISTRYDUMP'
property 'forge.logging.console.level', 'debug'
}
}
}
repositories {
maven { url = "http://maven.cil.li/" }
}
def ocVersion = "MC1.12.2-1.7.5.212"
dependencies {
minecraft 'net.minecraftforge:forge:1.12.2-14.23.5.2854'
compile "li.cil.oc:OpenComputers:$ocVersion:api"
compile project(':mips-cpu')
}
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
jar {
manifest {
attributes([
"Specification-Title": "ocmips",
"Specification-Vendor": "natanbc,DarkRyu550",
"Specification-Version": "1",
"Implementation-Title": project.name,
"Implementation-Version": "${version}",
"Implementation-Vendor" :"natanbc,DarkRyu550",
"Implementation-Timestamp": new Date().format("yyyy-MM-dd'T'HH:mm:ssZ")
])
}
}
jar.finalizedBy('reobfJar')
publishing {
publications {
mavenJava(MavenPublication) {
artifact jar
}
}
repositories {
maven {
url "file:///${project.projectDir}/mcmodsrepo"
}
}
}