1+ plugins {
2+ id ' fabric-loom' version ' 0.2.5-SNAPSHOT'
3+ id ' maven-publish'
4+ id ' java-library'
5+ }
6+
7+ sourceCompatibility = JavaVersion . VERSION_1_8
8+ targetCompatibility = JavaVersion . VERSION_1_8
9+
10+ archivesBaseName = ' minecraft'
11+ version = ' none'
12+ group = ' com.hrznstudio'
13+
14+ minecraft {
15+ // need this to extract dependencies packaged via jar-in-jar in our dev workspace
16+ extractJars = true
17+ }
18+
19+ repositories {
20+ mavenLocal()
21+ maven {
22+ name = ' Fabric'
23+ url = ' https://maven.fabricmc.net'
24+ }
25+ maven {
26+ name = ' Horizon Maven'
27+ url = ' https://cdn.hrzn.studio/maven'
28+ }
29+ }
30+
31+ dependencies {
32+ minecraft " com.mojang:minecraft:${ project.minecraft_version} "
33+ mappings " net.fabricmc:yarn:${ project.yarn_mappings} "
34+ modImplementation " net.fabricmc:fabric-loader:${ project.loader_version} "
35+ modImplementation " com.hrznstudio.sandbox:sandbox-fabric:0.2.+"
36+ implementation " com.hrznstudio.sandbox:sandbox-api:${ project.api_version} "
37+
38+ runtime project(' :' )
39+ }
40+
41+ // TODO remove when not working on sandbox itself
42+ configurations. all {
43+ resolutionStrategy. cacheDynamicVersionsFor 1 , ' seconds'
44+ resolutionStrategy. cacheChangingModulesFor 1 , ' seconds'
45+ }
46+
47+ processResources {
48+ inputs. property " version" , project. version
49+
50+ from(sourceSets. main. resources. srcDirs) {
51+ include " fabric.mod.json"
52+ expand " version" : project. version
53+ }
54+
55+ from(sourceSets. main. resources. srcDirs) {
56+ exclude " fabric.mod.json"
57+ }
58+ }
59+
60+ tasks. withType(JavaCompile ) {
61+ options. encoding = " UTF-8"
62+ }
0 commit comments