aboutsummaryrefslogtreecommitdiff
path: root/src/test/resources/projects/mavenLibrary/build.gradle
blob: 707a940765a9d22c13bc6175160cbc8c5b4765b7 (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
plugins {
	id 'gg.essential.loom'
	id 'maven-publish'
}

archivesBaseName = "fabric-example-lib"
version = System.getProperty("loom.test.version")
group = "com.example"

println archivesBaseName

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"
}

processResources {
	inputs.property "version", project.version

	filesMatching("fabric.mod.json") {
		expand "version": project.version
	}
}

java {
	withSourcesJar()
}

publishing {
	publications {
		mavenJava(MavenPublication) {
			from components.java

			artifact(remapJar) {
				classifier "classifier"
			}
		}
	}

    repositories {
		maven {
			url "http://localhost:${System.getProperty("loom.test.mavenPort")}/"
			allowInsecureProtocol = true
		}
    }
}