aboutsummaryrefslogtreecommitdiff
path: root/src/test/resources/projects/multiproject/build.gradle
blob: 6c03a8dbe58df571a06c8e3a4b7c2cc23df69be6 (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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
plugins {
	id "java"
	id "java-library"
	id 'gg.essential.loom' apply false
}

allprojects {
	apply plugin: "gg.essential.loom"

	version = "1.0.0"

	tasks.withType(JavaCompile).configureEach {
		def targetVersion = 8
		if (JavaVersion.current().isJava9Compatible()) {
			it.options.release = targetVersion
		} else {
			sourceCompatibility = JavaVersion.toVersion(targetVersion)
			targetCompatibility = JavaVersion.toVersion(targetVersion)
		}

		it.options.encoding = "UTF-8"
	}

	dependencies {
		// To change the versions see the gradle.properties file
		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"

		modImplementation "net.fabricmc.fabric-api:fabric-api:0.31.0+1.16"

	}

	jar {
		archiveClassifier.set "dev"
	}

	loom {
		shareCaches()
	}

	java {
		withSourcesJar()
	}

}

dependencies {
	afterEvaluate {
		subprojects.each {
			include project("${it.name}:")
		}
	}

	include fabricApi.module("fabric-api-base", "0.31.0+1.16")
}

archivesBaseName = "multiproject"
version = "1.0.0"