blob: 980e84e17d8bfcb7fef103163e352e027f4a8029 (
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
|
plugins {
id 'dev.architectury.loom'
id 'maven-publish'
id 'signing'
}
archivesBaseName = "fabric-example-lib"
version = "1.0.0"
group = "com.example"
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) {
builtBy remapJar
classifier "classifier"
}
}
}
repositories {
maven {
url "http://localhost:${System.getProperty("loom.test.mavenPort")}/"
allowInsecureProtocol = true
}
}
}
signing {
def privateKey = System.getProperty("loom.test.secretKey") ?: "no key!"
useInMemoryPgpKeys(privateKey, 'password')
sign publishing.publications.mavenJava
}
|