aboutsummaryrefslogtreecommitdiff
path: root/src/test/resources/projects/runconfigs/build.gradle
blob: 9ed945c715434640e1492255652783acc2c35073 (plain)
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
plugins {
	id 'fabric-loom'
}

loom {
	runs {
		testmodClient {
			client()
			ideConfigGenerated project.rootProject == project
			name = "Testmod Client"
			source sourceSets.main
		}
		testmodServer {
			server()
			ideConfigGenerated project.rootProject == project
			name = "Testmod Server"
			source sourceSets.main
		}
		autoTestServer {
			inherit testmodServer
			vmArg "-Dfabric.autoTest"
		}
	}

	runConfigs.configureEach {
		vmArg "-Dfabric.loom.test.space=This contains a space"
	}
}

archivesBaseName = "fabric-example-mod"
version = "1.0.0"

dependencies {
	minecraft "com.mojang:minecraft:1.16.5"
	mappings "net.fabricmc:yarn:1.16.5+build.5:v2"
	modImplementation "net.fabricmc:fabric-loader:0.11.2"
}