-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
64 lines (52 loc) · 1.67 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
plugins {
id 'java'
id 'java-library'
id 'maven-publish'
}
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
allprojects {
group 'illogicworks'
version '0.2'
repositories {
maven {
url "https://maven.fabricmc.net/"
}
mavenCentral()
}
tasks.withType(JavaCompile).configureEach {
// We want Deimos to enforce at least Java 11.
// Only limited to 11 given the computers at university don't have newer versions
it.options.release = 11
}
}
dependencies {
api 'net.fabricmc:fabric-loader:0.14.17'
// fabric-loader dependencies, for some reason they're not in its pom
// https://mvnrepository.com/artifact/org.ow2.asm/asm
implementation "org.ow2.asm:asm:${project.asm_version}"
implementation "org.ow2.asm:asm-analysis:${project.asm_version}"
implementation "org.ow2.asm:asm-commons:${project.asm_version}"
implementation "org.ow2.asm:asm-tree:${project.asm_version}"
implementation "org.ow2.asm:asm-util:${project.asm_version}"
api("net.fabricmc:sponge-mixin:${project.mixin_version}") {
exclude module: 'launchwrapper'
exclude module: 'guava'
}
implementation 'net.fabricmc:access-widener:2.1.0'
// needed by fabric loader, although we don't need remapping
implementation 'net.fabricmc:tiny-mappings-parser:0.3.0+build.17'
implementation 'net.fabricmc:tiny-remapper:0.8.2'
}
task Run(type: JavaExec) {
classpath sourceSets.main.runtimeClasspath
mainClass = "net.fabricmc.loader.impl.launch.knot.KnotClient"
}
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
artifactId = 'deimos'
}
}
}