generated from BookMC/book-example-mod
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
69 lines (55 loc) · 1.61 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
plugins {
id "me.dreamhopping.pml.gradle" version "3.12.1+build.26"
id "org.bookmc.annotation-processor-configuration" version "0.2.0+build.5"
}
allprojects {
apply plugin: "java"
apply plugin: "me.dreamhopping.pml.gradle"
apply plugin: "org.bookmc.annotation-processor-configuration"
java {
toolchain {
languageVersion = JavaLanguageVersion.of(16)
}
}
group "org.bookmc"
version "0.1.0"
sourceSets {
// We create a "virtual" sourceset as this allow for access to the APIs
// without exposure to version-specific code. In other words this could
// does not require you to use it in the target-version's sourceset
// but can be used from the main sourceset.
virtual {}
}
repositories {
mavenCentral()
maven {
name "BooKMC"
url "https://maven.bookmc.org/releases/"
}
maven {
name "FabricMC"
url "https://maven.fabricmc.net"
}
}
dependencies {
compileOnly "org.apache.logging.log4j:log4j-core:2.13.2"
implementation "org.bookmc:book-loader:1.0.3"
remapImplementation "org.bookmc:minecraft:0.22.0"
compileOnly sourceSets.virtual.runtimeClasspath
}
processResources {
inputs.property "version", project.version
filesMatching("book.mod.json") {
expand "version": project.version
}
}
minecraft {
separateVersionJars()
target "1.17.1", "1.8.9"
}
}
subprojects {
dependencies {
implementation project(":")
}
}